Summary

R7RS cond-expand library form is broken

Metadata

Attachments

Description

The `r7rs` egg's support for the `(library ...)` form in `cond-expand` is broken. Running the following example

 (import (r7rs))
 (define spiffy-installed?
   (cond-expand
     ((library (spiffy)) #t)
     (else #f)))

gives this error:

 Error: during expansion of (cond-expand ...) - unbound variable: ##sys#core-library-modules

Changes and comments

[2020-06-15 22:45:16 UTC] wasamasa attached 0001-Omit-C4-specific-module-check.patch (description=#f)

[2020-06-15 22:45:24 UTC] wasamasa wrote:

This particular error originates from two checks that are no longer necessary in C5 due to unification of modules and units. Here's a patch doing the necessary cond-expand.

[2020-06-15 23:00:25 UTC] wasamasa attached 0001-Omit-C4-only-module-check-add-cond-expand-tests.patch (description=#f)

[2020-06-16 15:01:52 UTC] felix changed status from new to closed

[2020-06-16 15:01:52 UTC] felix set resolution to fixed

[2020-06-16 15:01:52 UTC] felix wrote:

Patch applied and a new version has been tagged (1.0.2)