Hello community, here is the log from the commit of package legion for openSUSE:Factory checked in at 2018-07-14 20:24:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/legion (Old) and /work/SRC/openSUSE:Factory/.legion.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "legion" Sat Jul 14 20:24:40 2018 rev:13 rq:622458 version:18.05.0 Changes: -------- --- /work/SRC/openSUSE:Factory/legion/legion.changes 2018-07-09 13:29:15.654742770 +0200 +++ /work/SRC/openSUSE:Factory/.legion.new/legion.changes 2018-07-14 20:24:48.268121938 +0200 @@ -1,0 +2,6 @@ +Tue Jul 10 18:30:46 UTC 2018 - bwiedem...@suse.com + +- Add reproducible.patch to compile independent of build system CPU + (boo#1100677) + +------------------------------------------------------------------- New: ---- reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ legion.spec ++++++ --- /var/tmp/diff_new_pack.wWtUqT/_old 2018-07-14 20:24:51.368129905 +0200 +++ /var/tmp/diff_new_pack.wWtUqT/_new 2018-07-14 20:24:51.368129905 +0200 @@ -34,6 +34,7 @@ Source0: %{name}-%{version}%{git_ver}.tar.gz Patch0: legion-fix-potential-return-of-random-data.patch Patch1: gcc-8.patch +Patch2: reproducible.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{mpi_implem} @@ -99,6 +100,7 @@ # Workaround GCC8 bug in TW %patch1 -p1 %endif +%patch2 -p1 %build . %{_libdir}/mpi/gcc/%{mpi_implem}/bin/mpivars.sh ++++++ reproducible.patch ++++++ Author: Bernhard M. Wiedemann <bwiedemann suse de> Date: 2018-07-10 drop -march=native compile option to not vary build results depending on OBS build worker CPU (including instructions not understood by older machines) Index: legion-18.02.0.0.57d01885ce18/CMakeLists.txt =================================================================== --- legion-18.02.0.0.57d01885ce18.orig/CMakeLists.txt +++ legion-18.02.0.0.57d01885ce18/CMakeLists.txt @@ -57,47 +57,8 @@ set(BUILD_SHARED_LIBS OFF CACHE BOOL #------------------------------------------------------------------------------# # Architecture #------------------------------------------------------------------------------# -if(BUILD_MARCH AND BUILD_MCPU) - message(FATAL_ERROR "BUILD_MARCH and BUILD_MCPU are incompatible") -endif() - -# Try -march first. On platforms that don't support it, GCC will issue -# a hard error, so we'll know not to use it. -if(BUILD_MARCH) - set(INTERNAL_BUILD_MARCH ${BUILD_MARCH}) -else() - set(INTERNAL_BUILD_MARCH "native") -endif() include(CheckCXXCompilerFlag) -check_cxx_compiler_flag("-march=${INTERNAL_BUILD_MARCH}" COMPILER_SUPPORTS_MARCH) -if(COMPILER_SUPPORTS_MARCH) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${INTERNAL_BUILD_MARCH}") -elseif(BUILD_MARCH) - message(FATAL_ERROR "The flag -march=${INTERNAL_BUILD_MARCH} is not supported by the compiler") -else() - unset(INTERNAL_BUILD_MARCH) -endif() - -# Try -mcpu. We do this second because it is deprecated on x86, but -# GCC won't issue a hard error, so we can't tell if it worked or not. -if (NOT INTERNAL_BUILD_MARCH) - if(BUILD_MCPU) - set(INTERNAL_BUILD_MCPU ${BUILD_MCPU}) - else() - set(INTERNAL_BUILD_MCPU "native") - endif() - - check_cxx_compiler_flag("-mcpu=${INTERNAL_BUILD_MCPU}" COMPILER_SUPPORTS_MCPU) - if(COMPILER_SUPPORTS_MCPU) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=${INTERNAL_BUILD_MCPU}") - elseif(BUILD_MCPU) - message(FATAL_ERROR "The flag -mcpu=${INTERNAL_BUILD_MCPU} is not supported by the compiler") - else() - unset(INTERNAL_BUILD_MCPU) - endif() -endif() - # Add flags for Power architectures check_cxx_compiler_flag("-maltivec -Werror" COMPILER_SUPPORTS_MALTIVEC) if(COMPILER_SUPPORTS_MALTIVEC)