File: use-shadow-implementation-on-gnu-archs

package info (click to toggle)
ruby-shadow 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 200 kB
  • sloc: ansic: 323; ruby: 97; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 866 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: use the shadow implementation on gnu systems
 Let extconf knows that it can use the shadow functions, just like on Linux,
 on Debian archs like kFreeBSD and Hurd.

Bug-Debian: http://bugs.debian.org/749904
Reviewed-By: David Suárez <david.sephirot@gmail.com>
Author: Samuel Thibault <sthibault@debian.org>
Last-Update: 2014-06-01

Index: ruby-shadow/extconf.rb
===================================================================
--- ruby-shadow.orig/extconf.rb
+++ ruby-shadow/extconf.rb
@@ -11,6 +11,7 @@ $CFLAGS += ' -DRUBY19'
 
 implementation = case CONFIG['host_os']
                  when /linux/i; 'shadow'
+                 when /gnu/i; 'shadow' # Debian GNU/kFreeBSD and Hurd have shadow.h
                  when /sunos|solaris/i; 'shadow'
                  when /freebsd|mirbsd|netbsd|openbsd/i; 'pwd'
                  when /darwin/i; 'pwd'