From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#55934: [PATCH] (library ...) form in cond-expand inside R7RS define-library Date: Thu, 16 Jun 2022 09:37:37 +0200 Message-ID: <87czf9oy7y.fsf@gnu.org> References: <87wndmi3zn.fsf@cerbo.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21134"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: 55934-done@debbugs.gnu.org To: Mihail Iosilevich Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu Jun 16 09:38:37 2022 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 1o1k5N-0005MP-NV for guile-bugs@m.gmane-mx.org; Thu, 16 Jun 2022 09:38:37 +0200 Original-Received: from localhost ([::1]:52796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1k5M-0006Hz-I7 for guile-bugs@m.gmane-mx.org; Thu, 16 Jun 2022 03:38:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1k4o-0006Hi-VK for bug-guile@gnu.org; Thu, 16 Jun 2022 03:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46690) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1k4o-0007Aw-Na for bug-guile@gnu.org; Thu, 16 Jun 2022 03:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1k4o-0001Tl-KW for bug-guile@gnu.org; Thu, 16 Jun 2022 03:38:02 -0400 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Thu, 16 Jun 2022 07:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 55934 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Mail-Followup-To: 55934@debbugs.gnu.org, ludo@gnu.org, yosik@paranoid.email Original-Received: via spool by 55934-done@debbugs.gnu.org id=D55934.16553650705658 (code D ref 55934); Thu, 16 Jun 2022 07:38:02 +0000 Original-Received: (at 55934-done) by debbugs.gnu.org; 16 Jun 2022 07:37:50 +0000 Original-Received: from localhost ([127.0.0.1]:40586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1k4c-0001TB-0b for submit@debbugs.gnu.org; Thu, 16 Jun 2022 03:37:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1k4Y-0001Sx-P3 for 55934-done@debbugs.gnu.org; Thu, 16 Jun 2022 03:37:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1k4S-0006wi-Q7; Thu, 16 Jun 2022 03:37:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=UgRXOyioKWqJB7Ocwxbf14Wl9FVJkLp6mOXQbWEkd2Q=; b=hTlnfYHcZFuz3iHHsuFI zlbFQEEco23ozHivvebxkL7b/sUcIlz0vsNL5wiKlSdquMDBSNQhiiXxrjmL44hXlsVxCshhEQdBF uMaLF5BBd60GqEonAPGwC9cbvm8ZhdUkFvGQyI7ilUElS7QeznaJ/HE5EKJd8BfzgwpFMIQbU3zqu SUxIdiazx50M90NREwuBtYwO+FKAzaQAi86dn9WvRcb8jeDuWGSzp/3i5UZrEf6K+dNHaeHdmfXj1 /iVLAnDesp6e/Ew+PkuDKZXarCIPMuMUMdWMN3+ahVL2nlUbMIg3anIHFMIcc3AYnRXIXySZJyxfb HK9YpOWRoGQ/vQ==; Original-Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:52553 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1k4R-0005Da-Rn; Thu, 16 Jun 2022 03:37:40 -0400 In-Reply-To: <87wndmi3zn.fsf@cerbo.mail-host-address-is-not-set> (Mihail Iosilevich's message of "Sun, 12 Jun 2022 13:13:32 +0300") 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:10290 Archived-At: Hi, Mihail Iosilevich skribis: > Guile (3.0.8) reports a compilation error when cond-expand tries to > check existence of a missing library: > > scheme@(guile-user)> (define-library (test) > (cond-expand > ((library (scheme sort)) > (import (scheme sort))))) > While compiling expression: > no code for module (scheme sort) > > It looks like bug #40252 was not fully eliminated. > > Also, (library ...) cannot handle module names like (srfi 1), though > (import (srfi 1)) works fine. For example, this code fails: > > scheme@(guile-user)> (define-library (test) > (cond-expand > ((library (srfi 1)) > (import (srfi 1))))) > While compiling expression: > In procedure symbol->string: Wrong type argument in position 1 > (expecting symbol): 1 > > There are probably other cases when (library ...) and (import ...) does > not work identically: (library ...) uses resolve-interface while > (import ...) uses resolve-r6rs-interface. > > This patch fixes both issues. That looks reasonable to me. I added a ChangeLog-style entry and committed it, thanks! Ludo=E2=80=99.