| |
@@ -1,45 +0,0 @@
|
| |
- diff -up jdupes-1.20.0/Makefile.orig jdupes-1.20.0/Makefile
|
| |
- --- jdupes-1.20.0/Makefile.orig 2021-05-12 17:42:26.000000000 -0400
|
| |
- +++ jdupes-1.20.0/Makefile 2021-08-10 14:11:29.738413518 -0400
|
| |
- @@ -6,7 +6,7 @@
|
| |
-
|
| |
- # PREFIX determines where files will be installed. Common examples
|
| |
- # include "/usr" or "/usr/local".
|
| |
- -PREFIX = /usr/local
|
| |
- +PREFIX ?= /usr
|
| |
-
|
| |
- # Certain platforms do not support long options (command line options).
|
| |
- # To disable long options, uncomment the following line.
|
| |
- @@ -14,7 +14,8 @@ PREFIX = /usr/local
|
| |
-
|
| |
- # Uncomment for -B/--dedupe.
|
| |
- # This can also be enabled at build time: 'make ENABLE_DEDUPE=1'
|
| |
- -#CFLAGS += -DENABLE_DEDUPE
|
| |
- +CFLAGS += -DENABLE_DEDUPE
|
| |
- +ENABLE_DEDUPE = 1
|
| |
-
|
| |
- # Uncomment for low memory usage at the expense of speed and features
|
| |
- # This can be enabled at build time: 'make LOW_MEMORY=1'
|
| |
- @@ -22,7 +23,7 @@ PREFIX = /usr/local
|
| |
-
|
| |
- # Uncomment this to build in hardened mode.
|
| |
- # This can be enabled at build time: 'make HARDEN=1'
|
| |
- -#HARDEN=1
|
| |
- +HARDEN=1
|
| |
-
|
| |
- #####################################################################
|
| |
- # Developer Configuration Section #
|
| |
- @@ -33,11 +34,11 @@ PROGRAM_NAME = jdupes
|
| |
-
|
| |
- # BIN_DIR indicates directory where program is to be installed.
|
| |
- # Suggested value is "$(PREFIX)/bin"
|
| |
- -BIN_DIR = $(PREFIX)/bin
|
| |
- +BIN_DIR ?= $(PREFIX)/bin
|
| |
-
|
| |
- # MAN_DIR indicates directory where the jdupes man page is to be
|
| |
- # installed. Suggested value is "$(PREFIX)/man/man1"
|
| |
- -MAN_BASE_DIR = $(PREFIX)/share/man
|
| |
- +MAN_BASE_DIR ?= $(PREFIX)/share/man
|
| |
- MAN_DIR = $(MAN_BASE_DIR)/man1
|
| |
- MAN_EXT = 1
|
| |
-
|
| |
This patch didn't work. I'm too old and life is too short to go spelunking through bespoke Makefiles like it's 1997, but at quick glance I think it's because
CFLAGS
passed tomake
in the specfile overrides theCFLAGS
thatENABLE_DEDUPE
is getting added to in the patch.My solution is to use
CFLAGS_EXTRA
instead ofCFLAGS
in the spec file, and also putENABLE_DEDUPE=1
there. This results in the upstreamCOMPILER_OPTIONS
stuck at the beginning and our%{optflags]
-set ones tacked on after, which... I don't know if that's right — without investigating the "why" of each one set by upstream, seems like a coin-toss as to whether that's better or worse than flat-out replacing them.Anyway, the result is a build where
-DENABLE_DEDUPE
is actually used throughout, resulting in working-B
functionality.(Why
-B
? It's forbtrfs
, I think, originally. UI is hard even on the command line!)