Re: schemers: please support slib
On Sun, Jan 27, 2002 at 05:37:07PM +0800, zhaoway <zw@debian.org> was heard to say:
> Slib is currently unusable for most of the Scheme implementations
> available in Debian. For example,
Yes.
> solution 1:
>
> Slib should not output to file under /usr/lib. The corresponding code is
> in slib/mklibcat.scm,
>
> mklibcat.scm:(call-with-output-file (in-vicinity
> (implementation-vicinity) "slibcat")
>
> A suitable place is maybe somewhere under /var/lib, say
> /var/lib/slib/{scheme,implementations,names}-slibcat
>
> This solution needs modification of slib code. And users still need to
> copy /usr/share/slib/init/{scheme,implementations,names}.init to the
> proper place.
This seems Icky[tm].
> solution 2:
>
> scheme implementation packages should deal with installed slib package
> in their postinst. For example, to generate slibcat with a debconf
> dialog etc.
>
> But what is user install slib later?
>
> Any comments are welcome!
How about doing something like the emacsen? A brief sketch:
Every Scheme implementation places a file with the same name as the
package in, eg, /usr/lib/slib/install/ and /usr/lib/slib/remove/; when
an implementation is installed or removed, it calls
/usr/lib/slib/slib-implementation-[install|remove] package. slib itself
does a similar thing when it is installed or removed.
(Note that this is somewhat backwards from the way emacs does it --
there, the packages register for the implementations. The reason I'm
suggesting this is that there is only one major Scheme package, and
about a zillion implementations; furthermore, there's no standard way
that I know of to create a Scheme package -- so every single package
has to have its own installation instructions for each implementation)
Thoughts?
Daniel
--
/----------------- Daniel Burrows <Daniel_Burrows@brown.edu> -----------------\
| "Do you know why the prisoner in the |
| tower watches the flight of birds?" |
| -- Terry Pratchett, _Reaper_Man_ |
\---- Be like the kid in the movie! Play chess! -- http://www.uschess.org ---/
Reply to: