From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhpXu-0001S0-7f for guix-patches@gnu.org; Wed, 16 Aug 2017 00:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhpXq-00088X-6q for guix-patches@gnu.org; Wed, 16 Aug 2017 00:03:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhpXp-00088K-W0 for guix-patches@gnu.org; Wed, 16 Aug 2017 00:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dhpXp-0004kV-LM for guix-patches@gnu.org; Wed, 16 Aug 2017 00:03:01 -0400 Subject: [bug#28016] [PATCH] Reproducible issue for libjpeg-turbo References: <2b044d63.16150.15dc0c299a2.Coremail.zren@dlut.edu.cn> In-Reply-To: <2b044d63.16150.15dc0c299a2.Coremail.zren@dlut.edu.cn> Resent-Message-ID: Date: Wed, 16 Aug 2017 12:02:05 +0800 (GMT+08:00) From: "Z. Ren" Content-Type: multipart/mixed; boundary="----=_Part_337594_2101304195.1502856125324" MIME-Version: 1.0 Message-ID: <2578d464.17dbf.15de9349b8f.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: 28016@debbugs.gnu.org ------=_Part_337594_2101304195.1502856125324 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, There was a typo (redundant brackets around SOURCE_DATE_EPOCH) in the previous submitted patch, sorry that I'm not very familiar with the Guix system. I attach the modified patch. Following the suggestion of Leo (https://lists.gnu.org/archive/html/help-guix/2017-08/msg00053.html Thanks for the suggestion), I investigate the source code of libjpeg-turbo. It appears that the upstream package supports the argument --with-build-date. Maybe this is more suitable for fixing the unreproducible problem? Based on this idea, I tried setting configure-flags with SOURCE_DATE_EPOCH. Unfortunately, the flag is not assigned properly with the following snippet: #:configure-flags (list (string-append "--with-build-date=" (date->string (time-utc->date (make-time time-utc 0 (string->number (getenv "SOURCE_DATE_EPOCH")))) "'~Y~m~d'"))) Is it because the environmental variable SOURCE_DATE_EPOCH is not yet set at the time of #:configure-flags? I read the recipe of other packages, maybe "replace 'configure" is the right solution? Again, sorry that I'm not very familiar with Guix, and haven't come up with the patch yet. However, it would be appreciated if it could be confirmed whether the unreproducibility is caused by the `date` command in the onfigure script. Best regards, Ren ------=_Part_337594_2101304195.1502856125324 Content-Type: application/octet-stream; name="0001-reproducible.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-reproducible.patch" RnJvbSA1MzBiYzdiNDJjOTFmZTE3YTMwYTVlNDAwN2UzODE1NDFhMDk1YTNlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBaLiBSZW4gPHpyZW5AZGx1dC5lZHUuY24+CkRhdGU6IFdlZCwg MTYgQXVnIDIwMTcgMTA6MzU6NDAgKzA4MDAKU3ViamVjdDogW1BBVENIXSByZXByb2R1Y2libGUg Zml4IGZvciBsaWJqcGVnLXR1cmJvCgotLS0KIGdudS9wYWNrYWdlcy9pbWFnZS5zY20gfCAxNiAr KysrKysrKysrKysrKystCiAxIGZpbGUgY2hhbmdlZCwgMTUgaW5zZXJ0aW9ucygrKSwgMSBkZWxl dGlvbigtKQoKZGlmZiAtLWdpdCBhL2dudS9wYWNrYWdlcy9pbWFnZS5zY20gYi9nbnUvcGFja2Fn ZXMvaW1hZ2Uuc2NtCmluZGV4IDk1YTRjOTFiMS4uZTRjMmFkNjIwIDEwMDY0NAotLS0gYS9nbnUv cGFja2FnZXMvaW1hZ2Uuc2NtCisrKyBiL2dudS9wYWNrYWdlcy9pbWFnZS5zY20KQEAgLTExMjAs NyArMTEyMCwyMSBAQCBQTkcsIGFuZCBwZXJmb3JtcyBQTkcgaW50ZWdyaXR5IGNoZWNrcyBhbmQg Y29ycmVjdGlvbnMuIikKICAgICAobmF0aXZlLWlucHV0cwogICAgICBgKCgibmFzbSIgLG5hc20p KSkKICAgICAoYXJndW1lbnRzCi0gICAgICcoIzp0ZXN0LXRhcmdldCAidGVzdCIpKQorICAgICAn KCM6dGVzdC10YXJnZXQgInRlc3QiCisgICAgICAgIzptb2R1bGVzICgoc3JmaSBzcmZpLTE5KQor ICAgICAgICAgICAgICAgICAgKGd1aXggYnVpbGQgdXRpbHMpCisgICAgICAgICAgICAgICAgICAo Z3VpeCBidWlsZCBnbnUtYnVpbGQtc3lzdGVtKSkKKyAgICAgICAjOnBoYXNlcworICAgICAgICht b2RpZnktcGhhc2VzICVzdGFuZGFyZC1waGFzZXMKKyAgICAgICAgKGFkZC1iZWZvcmUgJ2NvbmZp Z3VyZSAncmVwcm9kdWNpYmxlCisgICAgICAgICAobGFtYmRhIF8KKyAgICAgICAgICAobGV0ICgo c291cmNlLWRhdGUtZXBvY2gKKyAgICAgICAgICAgKHRpbWUtdXRjLT5kYXRlCisgICAgICAgICAg ICAobWFrZS10aW1lIHRpbWUtdXRjIDAgKHN0cmluZy0+bnVtYmVyCisgICAgICAgICAgICAgKGdl dGVudiAiU09VUkNFX0RBVEVfRVBPQ0giKSkpKSkpCisgICAgICAgICAgICAgIChzdWJzdGl0dXRl KiAiY29uZmlndXJlIgorICAgICAgICAgICAgICAgKCgiYGRhdGUgLipgIikgKGRhdGUtPnN0cmlu ZyBzb3VyY2UtZGF0ZS1lcG9jaCAiJ35Zfm1+ZCciKSkKKyAgICAgICAgICAgICAgKSkpKSkpKQog ICAgIChob21lLXBhZ2UgImh0dHA6Ly93d3cubGlianBlZy10dXJiby5vcmcvIikKICAgICAoc3lu b3BzaXMgIlNJTUQtYWNjZWxlcmF0ZWQgSlBFRyBpbWFnZSBoYW5kbGluZyBsaWJyYXJ5IikKICAg ICAoZGVzY3JpcHRpb24gImxpYmpwZWctdHVyYm8gaXMgYSBKUEVHIGltYWdlIGNvZGVjIHRoYXQg YWNjZWxlcmF0ZXMgYmFzZWxpbmUKLS0gCjIuMTMuMgoK ------=_Part_337594_2101304195.1502856125324--