pkgsrc/security/ruby-shadow/patches/patch-extconf.rb
taca 4629de0e8a Update ruby-shadow to 2.4.1.
[2014/12/02]
* Version 2.4.1
  - sp_loginclass support should NOT have been added to password implementation
[2014/12/01]
* Version 2.4.0
  - Add support for sp_loginclass via pwd.h
2015-02-04 16:14:57 +00:00

25 lines
800 B
Ruby

$NetBSD: patch-extconf.rb,v 1.2 2015/02/04 16:14:57 taca Exp $
* Relax condition to make more operating system support.
* Do not override LDFLAGS.
--- extconf.rb.orig 2015-01-26 14:06:33.000000000 +0000
+++ extconf.rb
@@ -18,8 +18,7 @@ implementation = case CONFIG['host_os']
when /sunos|solaris/i; 'shadow'
when /freebsd|mirbsd|netbsd|openbsd/i; 'pwd'
when /darwin/i; 'pwd'
- else; nil
- "This library works on OS X, FreeBSD, MirBSD, NetBSD, OpenBSD, Solaris and Linux."
+ else; 'pwd'
end
ok = true
@@ -29,7 +28,6 @@ when 'shadow'
#$LDFLAGS = "-lshadow"
if( ! (ok &= have_library("shadow","getspent")) )
- $LDFLAGS = ""
ok = have_func("getspent")
end