Source: zephyr Version: 3.1.2-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps username hostname X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that zephyr could not be built reproducibly. It embeds the current time, username and hostname into the binary. The attached patch strips this information from the version string. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch new file mode 100644 index 0000000..34f3982 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,17 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Strip non-deterministic information from the version string + +--- a/new_vers.sh ++++ b/new_vers.sh +@@ -2,10 +2,7 @@ + # + top_srcdir=${1:-`pwd`} + +-u=${USER-the_zephyr_builder} +-h=`hostname` +-t=`date` + v=`sh ${top_srcdir}/get_vers.sh ${top_srcdir}` + + umask 002 +-/bin/echo "#define ZEPHYR_VERSION_STRING \"${v} (${t}) ${u}@${h}\"" > h/zephyr_version.h ++/bin/echo "#define ZEPHYR_VERSION_STRING \"${v}\"" > h/zephyr_version.h diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..55077d0 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +reproducible-build.patch
signature.asc
Description: Digital signature