From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Newsgroups: gmane.lisp.guile.devel Subject: [PATCH 0/2] Silence run-time warnings for SRFI-3[45] Date: Mon, 25 Nov 2019 17:45:53 +0100 Message-ID: <20191125164555.15124-1-ludo@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="215349"; mail-complaints-to="usenet@blaine.gmane.org" Cc: wingo@igalia.com, =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Nov 25 17:46:38 2019 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZHVV-000tqd-8b for guile-devel@m.gmane.org; Mon, 25 Nov 2019 17:46:37 +0100 Original-Received: from localhost ([::1]:46472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZHVT-00065M-Pe for guile-devel@m.gmane.org; Mon, 25 Nov 2019 11:46:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49654) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZHV8-00064y-Qw for guile-devel@gnu.org; Mon, 25 Nov 2019 11:46:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iZHV6-0001JW-Lr; Mon, 25 Nov 2019 11:46:12 -0500 Original-Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=49658 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iZHV6-0008Gm-6p; Mon, 25 Nov 2019 11:46:12 -0500 X-Mailer: git-send-email 2.24.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:20164 Archived-At: Hi! As it stands, Guix on Guile 2.9.5 produces lots of warnings: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build libreoffice -nd WARNING: (guix build utils): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix utils): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix serialization): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix base32): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix store): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix derivations): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix gexp): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix packages): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix modules): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix profiles): imported module (srfi srfi-35) overrides core binding `&error' WARNING: (guix build gremlin): imported module (srfi srfi-35) overrides core binding `&error' /gnu/store/lyyllcqa1hq7k3zrv03m2h3xz4a6qawx-libreoffice-6.3.3.2.drv --8<---------------cut here---------------end--------------->8--- These patches address that. The first one restores #:replace for srfi-34 (as was the case in Guile 2.x), and the second one adds #:replace for srfi-35. Let me know what you think! Overall, I think we should be cautious with run-time warnings because they’re hard to turn off and there’s nothing the user (as in: the Guix user) can do about it. Ludo’. Ludovic Courtès (2): srfi-34: Replace the 'raise' core binding. srfi-35: Replace '&error'. module/srfi/srfi-34.scm | 10 +++++++--- module/srfi/srfi-35.scm | 6 ++++-- 2 files changed, 11 insertions(+), 5 deletions(-) -- 2.24.0