Skip to content

Commit f3a1b24

Browse files
committed
Build manpages reproducibly, through reading the MODTIME from
debian/changelog exclusively, and giving LC_ALL=C.UTF-8 TZ=UTC to various commands Gbp-Pq: Name 0021-Build-manpages-reproducibly-through-reading-the-MODT.patch
1 parent 1ec33d1 commit f3a1b24

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ endif
8080
ifeq ($(UNAME),SunOS)
8181
MODTIME= `ls -e $$1 | cut -c42-61`
8282
endif
83+
# Define modtime from the debian changelog, for all files
84+
MODTIME= LC_ALL=C.UTF-8 TZ=UTC date -d "$$(dpkg-parsechangelog -SDate)" "+%a %b %d %T %Y"
8385

8486
#
8587
# Files for tarball
@@ -1606,12 +1608,12 @@ install-doc: doc
16061608
$(INSTALL) -c -m 644 ChangeLog $(DOCDIR)
16071609

16081610
GROFF=/usr/local/test/bin/groff
1609-
GROFF=groff
1611+
GROFF=LC_ALL=C.UTF-8 TZ=UTC groff
16101612
manual.pdf: $(MANPAGES) osx-hotplug/osx-hplj-hotplug.1
16111613
-$(GROFF) -t -man \
16121614
`ls $(MANPAGES) \
16131615
osx-hotplug/osx-hplj-hotplug.1 \
1614-
| sort` \
1616+
| LC_ALL=C.UTF-8 sort` \
16151617
| ps2pdf - $@
16161618

16171619
README: README.in

0 commit comments

Comments
 (0)