summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authortilpner <till@hoeppner.ws>2019-02-13 21:38:42 +0100
committertilpner <till@hoeppner.ws>2019-02-13 23:50:43 +0100
commit5888faeee617792cbb1991f812827f392f402c86 (patch)
treea9e7cab2c9edb0c12a0a39e5f463b081dee26888 /pkgs/tools/text
parente27fa435f7dd15506e96ee6b794b447998e77997 (diff)
downloadnixpkgs-5888faeee617792cbb1991f812827f392f402c86.tar
nixpkgs-5888faeee617792cbb1991f812827f392f402c86.tar.gz
nixpkgs-5888faeee617792cbb1991f812827f392f402c86.tar.bz2
nixpkgs-5888faeee617792cbb1991f812827f392f402c86.tar.lz
nixpkgs-5888faeee617792cbb1991f812827f392f402c86.tar.xz
nixpkgs-5888faeee617792cbb1991f812827f392f402c86.tar.zst
nixpkgs-5888faeee617792cbb1991f812827f392f402c86.zip
groff: Remove indeterminism in manpages
It was caused by including the modification date
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/groff/default.nix5
-rw-r--r--pkgs/tools/text/groff/mdate-determinism.patch13
2 files changed, 17 insertions, 1 deletions
diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix
index 88d487da9b9..082c61635ba 100644
--- a/pkgs/tools/text/groff/default.nix
+++ b/pkgs/tools/text/groff/default.nix
@@ -18,7 +18,10 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = false;
 
-  patches = [ ./look-for-ar.patch ];
+  patches = [
+    ./look-for-ar.patch
+    ./mdate-determinism.patch
+  ];
 
   postPatch = stdenv.lib.optionalString (psutils != null) ''
     substituteInPlace src/preproc/html/pre-html.cpp \
diff --git a/pkgs/tools/text/groff/mdate-determinism.patch b/pkgs/tools/text/groff/mdate-determinism.patch
new file mode 100644
index 00000000000..1253d113394
--- /dev/null
+++ b/pkgs/tools/text/groff/mdate-determinism.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.comm b/Makefile.comm
+index 75efc22..b757000 100644
+--- a/Makefile.comm
++++ b/Makefile.comm
+@@ -155,7 +155,7 @@ extraclean: distclean
+ 	     -e "s|@MAN1EXT@|$(man1ext)|g" \
+ 	     -e "s|@MAN5EXT@|$(man5ext)|g" \
+ 	     -e "s|@MAN7EXT@|$(man7ext)|g" \
+-	     -e "s|@MDATE@|`$(SHELL) $(top_srcdir)/mdate.sh $<`|g" \
++	     -e "s|@MDATE@|`date +'%-d %B %Y' -r $(top_srcdir)/ChangeLog`|g" \
+ 	     -e "s|@OLDFONTDIR@|$(oldfontdir)|g" \
+ 	     -e "s|@PDFDOCDIR@|$(pdfdocdir)|g" \
+ 	     -e "s|@SYSTEMMACRODIR@|$(systemtmacdir)|g" \