[Pkg-ofed-commits] [mstflint] 11/13: Add patch to remove date and time from version string to ensure a reproducible build.
Mehdi Dogguy
mehdi at moszumanska.debian.org
Thu Dec 31 19:02:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
mehdi pushed a commit to branch master
in repository mstflint.
commit a05bcdc875d737c744b2c91d74460c71d18cedc7
Author: Mehdi Dogguy <mehdi at debian.org>
Date: Thu Dec 31 01:32:33 2015 +0100
Add patch to remove date and time from version string to ensure a reproducible build.
---
debian/changelog | 2 ++
...-and-time-from-version-string-to-ensure-r.patch | 24 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 27 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 8027a3d..12dbfb6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ mstflint (4.1.0+1.46.gb1cdaf7-1) UNRELEASED; urgency=medium
* New upstream release 4.1.0-1.46.gb1cdaf7:
- Previous patches were integrated upstream.
+ * Add patch to remove date and time from version string to ensure a
+ reproducible build.
* Add a debian/gbp.conf file to automatically filter out upstream's debian/
directory when running "gbp import-orig".
diff --git a/debian/patches/0001-Remove-date-and-time-from-version-string-to-ensure-r.patch b/debian/patches/0001-Remove-date-and-time-from-version-string-to-ensure-r.patch
new file mode 100644
index 0000000..fb73c8e
--- /dev/null
+++ b/debian/patches/0001-Remove-date-and-time-from-version-string-to-ensure-r.patch
@@ -0,0 +1,24 @@
+From: Mehdi Dogguy <mehdi at debian.org>
+Date: Thu, 31 Dec 2015 01:30:47 +0100
+Subject: Remove date and time from version string to ensure reproducible build
+
+---
+ common/tools_version.h | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/common/tools_version.h b/common/tools_version.h
+index e3a242f..6e19515 100644
+--- a/common/tools_version.h
++++ b/common/tools_version.h
+@@ -70,10 +70,8 @@ int get_version_string(char* buf, int buf_size, const char* exe_name, const char
+ len = snprintf(buf, buf_size, "%s %s, ", exe_name, tool_version);
+ }
+ // cut out first and last "$" from the SVN version string:
+- len += snprintf(buf + len, buf_size - len, "%s, built on %s, %s. Git SHA Hash: %s",
++ len += snprintf(buf + len, buf_size - len, "%s. Git SHA Hash: %s",
+ MFT_VERSION_STR,
+- __DATE__,
+- __TIME__,
+ TOOLS_GIT_SHA);
+ return len;
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e0323ee
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Remove-date-and-time-from-version-string-to-ensure-r.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/mstflint.git
More information about the Pkg-ofed-commits
mailing list