summaryrefslogtreecommitdiff
path: root/libre/netpbm
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-11-28 10:15:03 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-11-28 10:15:03 +0100
commite609d068150eebe1dcc8973b06e0ebdbe1ef494f (patch)
tree156f39a30469e975b5c46688e661e3fe58606c07 /libre/netpbm
parentebb2dfa669477de53d8c78ea4a22cdbc11436c5b (diff)
downloadabslibre-e609d068150eebe1dcc8973b06e0ebdbe1ef494f.tar.gz
abslibre-e609d068150eebe1dcc8973b06e0ebdbe1ef494f.tar.bz2
abslibre-e609d068150eebe1dcc8973b06e0ebdbe1ef494f.zip
libre: netpbm: Add forgetten patches from Arch Linux
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre/netpbm')
-rw-r--r--libre/netpbm/reproducible-man-gzip.patch16
-rw-r--r--libre/netpbm/use-source-date-epoch.patch13
2 files changed, 29 insertions, 0 deletions
diff --git a/libre/netpbm/reproducible-man-gzip.patch b/libre/netpbm/reproducible-man-gzip.patch
new file mode 100644
index 000000000..f6f4f0df7
--- /dev/null
+++ b/libre/netpbm/reproducible-man-gzip.patch
@@ -0,0 +1,16 @@
+diff -aur netpbm-10.73.31.old/buildtools/manpage.mk netpbm-10.73.31/buildtools/manpage.mk
+--- netpbm-10.73.31.old/buildtools/manpage.mk 2020-05-28 18:41:20.400790506 +0200
++++ netpbm-10.73.31/buildtools/manpage.mk 2020-05-28 18:50:50.444143414 +0200
+@@ -388,9 +388,9 @@
+ # This will install the generated man pages
+ installman:
+ set -x
+- for f in netpbm.1 $(MAN1); do if [ -f $$f ]; then gzip <$$f >$(MANDIR)/man1/$$f.gz; fi; done
+- for f in $(MAN3); do if [ -f $$f ]; then gzip <$$f >$(MANDIR)/man3/$$f.gz; fi; done
+- for f in $(MAN5); do if [ -f $$f ]; then gzip <$$f >$(MANDIR)/man5/$$f.gz; fi; done
++ for f in netpbm.1 $(MAN1); do if [ -f $$f ]; then gzip -n <$$f >$(MANDIR)/man1/$$f.gz; fi; done
++ for f in $(MAN3); do if [ -f $$f ]; then gzip -n <$$f >$(MANDIR)/man3/$$f.gz; fi; done
++ for f in $(MAN5); do if [ -f $$f ]; then gzip -n <$$f >$(MANDIR)/man5/$$f.gz; fi; done
+
+ # This will uninstall them
+ uninstallman:
diff --git a/libre/netpbm/use-source-date-epoch.patch b/libre/netpbm/use-source-date-epoch.patch
new file mode 100644
index 000000000..496935fe6
--- /dev/null
+++ b/libre/netpbm/use-source-date-epoch.patch
@@ -0,0 +1,13 @@
+Only in netpbm-10.73.31/buildtools/: depend.mk
+diff -aur netpbm-10.73.31.old/buildtools/stamp-date netpbm-10.73.31/buildtools/stamp-date
+--- netpbm-10.73.31.old/buildtools/stamp-date 2020-05-30 17:34:29.833395465 +0200
++++ netpbm-10.73.31/buildtools/stamp-date 2020-05-30 17:48:52.910091897 +0200
+@@ -9,7 +9,7 @@
+ # documentation. This software is provided "as is" without express or
+ # implied warranty.
+ #
+-DATE=$(date)
++DATE="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}")"
+ LOGNAME_OR_UNKNOWN=${LOGNAME:-UNKNOWN}
+ USER=${USER:-$LOGNAME_OR_UNKNOWN}
+ if [ "$USER" = "UNKNOWN" ]; then