Subject: Re: pkg/30965
To: None <rh@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: HIRAMATSU Yoshifumi <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 08/13/2005 09:58:02
The following reply was made to PR pkg/30965; it has been noted by GNATS.

From: HIRAMATSU Yoshifumi <hiramatu@boreas.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
	gnats-admin@netbsd.org, smb@machshav.com
Subject: Re: pkg/30965
Date: Sat, 13 Aug 2005 18:57:04 +0900

 It seems that
 
 OS_CFLAGS=
 
 in Make.Rules removes values of $(OS_CFLAGS) passed from parent make
 when enter into modules directory.
 
 I tied this patch on NetBSD 2.0.2 without security/PAM, and
 successfully finished.
 
 Index: distinfo
 ===================================================================
 RCS file: /cvsroot/pkgsrc/security/PAM/distinfo,v
 retrieving revision 1.12
 diff -b -u -r1.12 distinfo
 --- distinfo	24 Feb 2005 13:10:04 -0000	1.12
 +++ distinfo	12 Aug 2005 06:22:21 -0000
 @@ -22,7 +22,7 @@
  SHA1 (patch-aq) = 91587c5b9c6587221708247decb0e82f665ae2bf
  SHA1 (patch-ar) = b8072ebbc1a38c26d44c0e087a2b8b93f1eb7768
  SHA1 (patch-as) = e4fdfef53c097985c2aa8ff8225fed1caa812c10
 -SHA1 (patch-at) = 48d8874962407ad79a84aa8610d3ff490af2fe4b
 +SHA1 (patch-at) = 385aba49178b7a0e4ee952e4345040836c5285bf
  SHA1 (patch-au) = 6c1327faf2ec9f1ff74f01443075852bf94f3788
  SHA1 (patch-av) = 98c7b6ea2ba655cb405492eddba2f9d246b08817
  SHA1 (patch-aw) = d56fd3ca5093af306b0ceab5f81cb7bc6fd237de
 Index: patches/patch-at
 ===================================================================
 RCS file: /cvsroot/pkgsrc/security/PAM/patches/patch-at,v
 retrieving revision 1.5
 diff -b -u -r1.5 patch-at
 --- patches/patch-at	19 Nov 2004 14:54:55 -0000	1.5
 +++ patches/patch-at	12 Aug 2005 06:22:21 -0000
 @@ -1,8 +1,16 @@
 -$NetBSD: patch-at,v 1.5 2004/11/19 14:54:55 jlam Exp $
 +$NetBSD$
  
 ---- Make.Rules.in.orig	2002-06-27 00:04:54.000000000 -0400
 -+++ Make.Rules.in
 -@@ -75,10 +75,14 @@ WITH_MEMORY_DEBUG=@WITH_MEMORY_DEBUG@
 +--- Make.Rules.in.orig	2002-06-27 13:04:54.000000000 +0900
 ++++ Make.Rules.in	2005-08-12 14:44:36.000000000 +0900
 +@@ -35,7 +35,6 @@
 + HEADER_DIRS=-I./include -I$(absolute_srcdir)/libpam/include \
 + 	-I$(absolute_objdir) -I$(absolute_srcdir)/libpamc/include
 + WARNINGS=@WARNINGS@
 +-OS_CFLAGS=@OS_CFLAGS@
 + PIC=@PIC@
 + 
 + # Mode to install shared libraries with
 +@@ -75,10 +74,14 @@
   WITH_LIBDEBUG=@WITH_LIBDEBUG@
   WITH_PAMLOCKING=@WITH_PAMLOCKING@
   WITH_LCKPWDF=@WITH_LCKPWDF@
 @@ -21,7 +29,7 @@
   
   # Location of libraries when installed on the system
   FAKEROOT=@FAKEROOT@
 -@@ -104,7 +108,7 @@ LIBDL=@LIBDL@
 +@@ -104,7 +107,7 @@
   MKDIR=@MKDIR@
   INSTALL=@INSTALL@
   RANLIB=@RANLIB@
 
 -- 
 // HIRAMATSU Yoshifumi
 // hiramatu@boreas.dti.ne.jp