From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yO+PFwPSS2Rt+QAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 16:02:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KMRqFwPSS2S/MAEA9RJhRA (envelope-from ) for ; Fri, 28 Apr 2023 16:02:43 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2C339ADD3 for ; Fri, 28 Apr 2023 16:02:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psOg4-0000vb-Fe; Fri, 28 Apr 2023 10:02:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psOfw-0000sc-9v for guix-patches@gnu.org; Fri, 28 Apr 2023 10:02:20 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psOfi-0001BO-6y for guix-patches@gnu.org; Fri, 28 Apr 2023 10:02:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psOfi-0001rq-2F for guix-patches@gnu.org; Fri, 28 Apr 2023 10:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63044] [PATCH v3] gnu: python-setuptools: Disable date checking in bdist_egg.py References: <87ildm3zf6.fsf@psyduck.jhoto.kublai.com> In-Reply-To: <87ildm3zf6.fsf@psyduck.jhoto.kublai.com> Resent-From: Brian Cully Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Apr 2023 14:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63044 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63044@debbugs.gnu.org Cc: Brian Cully Received: via spool by 63044-submit@debbugs.gnu.org id=B63044.16826904867116 (code B ref 63044); Fri, 28 Apr 2023 14:02:02 +0000 Received: (at 63044) by debbugs.gnu.org; 28 Apr 2023 14:01:26 +0000 Received: from localhost ([127.0.0.1]:34066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psOf8-0001qi-40 for submit@debbugs.gnu.org; Fri, 28 Apr 2023 10:01:26 -0400 Received: from coleridge.kublai.com ([166.84.7.167]:65137 helo=mail.spork.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psOf3-0001qT-3K for 63044@debbugs.gnu.org; Fri, 28 Apr 2023 10:01:24 -0400 Received: from psyduck.jhoto.kublai.com (ool-18b8e9e7.dyn.optonline.net [24.184.233.231]) by mail.spork.org (Postfix) with ESMTPSA id E34779138; Fri, 28 Apr 2023 10:01:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1682690481; bh=ypIk2h/sJU80BcK0fiAiq4obdyjY7Afsb1ttbCCBR8o=; h=From:To:Cc:Subject:Date; b=LEUzon6qo4mKZyw94aUQileWDFHDnq6n4GVTIWLoYWBJIcd0Iv90s/gXpE47w7Os8 IoRfovwcLrntYDRcbR8TplPxptMwjo+u/P0A615CSPaPLtSu/5XELnffMfSEQqSqSN +KmZo1SBOwlq6AEwUtbP+8r8pE5R3NSZpWrDm5i4= Date: Fri, 28 Apr 2023 10:01:12 -0400 Message-Id: <6351ec19a1f494f5ae5d9828530f70f9c1aa2dea.1682690472.git.bjc@spork.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Brian Cully X-ACL-Warn: , Brian Cully via Guix-patches From: Brian Cully via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682690563; a=rsa-sha256; cv=none; b=D8bBqyN8Kb+gzPCA5gCPSovJ/8epNBP2ZzN5q/8WFVGzb20YlVlwo39cxiaqnEFvFNIBcm ywTayN6uKmEeonkt4cw0szKBVqWlxYJXRjgehUUC3PVgEJMCfY09r90gmf13CR6X9RANdd TfL6p165JgeKXeK48up0xXHVuKI9UuN/FI59TLMbdyhEOnDMz/iMQ8udrTD04ePWrabbtB dbcYhbi3sXDuBU3ZaF3WoucCCaCDW/DEfpmnWcy3wD+teg1y3lnNXJJSoyDNunvWIVJ9nU V/I/vh4vO1T/K6wpmVBLHeseG3YHoxUKiOhYpxG5M9JMOmv/vIdPCtn/yk8XzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=LEUzon6q; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682690563; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=dY4uGuUE++ey+5y3l3OX0AtBzdyAfhL6JB4EwIwI9Q4=; b=hST1CaDbn27tYx/n4Z4UQw7jMgHcML2/Id8MBkyt3urhjvh5LluG/yoXwdEQ/vn5ZdKHxB M2AWvhK7IbNUqQwu+z4RBMhJ0+TuBm2i0nibdVWnl2Ons0GP0A6hUSeBbl8F7XMdaq0GQo uNQi5j1r49jlIJD0+evPy+ec27d8Mql4fesQB5dWXYK6HqR22ga231YkVsY5QHDKQBEhv0 7+azfq4sVTzymCfzY2pdEWor6Lydv1x1mKcFn7ggZDmlCxNOuqSGbesM+Oa8eY8GVuPRCX m/FQQlLUYijwHouhaclpmvOFFbhiqq+B0yckexajzu8ct5EGYP1oRlIReljdcA== X-Migadu-Spam-Score: -4.30 X-Spam-Score: -4.30 X-Migadu-Queue-Id: 2C339ADD3 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=LEUzon6q; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: ODffkyt7Lqub This fixes errors when packing Python eggs, where ZipFile fails due to Guix setting file timestamps to 0 epoch seconds, where ZipFile wants all files to date from at least 1980. * gnu/packages/python-build.scm (python-setuptools) [disable-zipfile-date-check]: new phase --- gnu/packages/python-build.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm index 70719c44d4..d9f6f5beff 100644 --- a/gnu/packages/python-build.scm +++ b/gnu/packages/python-build.scm @@ -299,7 +299,21 @@ (define-public python-setuptools (build-system python-build-system) ;; FIXME: Tests require pytest, which itself relies on setuptools. ;; One could bootstrap with an internal untested setuptools. - (arguments (list #:tests? #f)) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + ;; Disable the check which requires files to be dated from at least + ;; 1980. + ;; + ;; This phase is also in the base python package, as it includes its + ;; own setuptools. + (add-after 'unpack 'disable-zipfile-date-check + (lambda _ + (substitute* "setuptools/command/bdist_egg.py" + (("zipfile.ZipFile\\(zip_filename, mode, compression=compression\\)") + "zipfile.ZipFile(zip_filename, mode, compression=compression, strict_timestamps=False)"))))))) (home-page "https://pypi.org/project/setuptools/") (synopsis "Library designed to facilitate packaging Python projects") (description "Setuptools is a fully-featured, stable library designed to -- 2.39.2