Skip to content

Commit

Permalink
Merge pull request #55729 from tilpner/groff-man-determinism
Browse files Browse the repository at this point in the history
groff: Remove indeterminism in manpages
  • Loading branch information
lheckemann committed Feb 14, 2019
2 parents a25d48c + 5888fae commit 3cf2745
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/tools/text/groff/default.nix
Expand Up @@ -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 \
Expand Down
13 changes: 13 additions & 0 deletions 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" \

0 comments on commit 3cf2745

Please sign in to comment.