From 005bb4a5d7fbf7ecc4bae8e9b4b77ec8124f45ac Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 1 May 2022 19:10:02 +0100 Subject: [PATCH] Reproducible version hash table. Forwarded: not-needed Last-Update: 2021-09-23 - For version#"configure arguments", we replace the build directory with "/build/path" in all the instances of the -fdebug-prefix-map flag. - For version#"compile-node-name" and version#"operating system release", we use dummy values. Gbp-Pq: Name reproducible-version.patch --- M2/configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/M2/configure.ac b/M2/configure.ac index 5c28b46..f760edc 100644 --- a/M2/configure.ac +++ b/M2/configure.ac @@ -6,7 +6,7 @@ AC_CONFIG_FILES(m4_include(config/files)) AC_SUBST(CONFIGURED_FILES,"$ac_config_files") AC_SUBST(CONFIG_ARGS,"$ac_configure_args") echo "'$0' $ac_configure_args" > config.args -C_CONFIG_ARGS=` echo "$ac_configure_args" | sed -e 's=\\\\=\\\\\\\\=g' -e 's=\\"=\\\\"=g' ` +C_CONFIG_ARGS=`echo "$ac_configure_args" | sed -e 's=\\\\=\\\\\\\\=g' -e 's=\\"=\\\\"=g' -e "s=$CURDIR=/build/path=g"` AC_DEFINE_UNQUOTED(CONFIG_ARGS,"$C_CONFIG_ARGS",arguments used for configure) AC_SUBST(CONFIG_CMD,"'$0' $ac_configure_args") @@ -73,13 +73,13 @@ dnl hi 2>/dev/null dnl $ eval $A dnl hi -AC_SUBST(NODENAME,"`uname -n`") +AC_SUBST(NODENAME,"m2-compile-node") AC_DEFINE_UNQUOTED(NODENAME,"$NODENAME",hostname used for compilation) AC_SUBST(ISSUE) # no initial value AC_ARG_WITH(issue, AS_HELP_STRING([--with-issue=...,specify the OS issue (e.g., Ubuntu-7.10)]),ISSUE=$withval) AC_SUBST(OS,"` uname -s | sed s=/=-=g `") -AC_SUBST(REL,"` uname -r | sed -e s=/=-=g -e 's= =+=' -e 's=[()]==g' `") +AC_SUBST(REL,"m2-os-release") AC_SUBST(UNAME_INFO_COMMAND," uname -pmso 2>/dev/null || uname -pms ") AC_SUBST(UNAME_INFO,"` eval $UNAME_INFO_COMMAND `") -- 2.30.2