Hilko Bengen
2012-Jul-09 18:16 UTC
[Libguestfs] Use predictable date in POD-generated manpages
This is a minor issue that may break co-installability of i386/amd64 Debian packages: If the date in otherwise identical manpages differs across architectures, dpkg will refuse to install the two versions of the package together. See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680885 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680886 This patch makes for reproducible outcomes. Cheers, -Hilko
Hilko Bengen
2012-Jul-09 18:16 UTC
[Libguestfs] [PATCH] podwrapper.sh: Use date from ChangeLog
--- podwrapper.sh.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/podwrapper.sh.in b/podwrapper.sh.in index ec750f1..0a84d13 100755 --- a/podwrapper.sh.in +++ b/podwrapper.sh.in @@ -53,6 +53,9 @@ if [ -z "$abs_top_builddir" ]; then exit 1 fi +DATE=`awk '/^[0-9]+-[0-9]+-[0-9]+/ { print $1; exit }' \ + $abs_top_srcdir/ChangeLog` + declare -a inserts declare -a pattern declare -a indent @@ -167,6 +170,7 @@ fi # Now generate the final output format(s). if [ -n "$man_output" ]; then "$POD2MAN" "$POD2_STDERR_OPTION" "$POD2_UTF8_OPTION" \ + --date $DATE \ --section "$section" -c "Virtualization Support" --name "$name" \ --release "$PACKAGE_NAME-$PACKAGE_VERSION" \ < $tmpdir/full.pod > "$man_output".tmp -- 1.7.10.4
Seemingly Similar Threads
- [PATCH 0/3] podwrapper: Generate consistent WARNING sections (RHBZ#1293527).
- [nbdkit PATCH 0/2] fix pod and other errors in recent patches
- [hivex PATCH 1/2] hivexregedit: fix POD markup
- [PATCH 0/5] Split virt-p2v in own repository
- [PATCH] Fix out-of-tree builds of OCaml components