From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1df6SN-0001Uz-UP for guix-patches@gnu.org; Tue, 08 Aug 2017 11:30:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1df6SL-0006sA-Fr for guix-patches@gnu.org; Tue, 08 Aug 2017 11:30:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43469) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1df6SL-0006rz-C2 for guix-patches@gnu.org; Tue, 08 Aug 2017 11:30:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1df6SL-0008MX-2R for guix-patches@gnu.org; Tue, 08 Aug 2017 11:30:05 -0400 Subject: [bug#28017] [PATCH] Reproducible issue for skalibs Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dez1K-0002hx-Mo for guix-patches@gnu.org; Tue, 08 Aug 2017 03:33:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dez1F-0006ws-ND for guix-patches@gnu.org; Tue, 08 Aug 2017 03:33:42 -0400 Received: from mx2.dlut.edu.cn ([202.118.66.81]:52358 helo=dlut.edu.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dez1F-0006wY-2P for guix-patches@gnu.org; Tue, 08 Aug 2017 03:33:37 -0400 Date: Tue, 8 Aug 2017 15:33:34 +0800 (GMT+08:00) From: "Z. Ren" Content-Type: multipart/mixed; boundary="----=_Part_313554_1115813997.1502177614410" MIME-Version: 1.0 Message-ID: <5b40ba57.16151.15dc0c35a4b.Coremail.zren@dlut.edu.cn> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28017@debbugs.gnu.org ------=_Part_313554_1115813997.1502177614410 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi! While conducting a study inspired by the "reproducible builds" practice [1], we have noticed that the package skalibs could not be built reproducibly. After investigation, we observe that the unreproducibility is caused by "Makefile", in which the order of ALL_SRCS is not sorted. Consequently, the file order of the library files "lib/{libskarnet.so.2.3.10.0, skalibs/libskarnet.a}" may not be deterministic. The attached patch sorts the ALL_SRCS list, so that the file order in the libraries is deterministic. Once applied, skalibs could be built reproducibly. [1]: https://wiki.debian.org/ReproducibleBuilds ------=_Part_313554_1115813997.1502177614410 Content-Type: application/octet-stream; name="0001-reproducible-fix-for-skalibs.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-reproducible-fix-for-skalibs.patch" RnJvbSAyNDkzZWRlODY4MjAyY2M0YzMyYTg5YjYxMmNlYzZmNTdkMDdkN2U0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBaLiBSZW4gPHpyZW5AZGx1dC5lZHUuY24+CkRhdGU6IFR1ZSwg OCBBdWcgMjAxNyAxNDo1MDozNSArMDgwMApTdWJqZWN0OiBbUEFUQ0hdIHJlcHJvZHVjaWJsZSBm aXggZm9yIHNrYWxpYnMKCi0tLQogZ251L3BhY2thZ2VzL3NrYXJuZXQuc2NtIHwgOCArKysrKysr LQogMSBmaWxlIGNoYW5nZWQsIDcgaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAt LWdpdCBhL2dudS9wYWNrYWdlcy9za2FybmV0LnNjbSBiL2dudS9wYWNrYWdlcy9za2FybmV0LnNj bQppbmRleCAzN2UwOWQ4NjQuLjRlNzE4OGE0ZiAxMDA2NDQKLS0tIGEvZ251L3BhY2thZ2VzL3Nr YXJuZXQuc2NtCisrKyBiL2dudS9wYWNrYWdlcy9za2FybmV0LnNjbQpAQCAtMzksNyArMzksMTMg QEAKICAgICAoYnVpbGQtc3lzdGVtIGdudS1idWlsZC1zeXN0ZW0pCiAgICAgKGFyZ3VtZW50cwog ICAgICAnKCM6Y29uZmlndXJlLWZsYWdzICcoIi0tZW5hYmxlLWZvcmNlLWRldnIiKSA7IGRvIG5v dCBhbmFseXplIC9kZXYvcmFuZG9tCi0gICAgICAgIzp0ZXN0cz8gI2YpKSA7IG5vIHRlc3RzIGV4 aXN0CisgICAgICAgIzp0ZXN0cz8gI2YgOyBubyB0ZXN0cyBleGlzdAorICAgICAgICM6cGhhc2Vz CisgICAgICAgKG1vZGlmeS1waGFzZXMgJXN0YW5kYXJkLXBoYXNlcworICAgICAgICAoYWRkLWFm dGVyICd1bnBhY2sgJ3JlcHJvZHVjaWJsZQorICAgICAgICAgKGxhbWJkYSBfCisgICAgICAgICAg KHN1YnN0aXR1dGUqICJNYWtlZmlsZSIKKyAgICAgICAgICAgKCgiXFwkXFwoQUxMX1NSQ1M6JS5j PSUub1xcKSIpICIkKHNvcnQgJChBTExfU1JDUzolLmM9JS5vKSkiKSkpKSkpKQogICAgIChob21l LXBhZ2UgImh0dHA6Ly9za2FybmV0Lm9yZy9zb2Z0d2FyZS9za2FsaWJzLyIpCiAgICAgKHN5bm9w c2lzICJQbGF0Zm9ybSBhYnN0cmFjdGlvbiBsaWJyYXJpZXMgZm9yIHNrYXJuZXQub3JnIHNvZnR3 YXJlIikKICAgICAoZGVzY3JpcHRpb24KLS0gCjIuMTEuMAoK ------=_Part_313554_1115813997.1502177614410--