pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/fdupes fdupes: honor CFLAGS and LDFLAGS.
details: https://anonhg.NetBSD.org/pkgsrc/rev/d58cb9bd03d1
branches: trunk
changeset: 426624:d58cb9bd03d1
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Apr 03 22:06:17 2020 +0000
description:
fdupes: honor CFLAGS and LDFLAGS.
Fixes RELRO build.
diffstat:
sysutils/fdupes/Makefile | 3 ++-
sysutils/fdupes/distinfo | 4 ++--
sysutils/fdupes/patches/patch-ac | 21 ++++++++++++++++++++-
3 files changed, 24 insertions(+), 4 deletions(-)
diffs (68 lines):
diff -r 0409315c84c8 -r d58cb9bd03d1 sysutils/fdupes/Makefile
--- a/sysutils/fdupes/Makefile Fri Apr 03 22:00:07 2020 +0000
+++ b/sysutils/fdupes/Makefile Fri Apr 03 22:06:17 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2016/04/01 11:12:27 jperkin Exp $
+# $NetBSD: Makefile,v 1.5 2020/04/03 22:06:17 wiz Exp $
DISTNAME= fdupes-1.51
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://fdupes.googlecode.com/files/
diff -r 0409315c84c8 -r d58cb9bd03d1 sysutils/fdupes/distinfo
--- a/sysutils/fdupes/distinfo Fri Apr 03 22:00:07 2020 +0000
+++ b/sysutils/fdupes/distinfo Fri Apr 03 22:06:17 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2016/04/01 11:12:27 jperkin Exp $
+$NetBSD: distinfo,v 1.5 2020/04/03 22:06:17 wiz Exp $
SHA1 (fdupes-1.51.tar.gz) = 8276b39026f57a2f9503d7af18efca0a7d42b8ec
RMD160 (fdupes-1.51.tar.gz) = cf2c3524a2f827c50ce2ef257d3d7f9b75951c48
SHA512 (fdupes-1.51.tar.gz) = 7cbc414f25427793317667b8d5494f7247a08ba402855929de77d1db01eb3dce41ea608f8dcca047c4a7856e02b10261982cf2acd7f6a79ab726b3009c710a8d
Size (fdupes-1.51.tar.gz) = 48942 bytes
SHA1 (patch-aa) = 925d3c4923fe1d784273b292ef3be0a36371a9f2
-SHA1 (patch-ac) = 597dd70e23aee5db32152f3e9579c3c0059011f9
+SHA1 (patch-ac) = d04133bbb697d79019383f31d3ee252fc7f32db2
diff -r 0409315c84c8 -r d58cb9bd03d1 sysutils/fdupes/patches/patch-ac
--- a/sysutils/fdupes/patches/patch-ac Fri Apr 03 22:00:07 2020 +0000
+++ b/sysutils/fdupes/patches/patch-ac Fri Apr 03 22:06:17 2020 +0000
@@ -1,7 +1,8 @@
-$NetBSD: patch-ac,v 1.3 2016/04/01 11:12:27 jperkin Exp $
+$NetBSD: patch-ac,v 1.4 2020/04/03 22:06:17 wiz Exp $
Fix various target paths.
Add a rule in order not to depend on gmake.
+Honor CFLAGS and LDFLAGS.
--- Makefile.orig 2013-04-20 17:51:58.000000000 +0000
+++ Makefile
@@ -30,6 +31,15 @@
MAN_DIR = $(MAN_BASE_DIR)/man1
MAN_EXT = 1
+@@ -80,7 +80,7 @@ MKDIR = mkdir -p
+ CC = gcc
+ COMPILER_OPTIONS = -Wall -O -g
+
+-CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
++CFLAGS+= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
+
+ INSTALL_PROGRAM = $(INSTALL) -c -m 0755
+ INSTALL_DATA = $(INSTALL) -c -m 0644
@@ -91,7 +91,9 @@ INSTALL_DATA = $(INSTALL) -c -m 0644
#
#ADDITIONAL_OBJECTS = getopt.o
@@ -41,3 +51,12 @@
#####################################################################
# no need to modify anything beyond this point #
+@@ -100,7 +102,7 @@ OBJECT_FILES = fdupes.o md5/md5.o $(ADDI
+ all: fdupes
+
+ fdupes: $(OBJECT_FILES)
+- $(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES)
+
+ installdirs:
+ test -d $(BIN_DIR) || $(MKDIR) $(BIN_DIR)
Home |
Main Index |
Thread Index |
Old Index