Просмотр исходного кода

DocBook: Don't store mtime (or name) in compressed man pages

The mtime on a man page is the build time.  As gzip stores the mtime
and original name in the compressed file by default, this makes
compressed man pages unreproducible.  Neither of these are important
metadata in this case, so turn this off.

Reported-by: Jérémy Bobbio <lunar@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Ben Hutchings 10 лет назад
Родитель
Сommit
32c1735c40
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Documentation/DocBook/Makefile

+ 1 - 1
Documentation/DocBook/Makefile

@@ -56,7 +56,7 @@ htmldocs: $(HTML)
 
 
 MAN := $(patsubst %.xml, %.9, $(BOOKS))
 MAN := $(patsubst %.xml, %.9, $(BOOKS))
 mandocs: $(MAN)
 mandocs: $(MAN)
-	find $(obj)/man -name '*.9' | xargs gzip -f
+	find $(obj)/man -name '*.9' | xargs gzip -nf
 
 
 installmandocs: mandocs
 installmandocs: mandocs
 	mkdir -p /usr/local/man/man9/
 	mkdir -p /usr/local/man/man9/