From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Amirouche Newsgroups: gmane.lisp.guile.bugs Subject: bug#52239: R7RS define-library does not support cond-expand Date: Thu, 02 Dec 2021 09:15:04 +0000 Message-ID: Reply-To: Amirouche 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="33956"; mail-complaints-to="usenet@ciao.gmane.io" To: 52239@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu Dec 02 10:16: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 1msiCK-0008cz-2T for guile-bugs@m.gmane-mx.org; Thu, 02 Dec 2021 10:16:12 +0100 Original-Received: from localhost ([::1]:36594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msiCJ-0004qA-0N for guile-bugs@m.gmane-mx.org; Thu, 02 Dec 2021 04:16:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msiCA-0004nm-VS for bug-guile@gnu.org; Thu, 02 Dec 2021 04:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msiCA-0005Uo-Lu for bug-guile@gnu.org; Thu, 02 Dec 2021 04:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1msiCA-0007gp-53 for bug-guile@gnu.org; Thu, 02 Dec 2021 04:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Amirouche Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 02 Dec 2021 09:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52239 X-GNU-PR-Package: guile X-Debbugs-Original-To: "bug-guile@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.163843652827746 (code B ref -1); Thu, 02 Dec 2021 09:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Dec 2021 09:15:28 +0000 Original-Received: from localhost ([127.0.0.1]:46566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msiBb-0007D4-SF for submit@debbugs.gnu.org; Thu, 02 Dec 2021 04:15:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msiBX-00078Z-LF for submit@debbugs.gnu.org; Thu, 02 Dec 2021 04:15:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msiBX-0004Dd-G1 for bug-guile@gnu.org; Thu, 02 Dec 2021 04:15:23 -0500 Original-Received: from mail-40136.proton.ch ([185.70.40.136]:49457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msiBR-0005C6-G7 for bug-guile@gnu.org; Thu, 02 Dec 2021 04:15:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hyper.dev; s=protonmail; t=1638436506; bh=4z0dHbccjUaacUooZtb3jdnbAh2G9f7p9QDtDRH8EzY=; h=Date:To:From:Reply-To:Subject:From; b=fslAHg8yi01FugODanwsgMi9ZnaKRfqF5cRK2IbM3AvqOkSRxzaybVAWcioL693gv zQg34bIJrlJs1qCWQgQo3ZS3Oie4cLUQ+02zz3yB9rp37Jj/qJs191Pyr5aRvjzEzU ULBgcR3+igT8ojWe5HQmrVM58dLqdEJw/I5UcidLL8dhfixN3BOuPWHUTP/hsti2Rv zLS3hXbmGGN6BWOHbT1U18S7BYwkh5aQ5IO8o/MXov+bFR5PidO6WrG1QTF6sYXz9l koiBiX+ySPeS/IBccBWXpVPCksv8Cz12C7h1K+VKlD+7sFJiuGrOD/qKU86XzjWVua 2TQCSa3mUiH8Q== Received-SPF: pass client-ip=185.70.40.136; envelope-from=amirouche@hyper.dev; helo=mail-40136.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:10218 Archived-At: workaround: #;> find live -type f -exec sh -c "echo \";;; cat {}\"; cat {}" \; ;;; cat live/hello/body.scm (define (hello name) (display "Hello schemer ") (display name) (display "!") (newline)) ;;; cat live/hello.scm (define-library (live hello) (import (scheme base) (scheme write)) (export hello) (include "hello/body.scm")) ;;; cat live/hello.sld (define-library (live hello) (import (scheme base) (scheme write)) (export hello) (cond-expand ((or mit guile chibi gambit gerbil loko) (include "hello/body.scm")) ;; That is the rule picked up by chicken (else (include "live/hello/body.scm")))) ;;; cat live/hello.rkt #!r7rs (define-library (live hello) (export hello) (import (scheme base) (scheme write)) (include "hello/body.scm")) ;;; cat live/hello.chez.sls (library (live hello) (export hello) (import (chezscheme)) (include "hello/body.scm")) #;> The following command guile myprogram.scm will pick `live/hello.scm` as the library `(live hello)` Unlike: guile --r7rs myprogram.scm that will pick `live/hello.sld` that contains a cond-expand, and that is no= t supported by guile.