From unknown Fri Jun 13 11:36:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47245: re-defining imported symbol to itself fails Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 18 Mar 2021 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47245 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 47245@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161608628912108 (code B ref -1); Thu, 18 Mar 2021 16:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Mar 2021 16:51:29 +0000 Received: from localhost ([127.0.0.1]:47892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMvrt-00039D-9k for submit@debbugs.gnu.org; Thu, 18 Mar 2021 12:51:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:58744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMvrr-000395-Jt for submit@debbugs.gnu.org; Thu, 18 Mar 2021 12:51:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMvrr-0003gB-19 for bug-guile@gnu.org; Thu, 18 Mar 2021 12:51:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59127) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMvrp-0000TZ-Ey; Thu, 18 Mar 2021 12:51:26 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=39436 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lMvrn-0001cY-3c; Thu, 18 Mar 2021 12:51:25 -0400 From: Jan Nieuwenhuizen Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Thu, 18 Mar 2021 17:51:17 +0100 Message-ID: <87o8fgz9q2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) 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: -3.3 (---) --=-=-= Content-Type: text/plain Hi! Using the attached foo.scm and bar.scm, Guile 2.2 nicely redefines %foo and %baz: --8<---------------cut here---------------start------------->8--- $ guild compile -L . -o foo.go foo.scm wrote `foo.go' 17:48:10 janneke@dundal:~/src/guile/master [env] $ guild compile -L . -o bar.go bar.scm wrote `bar.go' 17:48:12 janneke@dundal:~/src/guile/master [env] $ guile -C . -c '(use-modules (bar))' foo: "foo" baz: "baz" 17:48:16 janneke@dundal:~/src/guile/master [env] $ guile -C . -c '(use-modules (bar))' foo: "foo" baz: "baz" --8<---------------cut here---------------end--------------->8--- Guile-3.0 sets %foo to *unspecified*: --8<---------------cut here---------------start------------->8--- $ meta/build-env meta/guild compile -L . -o foo.go foo.scm wrote `foo.go' 17:50:03 janneke@dundal:~/src/guile/master [env] $ meta/build-env guild compile -L . -o bar.go bar.scm wrote `bar.go' 17:50:10 janneke@dundal:~/src/guile/master [env] $ meta/build-env meta/guile -C . -c '(use-modules (bar))' foo: # baz: "baz" --8<---------------cut here---------------end--------------->8--- Greetings, Janneke --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=foo.scm Content-Transfer-Encoding: base64 KGRlZmluZS1tb2R1bGUgKGZvbykKICAjOmV4cG9ydCAoJWZvbykpCgooZGVmaW5lICVmb28gImZv byIpCg== --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=bar.scm Content-Transfer-Encoding: base64 KGRlZmluZS1tb2R1bGUgKGJhcikKICAjOnVzZS1tb2R1bGUgKGZvbykpCgooZGVmaW5lIChiYXI/ KSAjZikKCihkZWZpbmUgJWZvbyAoaWYgKGJhcj8pICJiYXIiICVmb28pKQoKKGZvcm1hdCAjdCAi Zm9vOiB+c1xuIiAlZm9vKQoKKGRlZmluZSAlYmF6ICJiYXoiKQooZGVmaW5lICViYXogKGlmIChi YXI/KSAiYmFyIiAlYmF6KSkKCihmb3JtYXQgI3QgImJhejogfnNcbiIgJWJheikK --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--