Skip to content

Snow-chibi installs SRFI even when Chibi has it #1078

@Retropikzel

Description

@Retropikzel
cd /tmp
snow-chibi install --prefix=snow --impls=chibi srfi.39
tree snow/
snow/
└── share
    └── snow
        └── chibi
            └── srfi
                ├── 39.scm
                └── 39.sld

I dont think snow-chibi should install SRFI if implementation already supports it? In this case Chibi also uses SRFI-39 in a way that installing the one from snow-fort will break chibi resulting into this kind of error:

WARNING: exception inside module with no imports - did you forget to (import (scheme base)) in: (scheme base)
ERROR: module attempted to reference itself while loading: (scheme base)
  called from <anonymous> on line 210 of file /usr/local/share/chibi/meta-7.scm
  called from <anonymous> on line 1188 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 804 of file /usr/local/share/chibi/init-7.scm
  called from error on line 108 of file /usr/local/share/chibi/init-7.scm
  called from for1 on line 81 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 804 of file /usr/local/share/chibi/init-7.scm
  called from call-with-current-continuation on line 827 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 259 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 250 of file /usr/local/share/chibi/meta-7.scm
  called from <anonymous> on line 279 of file /usr/local/share/chibi/init-7.scm
  called from for1 on line 81 of file /usr/local/share/chibi/init-7.scm
  called from for1 on line 81 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 259 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 250 of file /usr/local/share/chibi/meta-7.scm
  called from <anonymous> on line 279 of file /usr/local/share/chibi/init-7.scm
  called from for1 on line 81 of file /usr/local/share/chibi/init-7.scm
  called from for1 on line 81 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 259 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 250 of file /usr/local/share/chibi/meta-7.scm
  called from <anonymous> on line 437 of file /usr/local/share/chibi/meta-7.scm
  called from <anonymous> on line 1268 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 800 of file /usr/local/share/chibi/init-7.scm
WARNING: exception inside module with no imports - did you forget to (import (scheme base)) in: (srfi 39)

I can check and fix this with other implementations but I think Chibi is special case on this, so I thought I'd raise an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions