summary refs log tree commit diff
path: root/pkgs/tools/misc/ms-sys
diff options
context:
space:
mode:
authorArnout Engelen <arnout@bzzt.net>2020-01-06 16:54:43 +0100
committerNiklas Hambüchen <mail@nh2.me>2020-01-12 04:52:34 +0100
commitb0ec8d6d2a1787bf0b73052da6c3f485f610b3a5 (patch)
tree6c8e80ba8dbce31629031ea5c15ed485e845de3a /pkgs/tools/misc/ms-sys
parent2e8fc97dbfacc1178ae846ab31210539f7a958f0 (diff)
ms-sys: avoid the build timestamp from leaking into the manpage
Also proposed upstream as https://sourceforge.net/p/ms-sys/patches/8/
Diffstat (limited to 'pkgs/tools/misc/ms-sys')
-rw-r--r--pkgs/tools/misc/ms-sys/default.nix2
-rw-r--r--pkgs/tools/misc/ms-sys/manpages-without-build-timestamps.patch12
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ms-sys/default.nix b/pkgs/tools/misc/ms-sys/default.nix
index 2607cf6f300a0..0a862834dfb77 100644
--- a/pkgs/tools/misc/ms-sys/default.nix
+++ b/pkgs/tools/misc/ms-sys/default.nix
@@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
     url = "mirror://sourceforge/ms-sys/${pname}-${version}.tar.gz";
     sha256 = "06xqpm2s9cg8fj7a1822wmh3p4arii0sifssazg1gr6i7xg7kbjz";
   };
+  # TODO: Remove with next release, see https://sourceforge.net/p/ms-sys/patches/8/
+  patches = [ ./manpages-without-build-timestamps.patch ];
 
   nativeBuildInputs = [ gettext ];
 
diff --git a/pkgs/tools/misc/ms-sys/manpages-without-build-timestamps.patch b/pkgs/tools/misc/ms-sys/manpages-without-build-timestamps.patch
new file mode 100644
index 0000000000000..7b031cb34f1a0
--- /dev/null
+++ b/pkgs/tools/misc/ms-sys/manpages-without-build-timestamps.patch
@@ -0,0 +1,12 @@
+diff -u ms-sys-2.6.0/Makefile ms-sys-2.6.0-fixed/Makefile
+--- ms-sys-2.6.0/Makefile	2015-09-27 20:39:45.000000000 +0200
++++ ms-sys-2.6.0-fixed/Makefile2020-01-06 16:43:55.181477511 +0100
+@@ -121,7 +121,7 @@
+
+ $(DESTDIR)$(MANDIR)/%: $(MAN)/$(dir $(*D))/$(*F)
+ 	install -D -m 644 $(MAN)/$(dir $(*D))$(*F) $@
+-	gzip -f $@
++	gzip -n -f $@
+
+ #$(DESTDIR)$(MANDIR)/%: $(MAN)/$(*F)
+ #	echo t: $<