Reproducible version hash table.
authorDoug Torrance <dtorrance@debian.org>
Tue, 17 May 2022 02:26:51 +0000 (03:26 +0100)
committerDoug Torrance <dtorrance@debian.org>
Tue, 17 May 2022 02:26:51 +0000 (03:26 +0100)
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

index 20d2cf1444791e7749561457ad3337ba9e5c14aa..77bbe9ec8567a103f6af32c1e4e306ebb615a4d6 100644 (file)
@@ -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 `")