Hello community, here is the log from the commit of package qt4-qtscript for openSUSE:Factory checked in at 2017-06-21 13:50:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/qt4-qtscript (Old) and /work/SRC/openSUSE:Factory/.qt4-qtscript.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "qt4-qtscript" Wed Jun 21 13:50:46 2017 rev:8 rq:504537 version:0.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/qt4-qtscript/qt4-qtscript.changes 2012-09-11 09:19:16.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.qt4-qtscript.new/qt4-qtscript.changes 2017-06-21 13:50:47.713506733 +0200 @@ -1,0 +2,5 @@ +Mon Jun 12 04:29:49 UTC 2017 - bwiedem...@suse.com + +- Add reproducible.patch to sort input to make build reproducible + +------------------------------------------------------------------- New: ---- reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ qt4-qtscript.spec ++++++ --- /var/tmp/diff_new_pack.DNbT5w/_old 2017-06-21 13:50:49.465259628 +0200 +++ /var/tmp/diff_new_pack.DNbT5w/_new 2017-06-21 13:50:49.473258500 +0200 @@ -30,6 +30,8 @@ Patch1: gcc-44.diff Patch2: qtscript-separate-webkit.patch Patch3: fix-arm-build.diff +# PATCH-FIX-UPSTREAM https://github.com/qt-labs/qtscriptgenerator/pull/1 +Patch4: reproducible.patch BuildRequires: libQtWebKit-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %requires_eq libqt4 @@ -57,6 +59,7 @@ %ifarch %arm %patch3 %endif +%patch4 -p1 %build export QTDIR=/usr ++++++ reproducible.patch ++++++ >From 90dbf041424db29fdf4235878b7e2af2533c7aa1 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <github...@lsmod.de> Date: Mon, 12 Jun 2017 04:26:58 +0000 Subject: [PATCH] sort entries when building packages (e.g. for openSUSE Linux) varying ordering of functions in the output would cause differing binaries. See https://reproducible-builds.org/ for why this matters. --- generator/setupgenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/setupgenerator.cpp b/generator/setupgenerator.cpp index 25a98ea..6f176f8 100644 --- a/generator/setupgenerator.cpp +++ b/generator/setupgenerator.cpp @@ -64,6 +64,7 @@ void SetupGenerator::generate() QList<const AbstractMetaClass*> list = pack.value(); if (list.isEmpty()) continue; + std::sort(list.begin(), list.end()); QString packName = pack.key(); QStringList components = packName.split(".");