File reproducible.patch of Package qt4-qtscript

From 90dbf041424db29fdf4235878b7e2af2533c7aa1 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <githubbmw@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(".");