pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/usbutil Failed to build with RELRO option



details:   https://anonhg.NetBSD.org/pkgsrc/rev/485cead05870
branches:  trunk
changeset: 336932:485cead05870
user:      micha <micha%pkgsrc.org@localhost>
date:      Mon Jul 29 11:19:56 2019 +0000

description:
Failed to build with RELRO option

- Honor LDFLAGS
- Bump PKGREVISION
- Add LICENSE (to fix pkglint error)
- Comment out dead homepage, reset maintainer
  OK by wiz@

diffstat:

 sysutils/usbutil/Makefile               |  13 +++++++------
 sysutils/usbutil/distinfo               |   4 ++--
 sysutils/usbutil/patches/patch-Makefile |  33 +++++++++++++++++++++++++++++++++
 sysutils/usbutil/patches/patch-ae       |  14 --------------
 4 files changed, 42 insertions(+), 22 deletions(-)

diffs (99 lines):

diff -r bd002c28225f -r 485cead05870 sysutils/usbutil/Makefile
--- a/sysutils/usbutil/Makefile Mon Jul 29 11:16:53 2019 +0000
+++ b/sysutils/usbutil/Makefile Mon Jul 29 11:19:56 2019 +0000
@@ -1,16 +1,17 @@
-# $NetBSD: Makefile,v 1.18 2012/10/23 19:51:28 asau Exp $
-#
+# $NetBSD: Makefile,v 1.19 2019/07/29 11:19:56 micha Exp $
 
 DISTNAME=      usbutil-0.5
-PKGREVISION=   5
+PKGREVISION=   6
 CATEGORIES=    sysutils
-MASTER_SITES=  ftp://ftp.augustsson.net/pub/netbsd/
+#MASTER_SITES= ftp://ftp.augustsson.net/pub/netbsd/
 
-MAINTAINER=    lennart%augustsson.net@localhost
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 COMMENT=       USB developer utilities
+LICENSE=       2-clause-bsd
+
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man8
 
 post-install:
-       ${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
        ${INSTALL_MAN} ${WRKSRC}/usbgen.8 \
                ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/usbgen.8
 
diff -r bd002c28225f -r 485cead05870 sysutils/usbutil/distinfo
--- a/sysutils/usbutil/distinfo Mon Jul 29 11:16:53 2019 +0000
+++ b/sysutils/usbutil/distinfo Mon Jul 29 11:19:56 2019 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.15 2015/11/04 01:32:34 agc Exp $
+$NetBSD: distinfo,v 1.16 2019/07/29 11:19:56 micha Exp $
 
 SHA1 (usbutil-0.5.tar.gz) = 4c9abc6f370ab561bd2748b1792802d1e959c599
 RMD160 (usbutil-0.5.tar.gz) = 48c6bedeed8daf50a760feedef3575db021066f8
 SHA512 (usbutil-0.5.tar.gz) = 7bede70e32b185123f7297ccfe49f28ec7724a83ae018d9fce69e4aad6211a18571e177249da4d20cee3c7db3362011a4b13d6044a5f858bdc3951a247498dd8
 Size (usbutil-0.5.tar.gz) = 11508 bytes
+SHA1 (patch-Makefile) = dace3011ddd427f40e676099d9ff11726ff6679a
 SHA1 (patch-aa) = 8db548f99befd76839b8b31caa2de0861c6d708b
 SHA1 (patch-ab) = b470a91102e8ea4fbb592b4a0f5978ed11196969
 SHA1 (patch-ac) = 0c1c7e67c84c1a6db1ad0144803977bee7c61ceb
 SHA1 (patch-ad) = a98c2a46c6eb860416ff631c62361f5b0282def8
-SHA1 (patch-ae) = 92844785b7e6232332a0437cc257b8ecb3f2f50e
diff -r bd002c28225f -r 485cead05870 sysutils/usbutil/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbutil/patches/patch-Makefile   Mon Jul 29 11:19:56 2019 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-Makefile,v 1.1 2019/07/29 11:19:56 micha Exp $
+
+Honor LDFLAGS.
+Use DESTDIR.
+
+--- Makefile.orig      1999-05-19 21:05:31.000000000 +0000
++++ Makefile
+@@ -7,19 +7,20 @@ man: usbgen.8
+       nroff -mandoc usbgen.8 > usbgen.0
+ 
+ usbctl:               usbctl.c
+-      cc $(CFLAGS) usbctl.c -o usbctl
++      $(CC) $(CFLAGS) $(LDFLAGS) usbctl.c -o usbctl
+ 
+ usbdebug:     usbdebug.c
+-      cc $(CFLAGS) usbdebug.c -o usbdebug
++      $(CC) $(CFLAGS) $(LDFLAGS) usbdebug.c -o usbdebug
+ 
+ usbstats:     usbstats.c
+-      cc $(CFLAGS) usbstats.c -o usbstats
++      $(CC) $(CFLAGS) $(LDFLAGS) usbstats.c -o usbstats
+ 
+ usbgen:               usbgen.c
+-      cc $(CFLAGS) usbgen.c -o usbgen
++      $(CC) $(CFLAGS) $(LDFLAGS) usbgen.c -o usbgen
+ 
+ install: $(PROGS)
+-      install usbctl usbdebug usbstats usbgen $(PREFIX)/sbin
++      ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/sbin
++      install usbctl usbdebug usbstats usbgen ${DESTDIR}$(PREFIX)/sbin
+ 
+ clean:
+       rm -f $(PROGS)
diff -r bd002c28225f -r 485cead05870 sysutils/usbutil/patches/patch-ae
--- a/sysutils/usbutil/patches/patch-ae Mon Jul 29 11:16:53 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-ae,v 1.4 2008/12/07 12:32:27 bjs Exp $
-
---- Makefile.orig      1999-05-19 17:05:31.000000000 -0400
-+++ Makefile
-@@ -19,7 +19,8 @@ usbgen:              usbgen.c
-       cc $(CFLAGS) usbgen.c -o usbgen
- 
- install: $(PROGS)
--      install usbctl usbdebug usbstats usbgen $(PREFIX)/sbin
-+      ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/sbin
-+      install usbctl usbdebug usbstats usbgen ${DESTDIR}$(PREFIX)/sbin
- 
- clean:
-       rm -f $(PROGS)



Home | Main Index | Thread Index | Old Index