Hello community, here is the log from the commit of package itpp for openSUSE:Factory checked in at 2017-11-09 14:00:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/itpp (Old) and /work/SRC/openSUSE:Factory/.itpp.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "itpp" Thu Nov 9 14:00:16 2017 rev:2 rq:538019 version:4.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/itpp/itpp.changes 2017-08-24 18:56:54.575312605 +0200 +++ /work/SRC/openSUSE:Factory/.itpp.new/itpp.changes 2017-11-09 14:00:19.265598999 +0100 @@ -1,0 +2,6 @@ +Thu Sep 14 19:14:11 UTC 2017 - bwiedem...@suse.com + +- Add itpp-reproducible.patch to make build reproducible (boo#1047218) +- Drop latex .log file from doc dir for the same reason + +------------------------------------------------------------------- New: ---- itpp-reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ itpp.spec ++++++ --- /var/tmp/diff_new_pack.2YRLdp/_old 2017-11-09 14:00:21.021535024 +0100 +++ /var/tmp/diff_new_pack.2YRLdp/_new 2017-11-09 14:00:21.025534878 +0100 @@ -32,6 +32,8 @@ Patch2: itpp-4.3.1_memmove.patch # PATCH-FIX-UPSTREAM itpp-respect_dlib_suffix.diff mar...@gmx.de -- http://sourceforge.net/p/itpp/bugs/236/ Patch3: itpp-respect_dlib_suffix.diff +# PATCH-FIX-UPSTREAM itpp-reproducible.patch bmwiedemann -- https://sourceforge.net/p/itpp/git/merge-requests/3/ +Patch4: itpp-reproducible.patch BuildRequires: blas-devel BuildRequires: cmake BuildRequires: doxygen @@ -107,6 +109,7 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build %cmake \ @@ -124,6 +127,7 @@ # move docs to /usr/share/doc/packages mkdir -p %{buildroot}%{_docdir} mv -t %{buildroot}%{_docdir}/ %{buildroot}%{_datadir}/doc/%{name} +rm %{buildroot}%{_docdir}/%{name}/html/*.log # find dupes in docs %fdupes -s %{buildroot}%{_docdir} ++++++ itpp-reproducible.patch ++++++ https://sourceforge.net/p/itpp/git/merge-requests/3/ Author: Bernhard M. Wiedemann <bwiedem...@suse.de> Date: Wed Sep 13 18:33:01 2017 +0200 use cmake TIMESTAMP to make build more platform-independent and to allow to override build date to enable reproducible builds See https://reproducible-builds.org/ for why this is good. Also use UTC to be independent of timezones. Index: itpp-4.3.1/CMakeLists.txt =================================================================== --- itpp-4.3.1.orig/CMakeLists.txt +++ itpp-4.3.1/CMakeLists.txt @@ -25,7 +25,7 @@ # # ------------------------------------------------------------------------- -cmake_minimum_required ( VERSION 2.8.6 ) +cmake_minimum_required ( VERSION 2.8.11 ) set ( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules/ ${CMAKE_MODULE_PATH} ) @@ -154,12 +154,7 @@ set (PACKAGE_VERSION "4.3.1") set (PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") set (PACKAGE_TARNAME ${PACKAGE}) set (PACKAGE_URL "") -if (UNIX) - EXECUTE_PROCESS(COMMAND "date" "+%d/%m/%Y" OUTPUT_VARIABLE PACKAGE_DATE) - string(REGEX REPLACE "(..)/(..)/..(..).*" "\\1/\\2/\\3" PACKAGE_DATE "${PACKAGE_DATE}") -else() - set(PACKAGE_DATE "") -endif() +string(TIMESTAMP PACKAGE_DATE "%Y-%m-%d" UTC) if (WIN32 AND NOT MINGW) #TODO: remove this from future versions