Hello community, here is the log from the commit of package docbook-utils for openSUSE:Factory checked in at 2017-01-27 10:44:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/docbook-utils (Old) and /work/SRC/openSUSE:Factory/.docbook-utils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "docbook-utils" Changes: -------- --- /work/SRC/openSUSE:Factory/docbook-utils/docbook-utils.changes 2015-01-22 21:48:32.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.docbook-utils.new/docbook-utils.changes 2017-02-03 17:35:49.620616668 +0100 @@ -1,0 +2,6 @@ +Sat Jan 21 00:10:19 UTC 2017 - bwiedemann@suse.com + +- Add support_source_date_epoch.patch to allow for reproducible builds + of depending packages like freerdp + +------------------------------------------------------------------- New: ---- support_source_date_epoch.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ docbook-utils.spec ++++++ --- /var/tmp/diff_new_pack.kvbolZ/_old 2017-02-03 17:35:50.716461565 +0100 +++ /var/tmp/diff_new_pack.kvbolZ/_new 2017-02-03 17:35:50.716461565 +0100 @@ -1,7 +1,7 @@ # # spec file for package docbook-utils # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,6 +20,7 @@ BuildRequires: automake BuildRequires: docbook-dsssl-stylesheets BuildRequires: openjade +BuildRequires: perl-SGMLS BuildRequires: sgml-skel Summary: Small Wrapper Scripts for Processing DocBook Files License: LGPL-2.1+ @@ -31,6 +32,8 @@ Source: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tar.gz Patch0: docbook-utils-catalog-jw.patch Patch1: docbook-utils-0.6.14-fix-bashisms.patch +# PATCH-FIX-TO-UPSTREAM +Patch2: support_source_date_epoch.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -70,6 +73,7 @@ %setup -q %patch0 -p1 -b .catalog %patch1 -p1 +%patch2 -p1 %build autoreconf -i -f ++++++ support_source_date_epoch.patch ++++++ Author: Reiner Herrmann <reiner@reiner-h.de> Description: Support SOURCE_DATE_EPOCH for timestamps To allow generating documents in a reproducible way, allow overriding the timestamp through the environment. . See also: https://reproducible-builds.org/specs/source-date-epoch/ Bug-Debian: https://bugs.debian.org/800797 Index: docbook-utils-0.6.14/helpers/docbook2man-spec.pl =================================================================== --- docbook-utils-0.6.14.orig/helpers/docbook2man-spec.pl +++ docbook-utils-0.6.14/helpers/docbook2man-spec.pl @@ -57,6 +57,7 @@ Software Foundation, 675 Mass Ave, Cambr use SGMLS; # Use the SGMLS package. use SGMLS::Output; # Use stack-based output. use SGMLS::Refs; +use POSIX qw(strftime setlocale LC_TIME); ######################################################################## # SGMLSPL script produced automatically by the script sgmlspl.pl @@ -279,6 +280,11 @@ sgml('</REFMETA>', sub { _END_BANNER my $manpage_date = `date "+%d %B %Y"`; + if ($ENV{SOURCE_DATE_EPOCH}) { + setlocale(LC_TIME, "C"); + $manpage_date = strftime("%d %B %Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time)); + } + output '.TH "'; @@ -292,7 +298,7 @@ _END_BANNER } output '" "', fold_string($manpage_sect), - '" "', fold_string(`date "+%d %B %Y"`), + '" "', fold_string($manpage_date), '" "', $manpage_misc, '" "', $manpage_manual, "\"\n";