pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/pam-passwdqc pam-passwdqc: Respect LDFLAGS. F...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ca055235644
branches:  trunk
changeset: 376109:1ca055235644
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Apr 02 11:08:47 2022 +0000

description:
pam-passwdqc: Respect LDFLAGS. Fixes RELRO build.

diffstat:

 security/pam-passwdqc/distinfo               |   4 +-
 security/pam-passwdqc/patches/patch-Makefile |  60 ++++++++++++++++++++++++++++
 security/pam-passwdqc/patches/patch-aa       |  36 ----------------
 3 files changed, 62 insertions(+), 38 deletions(-)

diffs (116 lines):

diff -r aef0609749a0 -r 1ca055235644 security/pam-passwdqc/distinfo
--- a/security/pam-passwdqc/distinfo    Sat Apr 02 10:58:07 2022 +0000
+++ b/security/pam-passwdqc/distinfo    Sat Apr 02 11:08:47 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:17:34 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/04/02 11:08:47 nia Exp $
 
 BLAKE2s (passwdqc-1.1.4.tar.gz) = ed7d45a28e4a2122bfd1a545fac29f4e943cd04e9b39d1df8e9f06db285e20b8
 SHA512 (passwdqc-1.1.4.tar.gz) = c5a8e6eb857bda1c829df837e490121fe31719cecf57b85c7959efc3533cac5885c8762150d57e656802ce878822de505672383a620c047641fa1608bd8bfaea
 Size (passwdqc-1.1.4.tar.gz) = 41760 bytes
