GNU bug report logs - #52239
R7RS define-library does not support cond-expand

Previous Next

Package: guile;

Reported by: Amirouche <amirouche <at> hyper.dev>

Date: Thu, 2 Dec 2021 09:16:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52239 in the body.
You can then email your comments to 52239 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#52239; Package guile. (Thu, 02 Dec 2021 09:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Amirouche <amirouche <at> hyper.dev>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Thu, 02 Dec 2021 09:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Amirouche <amirouche <at> hyper.dev>
To: "bug-guile <at> gnu.org" <bug-guile <at> gnu.org>
Subject: R7RS define-library does not support cond-expand
Date: Thu, 02 Dec 2021 09:15:04 +0000
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 not supported  by guile.




Information forwarded to bug-guile <at> gnu.org:
bug#52239; Package guile. (Fri, 03 Dec 2021 10:59:02 GMT) Full text and rfc822 format available.

Message #8 received at 52239 <at> debbugs.gnu.org (full text, mbox):

From: Amirouche <amirouche <at> hyper.dev>
To: "52239 <at> debbugs.gnu.org" <52239 <at> debbugs.gnu.org>
Subject: (No Subject)
Date: Fri, 03 Dec 2021 10:58:22 +0000
I do not reproduce with guile (GNU Guile) 3.0.7.70-6af33




Information forwarded to bug-guile <at> gnu.org:
bug#52239; Package guile. (Fri, 03 Dec 2021 11:12:01 GMT) Full text and rfc822 format available.

Message #11 received at 52239 <at> debbugs.gnu.org (full text, mbox):

From: Amirouche <amirouche <at> hyper.dev>
To: "52239 <at> debbugs.gnu.org" <52239 <at> debbugs.gnu.org>
Subject: Re: (No Subject)
Date: Fri, 03 Dec 2021 11:11:05 +0000
fixed in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40252




Information forwarded to bug-guile <at> gnu.org:
bug#52239; Package guile. (Fri, 10 Nov 2023 04:31:01 GMT) Full text and rfc822 format available.

Message #14 received at 52239 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Amirouche <amirouche <at> hyper.dev>
Cc: "52239 <at> debbugs.gnu.org" <52239 <at> debbugs.gnu.org>
Subject: Re: bug#52239: R7RS define-library does not support cond-expand
Date: Thu, 09 Nov 2023 23:29:43 -0500
Hi,

Amirouche <amirouche <at> hyper.dev> writes:

> fixed in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40252

Great!  Closing, by replying to '52239-done <at> debbugs.gnu.org'.

-- 
Thanks,
Maxim




bug closed, send any further explanations to 52239 <at> debbugs.gnu.org and Amirouche <amirouche <at> hyper.dev> Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 28 Nov 2023 03:48:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 26 Dec 2023 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 122 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.