On 10.07.2012 20:33, Michael Biebl wrote:
> On 10.07.2012 20:09, Jakub Wilk wrote:
>> * Michael Biebl <bi...@debian.org>, 2012-07-10, 19:44:
>>> As for a work-around:
>>> the attached, simple script replaces the dates with the mtime of the 
>>> corresponding .xml file.
>>> This could be run in override_dh_install: before we call dh_install
>>
>> It might be simpler to run xsltproc (or whatever does the conversion) 
>> under faketime.
> 
> This adds an additional b-dep on faketime, but fair enough.
> 
> The attached patch seems to do the trick for me.

And to avoid skew from differing timezones, also set TZ to GMT...


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff --git a/Makefile.am b/Makefile.am
index 079c118..cde31b6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2204,11 +2204,11 @@ XSLTPROC_FLAGS = \
 
 XSLTPROC_PROCESS_MAN = \
 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
-	$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+	faketime `LANG=C TZ=GMT stat $< | awk '/Modify/ {print $$2}'` $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
 
 XSLTPROC_PROCESS_HTML = \
 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
-	$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
+	faketime `LANG=C TZ=GMT stat $< | awk '/Modify/ {print $$2}'` $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
 
 man/%.1: man/%.xml
 	$(XSLTPROC_PROCESS_MAN)
diff --git a/debian/control b/debian/control
index 33717aa..70ca95b 100644
--- a/debian/control
+++ b/debian/control
@@ -32,7 +32,8 @@ Build-Depends: debhelper (>= 9),
                liblzma-dev,
                libgee-dev,
                gperf,
-               libkmod-dev (>= 5)
+               libkmod-dev (>= 5),
+               faketime
 
 Package: systemd
 Architecture: linux-any

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to