On 10.07.2012 21:09, Jakub Wilk wrote:
> * Michael Biebl <bi...@debian.org>, 2012-07-10, 20:58:
>> It seems faketime seems to handle timezone information just fine, which 
>> simplifies it quite a bit.
> 
> It parses timezones correctly, but it doesn't change TZ for the program 
> it executes. So xsltproc would still print date in local timezone, 
> unless you reset TZ manually.

You are right, of course.
Updated patch attached.


-- 
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..5f2d052 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 "`TZ=GMT stat -c %y $<`" $(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 "`TZ=GMT stat -c %y $<`" $(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