librsb/reproducible.patch

45 lines
1.4 KiB
Diff

Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2018-07-12
When setting an explicit memory hierarchy at configure time,
the autodetected one will never be used, so we do not need to store it.
This allows for building identical librsb packages on different hosts.
See https://reproducible-builds.org/ for why this is good.
---
configure | 2 ++
configure.ac | 2 ++
2 files changed, 4 insertions(+)
Index: librsb-1.2.0.8/configure
===================================================================
--- librsb-1.2.0.8.orig/configure
+++ librsb-1.2.0.8/configure
@@ -23751,9 +23751,11 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+if test "x$memhinfo" = x; then
cat >>confdefs.h <<_ACEOF
#define RSB_DETECTED_MEM_HIERARCHY_INFO "$RSB_DETECTED_MEM_HIERARCHY_INFO"
_ACEOF
+fi
cat >>confdefs.h <<_ACEOF
Index: librsb-1.2.0.8/configure.ac
===================================================================
--- librsb-1.2.0.8.orig/configure.ac
+++ librsb-1.2.0.8/configure.ac
@@ -324,7 +324,9 @@ if test "x${detected_memhinfo}" = x -a "
memhinfo="${FALLBACK_MEM_HIERARCHY_INFO}"
fi
AC_SUBST([RSB_USER_SET_MEM_HIERARCHY_INFO],"${memhinfo}")
+if test "x$memhinfo" = x; then
AC_SUBST([RSB_DETECTED_MEM_HIERARCHY_INFO],"${detected_memhinfo}")
+fi
dnl AC_DEFINE([RSB_USER_SET_MEM_HIERARCHY_INFO],[$memhinfo],[If not null, the library will rely on this for memory hierarchy info.])
dnl
dnl