-SHA1 (patch-aa) = 2a631c17278783cab5203199bff29ead3623a5f1
+SHA1 (patch-Makefile) = 0f0b95d644086ba3bb808189e76fd00c401c3aa3
diff -r aef0609749a0 -r 1ca055235644 security/pam-passwdqc/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/pam-passwdqc/patches/patch-Makefile      Sat Apr 02 11:08:47 2022 +0000
@@ -0,0 +1,60 @@
+$NetBSD: patch-Makefile,v 1.1 2022/04/02 11:08:47 nia Exp $
+
+Honor settings from environment.
+
+--- Makefile.orig      2009-10-27 01:45:50.000000000 +0000
++++ Makefile
+@@ -30,32 +30,32 @@ INCLUDEDIR = /usr/include
+ MANDIR = /usr/share/man
+ DESTDIR =
+ 
+-CC = gcc
+-LD = $(CC)
++#CC = gcc
++#LD = $(CC)
+ LD_lib = $(LD)
+ RM = rm -f
+ LN_s = ln -s -f
+ MKDIR = umask 022 && mkdir -p
+ INSTALL = install -c
+-CFLAGS = -Wall -O2
++#CFLAGS = -Wall -O2
+ CFLAGS_lib = $(CFLAGS) -fPIC
+ CFLAGS_bin = $(CFLAGS) -fomit-frame-pointer
+ 
+-LDFLAGS =
++#LDFLAGS =
+ LDFLAGS_shared = --shared
+ LDFLAGS_shared_LINUX = --shared
+ LDFLAGS_shared_SUN = -G
+ LDFLAGS_shared_HP = -b
+-LDFLAGS_lib = $(LDFLAGS_shared)
+-LDFLAGS_lib_LINUX = $(LDFLAGS_shared_LINUX) \
++LDFLAGS_lib = $(LDFLAGS) $(LDFLAGS_shared)
++LDFLAGS_lib_LINUX = $(LDFLAGS) $(LDFLAGS_shared_LINUX) \
+       -Wl,--soname,$(SHARED_LIB),--version-script,$(MAP_LIB)
+-LDFLAGS_lib_SUN = $(LDFLAGS_shared_SUN)
+-LDFLAGS_lib_HP = $(LDFLAGS_shared_HP)
+-LDFLAGS_pam = $(LDFLAGS_shared)
+-LDFLAGS_pam_LINUX = $(LDFLAGS_shared_LINUX) \
++LDFLAGS_lib_SUN = $(LDFLAGS) $(LDFLAGS_shared_SUN)
++LDFLAGS_lib_HP = $(LDFLAGS) $(LDFLAGS_shared_HP)
++LDFLAGS_pam = $(LDFLAGS) $(LDFLAGS_shared)
++LDFLAGS_pam_LINUX = $(LDFLAGS) $(LDFLAGS_shared_LINUX) \
+       -Wl,--version-script,$(MAP_PAM)
+-LDFLAGS_pam_SUN = $(LDFLAGS_shared_SUN)
+-LDFLAGS_pam_HP = $(LDFLAGS_shared_HP)
++LDFLAGS_pam_SUN = $(LDFLAGS) $(LDFLAGS_shared_SUN)
++LDFLAGS_pam_HP = $(LDFLAGS) $(LDFLAGS_shared_HP)
+ 
+ LDLIBS_lib =
+ LDLIBS_pam = -lpam -lcrypt
+@@ -119,7 +119,7 @@ $(DEVEL_LIB): $(SHARED_LIB)
+       $(LN_s) $(SHARED_LIB) $(DEVEL_LIB)
+ 
+ $(SHARED_PAM): $(OBJS_PAM) $(MAP_PAM) $(DEVEL_LIB)
+-      $(LD_lib) $(LDFLAGS_pam) $(OBJS_PAM) $(LDLIBS_pam) -L. -lpasswdqc -o $(SHARED_PAM)
++      $(LD_lib) $(LDFLAGS_pam) $(OBJS_PAM) $(LDLIBS_pam) -L. -Wl,-R${PREFIX}/lib -lpasswdqc -o $(SHARED_PAM)
+ 
+ pwqgen: $(OBJS_GEN) $(DEVEL_LIB)
+       $(LD) $(LDFLAGS) $(OBJS_GEN) -L. -lpasswdqc -o $@
diff -r aef0609749a0 -r 1ca055235644 security/pam-passwdqc/patches/patch-aa
--- a/security/pam-passwdqc/patches/patch-aa    Sat Apr 02 10:58:07 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2009/11/18 16:59:30 drochner Exp $
-
---- Makefile.orig      2009-10-27 02:45:50.000000000 +0100
-+++ Makefile
-@@ -30,18 +30,18 @@ INCLUDEDIR = /usr/include
- MANDIR = /usr/share/man
- DESTDIR =
- 
--CC = gcc
--LD = $(CC)
-+#CC = gcc
-+#LD = $(CC)
- LD_lib = $(LD)
- RM = rm -f
- LN_s = ln -s -f
- MKDIR = umask 022 && mkdir -p
- INSTALL = install -c
--CFLAGS = -Wall -O2
-+#CFLAGS = -Wall -O2
- CFLAGS_lib = $(CFLAGS) -fPIC
- CFLAGS_bin = $(CFLAGS) -fomit-frame-pointer
- 
--LDFLAGS =
-+#LDFLAGS =
- LDFLAGS_shared = --shared
- LDFLAGS_shared_LINUX = --shared
- LDFLAGS_shared_SUN = -G
-@@ -119,7 +119,7 @@ $(DEVEL_LIB): $(SHARED_LIB)
-       $(LN_s) $(SHARED_LIB) $(DEVEL_LIB)
- 
- $(SHARED_PAM): $(OBJS_PAM) $(MAP_PAM) $(DEVEL_LIB)
--      $(LD_lib) $(LDFLAGS_pam) $(OBJS_PAM) $(LDLIBS_pam) -L. -lpasswdqc -o $(SHARED_PAM)
-+      $(LD_lib) $(LDFLAGS_pam) $(OBJS_PAM) $(LDLIBS_pam) -L. -Wl,-R${PREFIX}/lib -lpasswdqc -o $(SHARED_PAM)
- 
- pwqgen: $(OBJS_GEN) $(DEVEL_LIB)
-       $(LD) $(LDFLAGS) $(OBJS_GEN) -L. -lpasswdqc -o $@



Home | Main Index | Thread Index | Old Index