Unverified Commit 3cf2745c authored by Linus Heckemann's avatar Linus Heckemann Committed by GitHub
Browse files

Merge pull request #55729 from tilpner/groff-man-determinism

groff: Remove indeterminism in manpages
parents a25d48cd 5888faee
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 \
+13 −0
Original line number Diff line number Diff line
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" \