[kernel] r22835 - in dists/trunk/linux-tools/debian: . patches

Ben Hutchings benh at moszumanska.debian.org
Mon Jul 13 19:31:08 UTC 2015


Author: benh
Date: Mon Jul 13 19:31:07 2015
New Revision: 22835

Log:
linux-tools: Set $KBUILD_BUILD_TIMESTAMP from changelog and use it as man page date

Added:
   dists/trunk/linux-tools/debian/patches/tools-perf-man-date.patch
Modified:
   dists/trunk/linux-tools/debian/changelog
   dists/trunk/linux-tools/debian/patches/series
   dists/trunk/linux-tools/debian/rules.real

Modified: dists/trunk/linux-tools/debian/changelog
==============================================================================
--- dists/trunk/linux-tools/debian/changelog	Mon Jul 13 00:55:21 2015	(r22834)
+++ dists/trunk/linux-tools/debian/changelog	Mon Jul 13 19:31:07 2015	(r22835)
@@ -1,3 +1,10 @@
+linux-tools (4.1.2-1~exp2) UNRELEASED; urgency=medium
+
+  * linux-tools: Set $KBUILD_BUILD_TIMESTAMP from changelog and use it as man
+    page date
+
+ -- Ben Hutchings <ben at decadent.org.uk>  Mon, 13 Jul 2015 19:52:17 +0100
+
 linux-tools (4.1.2-1~exp1) experimental; urgency=medium
 
   * New upstream release

Modified: dists/trunk/linux-tools/debian/patches/series
==============================================================================
--- dists/trunk/linux-tools/debian/patches/series	Mon Jul 13 00:55:21 2015	(r22834)
+++ dists/trunk/linux-tools/debian/patches/series	Mon Jul 13 19:31:07 2015	(r22835)
@@ -4,3 +4,4 @@
 usbip-document-tcp-wrappers.patch
 kbuild-fix-recordmcount-dependency.patch
 usbip-include-uninstalled-linux-usbip-h.patch
+tools-perf-man-date.patch

Added: dists/trunk/linux-tools/debian/patches/tools-perf-man-date.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/trunk/linux-tools/debian/patches/tools-perf-man-date.patch	Mon Jul 13 19:31:07 2015	(r22835)
@@ -0,0 +1,32 @@
+From: Ben Hutchings <ben at decadent.org.uk>
+Date: Mon, 13 Jul 2015 20:29:20 +0100
+Subject: perf tools: Use $KBUILD_BUILD_TIMESTAMP as man page date
+    
+This allows man pages to be built reproducibly.
+
+Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
+---
+--- a/tools/perf/Documentation/Makefile
++++ b/tools/perf/Documentation/Makefile
+@@ -120,6 +120,9 @@ endif
+ ifdef DOCBOOK_SUPPRESS_SP
+ XMLTO_EXTRA += -m manpage-suppress-sp.xsl
+ endif
++ifdef KBUILD_BUILD_TIMESTAMP
++ASCIIDOC_EXTRA += -a revdate=$(shell date -u -d '$(KBUILD_BUILD_TIMESTAMP)' +%Y-%m-%d)
++endif
+ 
+ SHELL_PATH ?= $(SHELL)
+ # Shell quote;
+--- a/tools/perf/Documentation/asciidoc.conf
++++ b/tools/perf/Documentation/asciidoc.conf
+@@ -71,6 +71,9 @@ ifdef::backend-docbook[]
+ [header]
+ template::[header-declarations]
+ <refentry>
++<refentryinfo>
++template::[docinfo]
++</refentryinfo>
+ <refmeta>
+ <refentrytitle>{mantitle}</refentrytitle>
+ <manvolnum>{manvolnum}</manvolnum>

Modified: dists/trunk/linux-tools/debian/rules.real
==============================================================================
--- dists/trunk/linux-tools/debian/rules.real	Mon Jul 13 00:55:21 2015	(r22834)
+++ dists/trunk/linux-tools/debian/rules.real	Mon Jul 13 19:31:07 2015	(r22835)
@@ -1,4 +1,5 @@
 export DH_OPTIONS
+export KBUILD_BUILD_TIMESTAMP := $(shell dpkg-parsechangelog | sed -ne 's,^Date: ,,p')
 
 include debian/rules.defs
 



More information about the Kernel-svn-changes mailing list