From patchwork Fri Jul 1 01:53:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 40446 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6728627BBE9; Fri, 1 Jul 2022 02:54:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C931327BBEA for ; Fri, 1 Jul 2022 02:54:11 +0100 (BST) Received: from localhost ([::1]:52262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o75rG-0004gl-VR for patchwork@mira.cbaines.net; Thu, 30 Jun 2022 21:54:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o75r8-0004ga-KB for guix-patches@gnu.org; Thu, 30 Jun 2022 21:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o75r8-0000Yn-Bt for guix-patches@gnu.org; Thu, 30 Jun 2022 21:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o75r8-00058Y-9z for guix-patches@gnu.org; Thu, 30 Jun 2022 21:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56331] [PATCH] gnu: Graft tzdata to install leap-seconds.list. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Jul 2022 01:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56331 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56331@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165664042219716 (code B ref -1); Fri, 01 Jul 2022 01:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jul 2022 01:53:42 +0000 Received: from localhost ([127.0.0.1]:35968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o75qn-00057w-Mt for submit@debbugs.gnu.org; Thu, 30 Jun 2022 21:53:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:59586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o75qj-00057m-Qb for submit@debbugs.gnu.org; Thu, 30 Jun 2022 21:53:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o75qi-0004Ue-L7 for guix-patches@gnu.org; Thu, 30 Jun 2022 21:53:37 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:40638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o75qb-0000Vf-QH for guix-patches@gnu.org; Thu, 30 Jun 2022 21:53:36 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4LYysH2ctJz9sR3 for ; Fri, 1 Jul 2022 03:53:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1656640403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XlCoHMVzQqpHKBKwj/efGke4a93F+7uQ0Mlw09nONe8=; b=XYG6DKylcLWgVsJLU2AJS/AK2FeKDimdBqy3Yezfz+oiOsTDGR2QZCOhSinuyDGTBFZWf9 cBIBO9BfDD9dX/DdLWVIlweeyuVU3+OWIRfHqliMltCbfhQcyW/zeaKbirBZxRh0O0vImQ BdobI3xkESdigBWpFTNoxdr7CtVnbUrrCtIlRdnw3BNTM4sdpC526R+sNGyhgqa+Q9wILh HqdOcWmT7bWHr5aRAT3EEVCKK22Gb97IVS/SaD/ulUbC6Xb1cooPOxItviKQ3EEl1jWHSx 6YxOHzqZKPMBT6TA8mKEGb/EmOUH/DUS333086IzOdcpixYh4eBrQ3UgyznN5A== Date: Fri, 1 Jul 2022 01:53:14 +0000 Message-Id: <20220701015314.7197-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: 2b20f4f2136aa767006 X-MBO-RS-META: tot8gai9kfkcxcar4kop7gfwd3udmgq3 X-Rspamd-Queue-Id: 4LYysH2ctJz9sR3 Received-SPF: pass client-ip=2001:67c:2050:0:465::201; envelope-from=antero@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * gnu/packages/base.scm (tzdata)[replacement]: New field. (tzdata-leap-seconds-list): New private variable. --- gnu/packages/base.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 4bdc3e7792..b265b429d5 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -1305,6 +1305,7 @@ (define-public tzdata ;; This package should be kept in sync with python-pytz in (gnu packages ;; time). (version "2022a") + (replacement tzdata-leap-seconds-list) (source (origin (method url-fetch) (uri (string-append @@ -1390,6 +1391,19 @@ (define-public tzdata and daylight-saving rules.") (license public-domain))) +(define tzdata-leap-seconds-list + (package + (inherit tzdata) + (arguments + (substitute-keyword-arguments (package-arguments tzdata) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'install 'copy-leap-seconds-list + (lambda _ + (copy-file "leap-seconds.list" + (string-append + #$output "/share/zoneinfo/leap-seconds.list")))))))))) + ;;; A "fixed" version of tzdata, which is used in the test suites of glib and R ;;; and a few other places. We can update this whenever we are able to rebuild ;;; thousands of packages (for example, in a core-updates rebuild). This package