Commit ee7ce3a2 authored by Nicholas Breen's avatar Nicholas Breen

Start work for 5.1.2; first attempt to make build reproducible

parent d27182fc
gromacs (5.1.2-1) unstable; urgency=medium
* New upstream release.
* Add new patches/reproducible-builds.patch for... reproducible builds.
This is preliminary work and may not be complete.
-- Nicholas Breen <nbreen@debian.org> Fri, 19 Feb 2016 16:30:09 -0800
gromacs (5.1.1-2) unstable; urgency=medium
* Replace compiler calls to "mpic++" with "mpicxx". MPICH >= 3.2 no
......
......@@ -11,4 +11,4 @@ Index: /usr/share/doc/gromacs/html/index.html
Files: /usr/share/doc/gromacs/html/*.html /usr/share/doc/gromacs/html/user-guide/*.html
Format: PDF
Files: /usr/share/doc/gromacs/html/manual-5.1.1.pdf
Files: /usr/share/doc/gromacs/html/manual-5.1.2.pdf
Description: Reproducible build modifications
By default, GROMACS embeds build time / host / username information. This
patch replaces those with values compatible with reproducible builds
(https://wiki.debian.org/ReproducibleBuilds).
Author: Nicholas Breen
Forwarded: not-needed
Last-Update: 2016-02-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: gromacs-5.1.2/cmake/gmxSetBuildInformation.cmake
===================================================================
--- gromacs-5.1.2.orig/cmake/gmxSetBuildInformation.cmake
+++ gromacs-5.1.2/cmake/gmxSetBuildInformation.cmake
@@ -66,12 +66,13 @@ macro(gmx_set_build_information)
message(STATUS "Setting build user/date/host/cpu information")
if(CMAKE_HOST_UNIX)
- execute_process( COMMAND date OUTPUT_VARIABLE TMP_TIME OUTPUT_STRIP_TRAILING_WHITESPACE)
- execute_process( COMMAND whoami OUTPUT_VARIABLE TMP_USER OUTPUT_STRIP_TRAILING_WHITESPACE)
- execute_process( COMMAND hostname OUTPUT_VARIABLE TMP_HOSTNAME OUTPUT_STRIP_TRAILING_WHITESPACE)
- set(BUILD_USER "${TMP_USER}\@${TMP_HOSTNAME} [CMAKE]" CACHE INTERNAL "Build user")
+ execute_process( COMMAND "dpkg-parsechangelog -S Date" WORKING_DIRECTORY ../.. OUTPUT_VARIABLE TMP_TIME OUTPUT_STRIP_TRAILING_WHITESPACE)
+# execute_process( COMMAND whoami OUTPUT_VARIABLE TMP_USER OUTPUT_STRIP_TRAILING_WHITESPACE)
+# execute_process( COMMAND hostname OUTPUT_VARIABLE TMP_HOSTNAME OUTPUT_STRIP_TRAILING_WHITESPACE)
+# set(BUILD_USER "${TMP_USER}\@${TMP_HOSTNAME} [CMAKE]" CACHE INTERNAL "Build user")
+ set(BUILD_USER "buildd\@debian [CMAKE]" CACHE INTERNAL "Build user")
set(BUILD_TIME "${TMP_TIME}" CACHE INTERNAL "Build date & time")
- execute_process( COMMAND uname -srm OUTPUT_VARIABLE TMP_HOST OUTPUT_STRIP_TRAILING_WHITESPACE)
+ execute_process( COMMAND uname -sm OUTPUT_VARIABLE TMP_HOST OUTPUT_STRIP_TRAILING_WHITESPACE)
set(BUILD_HOST "${TMP_HOST}" CACHE INTERNAL "Build host & architecture")
message(STATUS "Setting build user & time - OK")
else()
......@@ -2,3 +2,4 @@ readme.patch
copyright-file.patch
spelling.patch
empty-man7-directory.patch
reproducible-builds.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment