Jan Engelhardt
a7b885c17e
OBS-URL: https://build.opensuse.org/package/show/science/librsb?expand=0&rev=19
43 lines
1.6 KiB
Diff
43 lines
1.6 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.3.0.1/configure
|
|
===================================================================
|
|
--- librsb-1.3.0.1.orig/configure
|
|
+++ librsb-1.3.0.1/configure
|
|
@@ -27208,7 +27208,9 @@ printf "%s\n" "#define RSB_WANT_IO_LEVEL
|
|
printf "%s\n" "#define RSB_USER_SET_MEM_HIERARCHY_INFO \"$RSB_USER_SET_MEM_HIERARCHY_INFO\"" >>confdefs.h
|
|
|
|
|
|
+if test "x$memhinfo" = x; then
|
|
printf "%s\n" "#define RSB_DETECTED_MEM_HIERARCHY_INFO \"$RSB_DETECTED_MEM_HIERARCHY_INFO\"" >>confdefs.h
|
|
+fi
|
|
|
|
|
|
printf "%s\n" "#define RSB_CONST_MAX_SUPPORTED_THREADS $RSB_CONST_MAX_SUPPORTED_THREADS" >>confdefs.h
|
|
Index: librsb-1.3.0.1/configure.ac
|
|
===================================================================
|
|
--- librsb-1.3.0.1.orig/configure.ac
|
|
+++ librsb-1.3.0.1/configure.ac
|
|
@@ -627,7 +627,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
|