pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/libcrack patch the Makefiles so RELRO flags work



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fbb56a00e074
branches:  trunk
changeset: 369325:fbb56a00e074
user:      spz <spz%pkgsrc.org@localhost>
date:      Thu Sep 28 11:04:07 2017 +0000

description:
patch the Makefiles so RELRO flags work

diffstat:

 security/libcrack/distinfo         |   6 +++---
 security/libcrack/patches/patch-ab |   4 ++--
 security/libcrack/patches/patch-ac |  12 ++++++------
 3 files changed, 11 insertions(+), 11 deletions(-)

diffs (73 lines):

diff -r 2a969abe559a -r fbb56a00e074 security/libcrack/distinfo
--- a/security/libcrack/distinfo        Thu Sep 28 10:44:52 2017 +0000
+++ b/security/libcrack/distinfo        Thu Sep 28 11:04:07 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2016/10/30 20:49:57 spz Exp $
+$NetBSD: distinfo,v 1.9 2017/09/28 11:04:07 spz Exp $
 
 SHA1 (cracklib,2.7.tar.gz) = 903bb7e2400c7e486f432aab026dd6584815d2c1
 RMD160 (cracklib,2.7.tar.gz) = 8c1710580ed5778f54d30b709cac0b4b07543aed
@@ -6,5 +6,5 @@
 Size (cracklib,2.7.tar.gz) = 21059 bytes
 SHA1 (patch-CVE-2016-6318) = 8cfb44a70c1b9e23a9739edc393fc017a7327902
 SHA1 (patch-aa) = 8119a733f4bdb0a5a41e41ab53e9923564a70855
-SHA1 (patch-ab) = b9a0b5929936a1335f08cab93710bbe66c74183d
-SHA1 (patch-ac) = 43031370c2bb08c7b43c6afad0fabe8060ac66b3
+SHA1 (patch-ab) = b69fafe0b49de13a977df43fbaf8c01c06e0c2a8
+SHA1 (patch-ac) = 44677705081bfd13523469137cd73fe2d9a3aadb
diff -r 2a969abe559a -r fbb56a00e074 security/libcrack/patches/patch-ab
--- a/security/libcrack/patches/patch-ab        Thu Sep 28 10:44:52 2017 +0000
+++ b/security/libcrack/patches/patch-ab        Thu Sep 28 11:04:07 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.3 2009/12/10 23:30:53 abs Exp $
+$NetBSD: patch-ab,v 1.4 2017/09/28 11:04:07 spz Exp $
 
 --- cracklib/Makefile.orig     1997-12-14 22:49:21.000000000 +0000
 +++ cracklib/Makefile
@@ -20,7 +20,7 @@
 +      ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} $< -c -o ${.TARGET}
 +
 +${LIB}:       ${OBJS}
-+      ${LIBTOOL} --mode=link ${CC} -o ${@:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 2:7
++      ${LIBTOOL} --mode=link ${CC} ${CFLAGS} ${LDFLAGS} -o ${@:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 2:7
  
  clean:
        -rm -f $(OBJ) $(LIB) *~
diff -r 2a969abe559a -r fbb56a00e074 security/libcrack/patches/patch-ac
--- a/security/libcrack/patches/patch-ac        Thu Sep 28 10:44:52 2017 +0000
+++ b/security/libcrack/patches/patch-ac        Thu Sep 28 11:04:07 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.2 2009/12/10 23:30:53 abs Exp $
+$NetBSD: patch-ac,v 1.3 2017/09/28 11:04:07 spz Exp $
 
 --- util/Makefile.orig 1997-12-14 22:49:34.000000000 +0000
 +++ util/Makefile
@@ -16,23 +16,23 @@
  
  packer: packer.o $(LIBS)
 -      cc $(CFLAGS) -o $@ $@.o $(LIBS)
-+      ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
++      ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${LIBS}
  
  unpacker: unpacker.o $(LIBS)
 -      cc $(CFLAGS) -o $@ $@.o $(LIBS)
-+      ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
++      ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${LIBS}
  
  testnum: testnum.o $(LIBS)
 -      cc $(CFLAGS) -o $@ $@.o $(LIBS)
-+      ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
++      ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${LIBS}
  
  teststr: teststr.o $(LIBS)
 -      cc $(CFLAGS) -o $@ $@.o $(LIBS)
-+      ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
++      ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${LIBS}
  
  testlib: testlib.o $(LIBS)
 -      cc $(CFLAGS) -o $@ $@.o $(LIBS)
-+      ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
++      ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${LIBS}
  
  clean:
        -rm *.o *~ all



Home | Main Index | Thread Index | Old Index