From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.bugs Subject: bug#47084: Guile 3.0 - The module-use! 'target' functionality is broken Date: Fri, 12 Mar 2021 00:17:38 -0300 Message-ID: <20210312001738.32a82355@aicha> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/q=6osq4q65TRlAZFGTm+8zC"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9134"; mail-complaints-to="usenet@ciao.gmane.io" To: 47084@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Mar 12 04:18:12 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKYJY-0002HI-5R for guile-bugs@m.gmane-mx.org; Fri, 12 Mar 2021 04:18:12 +0100 Original-Received: from localhost ([::1]:58222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKYJX-0006eK-8s for guile-bugs@m.gmane-mx.org; Thu, 11 Mar 2021 22:18:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKYJO-0006Q7-3L for bug-guile@gnu.org; Thu, 11 Mar 2021 22:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKYJN-00054m-S5 for bug-guile@gnu.org; Thu, 11 Mar 2021 22:18:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKYJN-00073M-Mk for bug-guile@gnu.org; Thu, 11 Mar 2021 22:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Pirotte Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 12 Mar 2021 03:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47084 X-GNU-PR-Package: guile X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.161551907527099 (code B ref -1); Fri, 12 Mar 2021 03:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Mar 2021 03:17:55 +0000 Original-Received: from localhost ([127.0.0.1]:55754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKYJH-000730-GM for submit@debbugs.gnu.org; Thu, 11 Mar 2021 22:17:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKYJF-00072t-Aj for submit@debbugs.gnu.org; Thu, 11 Mar 2021 22:17:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKYJF-000654-5h for bug-guile@gnu.org; Thu, 11 Mar 2021 22:17:53 -0500 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:50164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKYJC-0004xf-I4 for bug-guile@gnu.org; Thu, 11 Mar 2021 22:17:52 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by maximusconfessor.all2all.org (Postfix) with ESMTP id AF9BB1BE009D for ; Fri, 12 Mar 2021 04:17:46 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([127.0.0.1]) by localhost (maximusconfessor.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FWtGKFOa3gYB for ; Fri, 12 Mar 2021 04:17:46 +0100 (CET) Original-Received: from aicha (unknown [179.210.52.91]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 1A1101BE009C for ; Fri, 12 Mar 2021 04:17:45 +0100 (CET) X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=79.99.200.102; envelope-from=david@altosw.be; helo=maximusconfessor.all2all.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9991 Archived-At: --Sig_/q=6osq4q65TRlAZFGTm+8zC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, Guile 3.0 The module-use! 'target' functionality is broken The code of module-use! itself didn't change, and call(s) to the procedure work(s) fine, but the functionality it is supposed to provide is broken. To reproduce, save the following minimalist module somewhere: ;; start here (define-module (a) #:use-module (srfi srfi-1)) (eval-when (expand load eval) (module-use! (module-public-interface (current-module)) (resolve-interface '(srfi srfi-1)))) ;; end here ;; then, fire a 3.0 repl: (add-to-load-path "/your/path") ,use (a) map [ below, my attempts using Guile 3.0.4.3-e076a5, then Guile [ 2.2.7.2-a5875-dirty to compare. Fwiw: (a) G-Golf extensively relies on the module-use! functionality 'in general', and in particular, on its 'dynamic' implementation - that is, the public interface of a module that has been 'module-used' may evolve in time (at the 'essence' of any GI dynamic binding); (b) just like for the minimalist module (a) above, but it will do so 'dynamically', G-Golf needs that the public interface of a module that has been 'module-used' may re-export-and-replace a guile core procedure (generally promoted as a generic function, with the core proc as its default method). Thanks, David GNU Guile 3.0.4.3-e076a5 ... scheme@(guile-user)> (add-to-load-path "/home/david/alto/projects/g-golf/3.= 0") scheme@(guile-user)> ,use (a) ;;; compiling /home/david/alto/projects/g-golf/3.0/a.scm ;;; compiled /home/david/.cache/guile/ccache/3.0-LE-8-4.3/usr/alto/projects= /g-golf/3.0/a.scm.go scheme@(guile-user)> map WARNING: (guile-user): imported module (a) overrides core binding `map' WARNING: (guile-user): `map' imported from both (guile) and (a) WARNING: (guile-user): imported module (a) overrides core binding `map' WARNING: (guile-user): `map' imported from both (guile) and (a) ;;; : warning: possibly unbound variable `map' WARNING: (guile-user): imported module (a) overrides core binding `map' WARNING: (guile-user): `map' imported from both (guile) and (a) WARNING: (guile-user): imported module (a) overrides core binding `map' WARNING: (guile-user): `map' imported from both (guile) and (a) ice-9/boot-9.scm:1670:16: In procedure raise-exception: Unbound variable: map Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> GNU Guile 2.2.7.2-a5875-dirty ... scheme@(guile-user)> (add-to-load-path "/home/david/alto/projects/g-golf/3.= 0") scheme@(guile-user)> ,use (a) ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/david/alto/projects/g-golf/3.0/a.scm ;;; compiled /home/david/.cache/guile/ccache/2.2-LE-8-3.A/usr/alto/projects= /g-golf/3.0/a.scm.go scheme@(guile-user)> map $2 =3D # --Sig_/q=6osq4q65TRlAZFGTm+8zC Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmBK3VIACgkQ83T9k6MF etelRAf/Wm+OrqypHz6bHXJMG4x231PuD0iJuZkbeM6m77ePb7Qq7G7EcVplULVX e9YmErj8LV3Q81a2Brw2qDrFMryrvnPcDyzY7k3ZVtlh6XTg+QfcXw9VGIWpkTbQ 15MjmgCHewurRe7Ngpqud9mD83u+IUI9r6D27yjMQ9n9wFpjXRjBQWuITrTD0U2R hijumBuzVQkLYKo2xef2YbG07AvZMqiCtO80VCvqsGv1Pg8Vrzc0N9g72AOrWBlq RAfi8iPLG9I8H3cNoTRIx4i/6cui1stR0LprPi8N4tinHI4oKX8ywDeXIbd7p+FM GsbXb8h5zllcoKAj3uCNbjBmsOMY8g== =c0Zx -----END PGP SIGNATURE----- --Sig_/q=6osq4q65TRlAZFGTm+8zC--