Subject: Re: pkg/30965
To: None <rh@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,>
From: None <salo@netbsd.org>
List: pkgsrc-bugs
Date: 09/08/2005 09:12:44
Synopsis: security/PAM won't build on 2.0

State-Changed-From-To: open->feedback
State-Changed-By: salo@netbsd.org
State-Changed-When: Thu, 08 Sep 2005 09:12:43 +0000
State-Changed-Why:
could you, please, try this patch instead?

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/PAM/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile    31 May 2005 10:01:39 -0000      1.34
+++ Makefile    4 Sep 2005 15:56:29 -0000
@@ -58,9 +58,8 @@ PLIST_SUBST+=         USE_LIBCRACK="@comment "
 .endif
 
 .if !empty(OPSYS:M*BSD)
-CFLAGS+=               -DUSE_GETLOGIN=1
+CPPFLAGS+=             -DUSE_GETLOGIN=1
 .endif
-MAKE_FLAGS+=           OS_CFLAGS="${CFLAGS}"
 
 # pam_userdb uses ndbm if it finds it, otherwise it will use Berkeley DB.
 .if !exists(/usr/include/ndbm.h)