From unknown Tue Jun 24 05:08:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22010 <22010@debbugs.gnu.org> To: bug#22010 <22010@debbugs.gnu.org> Subject: Status: Python 2.7.10 not deterministic Reply-To: bug#22010 <22010@debbugs.gnu.org> Date: Tue, 24 Jun 2025 12:08:19 +0000 retitle 22010 Python 2.7.10 not deterministic reassign 22010 guix submitter 22010 ludo@gnu.org (Ludovic Court=C3=A8s) severity 22010 important thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 25 09:39:13 2015 Received: (at submit) by debbugs.gnu.org; 25 Nov 2015 14:39:13 +0000 Received: from localhost ([127.0.0.1]:52198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1bE0-00078U-1q for submit@debbugs.gnu.org; Wed, 25 Nov 2015 09:39:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41954) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1bDv-00078C-F6 for submit@debbugs.gnu.org; Wed, 25 Nov 2015 09:39:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1bDu-0003go-0k for submit@debbugs.gnu.org; Wed, 25 Nov 2015 09:39:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1bDt-0003gj-Tu for submit@debbugs.gnu.org; Wed, 25 Nov 2015 09:39:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1bDp-0003Lr-OX for bug-guix@gnu.org; Wed, 25 Nov 2015 09:39:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1bDl-0003gG-KA for bug-guix@gnu.org; Wed, 25 Nov 2015 09:39:01 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1bDl-0003gC-GX for bug-guix@gnu.org; Wed, 25 Nov 2015 09:38:57 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:39576 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a1bDk-00040c-SN for bug-guix@gnu.org; Wed, 25 Nov 2015 09:38:57 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: bug-guix@gnu.org Subject: Python 2.7.10 not deterministic X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Frimaire an 224 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 25 Nov 2015 15:38:54 +0100 Message-ID: <871tbef8jl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) As of v0.9.0-238-gd7572b4 (currently =E2=80=98tk-update=E2=80=99), Python 2= .7.10 is not reproducible: --8<---------------cut here---------------start------------->8--- $ diff -r --no-dereference /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-pyth= on-2.7.10 ,py Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= libpython2.7.so.1.0 and ,py/lib/libpython2.7.so.1.0 differ diff -r --no-dereference /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python= -2.7.10/lib/python2.7/config/Makefile ,py/lib/python2.7/config/Makefile 31,32c31,32 < abs_srcdir=3D /tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10 < abs_builddir=3D /tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10 --- > abs_srcdir=3D /gnu/tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10 > abs_builddir=3D /gnu/tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10 146c146 < RUNSHARED=3D LD_LIBRARY_PATH=3D/tmp/nix-build-python-2.7.10.drv-0/P= ython-2.7.10 --- > RUNSHARED=3D LD_LIBRARY_PATH=3D/gnu/tmp/nix-build-python-2.7.10.drv= -0/Python-2.7.10 Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/getopt.pyc and ,py/lib/python2.7/getopt.pyc differ Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/getopt.pyo and ,py/lib/python2.7/getopt.pyo differ Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/lib2to3/Grammar2.7.10.final.0.pickle and ,py/lib/python2.7/lib2to= 3/Grammar2.7.10.final.0.pickle differ Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/lib-dynload/array.so and ,py/lib/python2.7/lib-dynload/array.so d= iffer Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/lib-dynload/gdbm.so and ,py/lib/python2.7/lib-dynload/gdbm.so dif= fer Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/lib-dynload/pyexpat.so and ,py/lib/python2.7/lib-dynload/pyexpat.= so differ Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/py_compile.pyc and ,py/lib/python2.7/py_compile.pyc differ Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/py_compile.pyo and ,py/lib/python2.7/py_compile.pyo differ Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/struct.pyc and ,py/lib/python2.7/struct.pyc differ Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/struct.pyo and ,py/lib/python2.7/struct.pyo differ diff -r --no-dereference /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python= -2.7.10/lib/python2.7/_sysconfigdata.py ,py/lib/python2.7/_sysconfigdata.py 458c458 < 'RUNSHARED': 'LD_LIBRARY_PATH=3D/tmp/nix-build-python-2.7.10.drv-0/Pytho= n-2.7.10', --- > 'RUNSHARED': 'LD_LIBRARY_PATH=3D/gnu/tmp/nix-build-python-2.7.10.drv-0/P= ython-2.7.10', 502c502 < 'TESTPYTHON': 'LD_LIBRARY_PATH=3D/tmp/nix-build-python-2.7.10.drv-0/Pyth= on-2.7.10 ./python -Wd -3 -E -tt', --- > 'TESTPYTHON': 'LD_LIBRARY_PATH=3D/gnu/tmp/nix-build-python-2.7.10.drv-0/= Python-2.7.10 ./python -Wd -3 -E -tt', 526,527c526,527 < 'abs_builddir': '/tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10', < 'abs_srcdir': '/tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10', --- > 'abs_builddir': '/gnu/tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10', > 'abs_srcdir': '/gnu/tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10', Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/_sysconfigdata.pyc and ,py/lib/python2.7/_sysconfigdata.pyc differ Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/lib/= python2.7/_sysconfigdata.pyo and ,py/lib/python2.7/_sysconfigdata.pyo differ --8<---------------cut here---------------end--------------->8--- The pyc/pyo differ by one 32-bit value starting on the 5th byte of the file. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 13:18:09 2015 Received: (at 22010) by debbugs.gnu.org; 13 Dec 2015 18:18:09 +0000 Received: from localhost ([127.0.0.1]:50454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a8BDl-0002BX-6Y for submit@debbugs.gnu.org; Sun, 13 Dec 2015 13:18:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40728) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a8BDj-0002BI-Br for 22010@debbugs.gnu.org; Sun, 13 Dec 2015 13:18:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8BDZ-0005ht-DS for 22010@debbugs.gnu.org; Sun, 13 Dec 2015 13:18:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8BDZ-0005hp-AL for 22010@debbugs.gnu.org; Sun, 13 Dec 2015 13:17:57 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:53192 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a8BDY-00080O-LV for 22010@debbugs.gnu.org; Sun, 13 Dec 2015 13:17:57 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 22010@debbugs.gnu.org Subject: Re: bug#22010: Python 2.7.10 not deterministic References: <871tbef8jl.fsf@gnu.org> Date: Sun, 13 Dec 2015 19:17:54 +0100 In-Reply-To: <871tbef8jl.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 25 Nov 2015 15:38:54 +0100") Message-ID: <87r3iqusa5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22010 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > As of v0.9.0-238-gd7572b4 (currently =E2=80=98tk-update=E2=80=99), Python= 2.7.10 is not > reproducible: > > $ diff -r --no-dereference /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-py= thon-2.7.10 ,py > Binary files /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-python-2.7.10/li= b/libpython2.7.so.1.0 and ,py/lib/libpython2.7.so.1.0 differ > diff -r --no-dereference /gnu/store/q405y94pbnx028mygranaww5pnbqhnq1-pyth= on-2.7.10/lib/python2.7/config/Makefile ,py/lib/python2.7/config/Makefile > 31,32c31,32 > < abs_srcdir=3D /tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10 > < abs_builddir=3D /tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10 > --- >> abs_srcdir=3D /gnu/tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10 >> abs_builddir=3D /gnu/tmp/nix-build-python-2.7.10.drv-0/Python-2.7.10 This problem is sidestepped with commit cb96010, where the daemon always use /tmp/nix-build*.drv-0 inside the build environment. It will disappear when we have upgraded the daemon on the build machines. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 18:58:44 2016 Received: (at 22010) by debbugs.gnu.org; 7 Feb 2016 23:58:44 +0000 Received: from localhost ([127.0.0.1]:37724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSZE3-0007Jc-W4 for submit@debbugs.gnu.org; Sun, 07 Feb 2016 18:58:44 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:34105) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSZE1-0007JU-Sm for 22010@debbugs.gnu.org; Sun, 07 Feb 2016 18:58:42 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4504F20B64; Sun, 7 Feb 2016 18:58:40 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sun, 07 Feb 2016 18:58:40 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=QzrThekKfTH0ldusj7qwrgrs2x0 =; b=oeyz9utriHaShLgd8yAUTv6VJTJhiSY0x2wG75CRaXLqFNlZyxdWc/1H4iF HOkidsYCcHyM2cnbqPfBKHQ2qml7IlStMB7NO5nldX8C0ARsNqs2aEvOEs6AxpLF 2LA80Cybv1/EQpIbm5ll3nMxhGkN767VsLuRqhdEdeOEqtIw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Qz rThekKfTH0ldusj7qwrgrs2x0=; b=ppE9zJRvEc4y53xDBftZyH8QFHb2RUXOJD XJ6cYVcE1zsMynNmxO3h6F118BWbPB3AuMitIkXj8Jon7WtV5p3ru/6anl2Ci0++ tjMl1+qMzedLiay7N7z8Es2j3YbaWWIX7UAasOpyE0+NFZT2/oFNRfpoNjJpq3tS WgBZBHDRQ= X-Sasl-enc: 9QKzePn2kl5OWiMjBvrurM+oUUtTOIdo6U6+zVfssLp9 1454889519 Received: from localhost (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id E484BC0001D for <22010@debbugs.gnu.org>; Sun, 7 Feb 2016 18:58:39 -0500 (EST) Date: Sun, 7 Feb 2016 18:58:39 -0500 From: Leo Famulari To: 22010@debbugs.gnu.org Subject: bytecode timestamps Message-ID: <20160207235839.GA4994@jasmine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22010 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Those differing bytes are the timestamps of the .py sources files that correspond to the compiled .pyc / .pyo files. So, the python-2.7-source-date-epoch.patch is working for software compiled by the patched compiler, but not on python-2.7 itself. It's related to . From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 25 04:47:07 2016 Received: (at control) by debbugs.gnu.org; 25 Mar 2016 08:47:07 +0000 Received: from localhost ([127.0.0.1]:36831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ajNOd-0008TM-2k for submit@debbugs.gnu.org; Fri, 25 Mar 2016 04:47:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ajNOb-0008P0-Oa for control@debbugs.gnu.org; Fri, 25 Mar 2016 04:47:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajNOT-0004KD-L3 for control@debbugs.gnu.org; Fri, 25 Mar 2016 04:47:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajNOT-0004K9-HY for control@debbugs.gnu.org; Fri, 25 Mar 2016 04:46:57 -0400 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:32816 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ajNOS-0007rq-Tk for control@debbugs.gnu.org; Fri, 25 Mar 2016 04:46:57 -0400 Date: Fri, 25 Mar 2016 09:46:55 +0100 Message-Id: <87d1qjt05c.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #22010 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) severity 22010 important From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 05 07:26:06 2019 Received: (at 22010) by debbugs.gnu.org; 5 Feb 2019 12:26:06 +0000 Received: from localhost ([127.0.0.1]:60274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqzni-0008Rt-Gk for submit@debbugs.gnu.org; Tue, 05 Feb 2019 07:26:06 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqzng-0008Rj-FZ for 22010@debbugs.gnu.org; Tue, 05 Feb 2019 07:26:06 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549369560; cv=none; d=zoho.com; s=zohoarc; b=eG0R2VvwGug2vhfuIp6SCmTbz64lwuwDgt1E9OZE/5mQMz7rIF0mUUcrGZw8qLOeoj6qLqpAZEmyArRf8JxBqtH0kWo82JdxRDJY+sOViBcJPC5jJlP0n/UEF2gavHvw3KZVdZUTz4gT8aPfeXCQfVKRdpmS0G33Q/Dqpc/ui7A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549369560; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=Zw0xt3FJ5mtpj3cjdx0WPHlU5agvCPwBo2iWWGbzx5w=; b=VK6oRcjZpEH4o6XDh/7xS0FrIDpvjeKnsBzElM9TuaWjQ8PxIbLcOkmcntw/iM14pLGAVsei+jU3AqyrSWz7KMWCxE/fZZEZTGUbE3TGy1f6MXAAMmBXjEoUG628+VQq9K2gqZi0bmYvnSYL47rgNXsWJpsQNOrN4c6OwkKA4cQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549369560; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=2475; bh=Zw0xt3FJ5mtpj3cjdx0WPHlU5agvCPwBo2iWWGbzx5w=; b=HB/uNRn85shko6MZl3QcBgewJXkqP94XBcgDD9nggmlKFaAG5SZYvBJ4d9focOWM osQMwDhqfqPdf2f1qthIApSloDW0PtZfiKxIU5llAadFQPRFyAaMEMTEoKWoR+SMoX1 mEycuiD6cHQD+fQgPPj+CxjxxjEMBOhkDknqP2R0= Received: from localhost (141.80.247.165 [141.80.247.165]) by mx.zohomail.com with SMTPS id 1549369558483465.4655404506409; Tue, 5 Feb 2019 04:25:58 -0800 (PST) From: Ricardo Wurmus To: Leo Famulari Subject: Re: bug#22010: bytecode timestamps References: <871tbef8jl.fsf@gnu.org> <20160207235839.GA4994@jasmine> Date: Tue, 05 Feb 2019 13:25:54 +0100 In-Reply-To: <20160207235839.GA4994@jasmine> (Leo Famulari's message of "Sun, 7 Feb 2016 18:58:39 -0500") Message-ID: <87sgx2h165.fsf@elephly.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22010 Cc: 22010@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Leo Famulari writes: > Those differing bytes are the timestamps of the .py sources files that > correspond to the compiled .pyc / .pyo files. So, the > python-2.7-source-date-epoch.patch is working for software compiled by > the patched compiler, but not on python-2.7 itself. > > It's related to . It looks easy to fix this: --8<---------------cut here---------------start------------->8--- diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 1c4ea720f..34c01bd50 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -276,6 +276,38 @@ data types.") (search-patches "python2-CVE-2018-14647.patch" "python2-CVE-2018-1000802.patch"))= ))))) =20 +(define-public python-2-rekado + (package + (inherit python-2) + (name "python2-rekado") + (arguments + `(#:tests? #f ; XXX + ,@(substitute-keyword-arguments (package-arguments python-2) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'remove-tests 'rebuild-bytecode + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; Disable hash randomization to ensure the generated= .pycs + ;; are reproducible. + (setenv "PYTHONHASHSEED" "0") + (for-each + (lambda (opt) + (format #t "Compiling with optimization level: ~a\= n" + (if (null? opt) "none" (car opt))) + (for-each (lambda (file) + (apply invoke + `(,(string-append out "/bin/pyt= hon") + ,@opt + "-m" "compileall" + "-f" ; force rebuild + ;; Don't build lib2to3, becau= se it contains Python 3 code. + "-x" "lib2to3/.*" + ,file))) + (find-files out "\\.py$"))) + (list '() '("-O") '("-OO"))) + #t)))))))))) + (define-public python2-called-python ;; Both 2.x and 3.x used to be called "python". In commit ;; a7714d42de2c3082f3609d1e63c83d703fb39cf9 (March 2018), we renamed the --8<---------------cut here---------------end--------------->8--- This Python variant builds reproducibly (I disabled the tests for speed and did this in a separate package to avoid grafting shenanigans and rebuilds). The phase is virtually the same as the phase of the same name in the Python 3 package; only difference is the use of =E2=80=9C/bin/python=E2=80=9D instead of =E2=80=9C/bin/python3=E2=80=9D. I wonder if we can simplify this with (setenv "PYTHONHASHSEED" "0") before any pyc files are built, but I expect that to be problematic. ~~ Ricardo From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 05 15:45:36 2019 Received: (at 22010) by debbugs.gnu.org; 5 Feb 2019 20:45:36 +0000 Received: from localhost ([127.0.0.1]:33802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gr7b6-0001gR-0L for submit@debbugs.gnu.org; Tue, 05 Feb 2019 15:45:36 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gr7b4-0001gI-9d for 22010@debbugs.gnu.org; Tue, 05 Feb 2019 15:45:34 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549398604; cv=none; d=zoho.com; s=zohoarc; b=GTOFhBL0g7jJ4L+++fHdwMDSoBW6Rd4VRezoPedewaxraAApEqhtKXmit2KZRJRSxZUr3Lz7BmYt492qzD/kfWg1vkyUdqaRL5H13uz1kzslOz2SG9/qbHR4Tl2yCTwzXjXN7G+YUYfcM6NdGjjFR8VmZ7phidvib9gsfBcNrEc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549398604; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=4dr7vfKZw2O6d8IM5B0IHs51BCvPC64lG0buNVTuis4=; b=Gaha0qZSapViyrVbg+qvsZkyXecPbxAl3E77ffXjr87HojAVW/HERtrICpnh7Gftf/P0+WKhGfwcp/fxUC4XYwDUmp7BIse5MX7S3buVpaIO4+i1eWH6BzCeEB0megiPHTQNLwFqiR5PeUOft4CT06l+e+tcI1dnsv+F5GtI+sQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549398604; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=311; bh=4dr7vfKZw2O6d8IM5B0IHs51BCvPC64lG0buNVTuis4=; b=Q2pTi37CzJ6jtFCIGSY3JleisUe/xLd1pEXdZv96LW7E6PeABg+4ygotyPf7XnC1 T5enmGC+xhZkJpWicANWf3ngPKkuZ+TcK6sigHlcfSXehqLRASJHpCegFYaOELpm672 T1fXVTtMUFdk8ZXbjdE70LfBZI68PGHusY/uPA0Q= Received: from localhost (p3E9E957E.dip0.t-ipconnect.de [62.158.149.126]) by mx.zohomail.com with SMTPS id 1549398603330568.4426829985218; Tue, 5 Feb 2019 12:30:03 -0800 (PST) References: <871tbef8jl.fsf@gnu.org> <20160207235839.GA4994@jasmine> <87sgx2h165.fsf@elephly.net> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: Leo Famulari Subject: Re: bug#22010: bytecode timestamps In-reply-to: <87sgx2h165.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 05 Feb 2019 21:29:59 +0100 Message-ID: <87h8digerc.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22010 Cc: 22010@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ricardo Wurmus writes: > I wonder if we can simplify this with (setenv "PYTHONHASHSEED" "0") > before any pyc files are built, but I expect that to be problematic. Doing this has no discernable effect. I=E2=80=99ll push the change to the core-updates branch. --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 08 04:45:44 2019 Received: (at 22010-done) by debbugs.gnu.org; 8 Feb 2019 09:45:44 +0000 Received: from localhost ([127.0.0.1]:38908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gs2jA-0006RP-A8 for submit@debbugs.gnu.org; Fri, 08 Feb 2019 04:45:44 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gs2j8-0006RG-HP for 22010-done@debbugs.gnu.org; Fri, 08 Feb 2019 04:45:43 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549619125; cv=none; d=zoho.com; s=zohoarc; b=BXa/KfmF8JJtR8gpnnC7YQ+caNgK35s5l8ZoDMgtb+Vwcc0dtm7gUpuHaiyR8kVCUJJQHZUYFj8P34DnqIzDQGDDv6SH29NTtKmsOMV60BpuQIJMxHVRkgQTO8Icbm4XQYvDaBJKQ2/kSIdSr09EelFTsaAcLU0fmXyW80ZU0jA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549619125; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=uOYSo+VK4fT2j5Y0dRvkxZ92JvqfNu27M9oXBkttezM=; b=iiVCeGbTJ/7l+tSg8IYKAIez7exjCuvsLMeS9J2nLj4LlV/mXqYLTsisykorAr9/TrQe3IivYki5YioUaM7+bBOF9OofgaJ6Y/jEiqAV6RZ4RTZ6D+54ugfaM4Sm6Nj4YB7Cqy2a4SvnKi4QS4bHCTWM2/7Xb5YnIVDxdfM2vU0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549619125; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=190; bh=uOYSo+VK4fT2j5Y0dRvkxZ92JvqfNu27M9oXBkttezM=; b=EJeVNKnsFUwAZryuU2qOHLbByiYrhIXfEVM+eXzgD0JnuNLJuYYTmI2ZrP3360BB X7GfZ6Q85hx5DcNZNp6klfaxCG4Ez7kakOGXLtuN8yan7UjCs7f8MkEGLg+gZCy0yY4 GKIntorfrdxOhBuVuZzEoVv8axfWw2XrPcJeThKc= Received: from localhost (p3E9E9147.dip0.t-ipconnect.de [62.158.145.71]) by mx.zohomail.com with SMTPS id 1549619123795334.7697138225734; Fri, 8 Feb 2019 01:45:23 -0800 (PST) References: <871tbef8jl.fsf@gnu.org> <20160207235839.GA4994@jasmine> <87sgx2h165.fsf@elephly.net> <87h8digerc.fsf@elephly.net> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: Leo Famulari Subject: Re: bug#22010: bytecode timestamps In-reply-to: <87h8digerc.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 08 Feb 2019 10:45:19 +0100 Message-ID: <87imxumx5c.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22010-done Cc: 22010-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ricardo Wurmus writes: > I=E2=80=99ll push the change to the core-updates branch. This is now on core-updates. Python 2 now builds reproducibly. -- Ricardo From unknown Tue Jun 24 05:08:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 08 Mar 2019 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator