chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] Unit files for chicken < 3.4.0 (was Re: [Chicken-u


From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] Unit files for chicken < 3.4.0 (was Re: [Chicken-users] Srfi-19 problems)
Date: 10 Nov 2008 12:35:51 -0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Hi guys.

On Fri, 7 Nov 2008 20:37:16 +0100 "felix winkelmann" <address@hidden> wrote:

> On Fri, Nov 7, 2008 at 8:02 PM, Mario Domenech Goulart
> <address@hidden> wrote:
> >>
> >> The "files" unit came into existence with Chicken 3.4.0 (you are using
> >> 3.3.0 I see). I suggest creating a empty extension "files" so
> >> 'require' doesn't barf, upgrading Chicken, or using earlier versions
> >> of eggs.
> >
> > This problem is very annoying.  To make the transition to the `files'
> > unit era transparent to users, I thought about creating a `files' egg
> > which only installs something[1] when (chicken-version) < 3.4.0,
> > otherwise nothing is installed and the builtin `files' unit is used.
> >
> > [1] something like (use posix)
> >
> > So, when we are using chicken < 3.4.0 a files.so file is installed by
> > chicken-setup.  The code of this file consists of requiring the
> > `posix' unit.  When we have `(use files)' in the code, this extension
> > is used.
> >
> > When we are using chicken >= 3.4.0, no file is installed.  When we
> > have `(use files)' in the code, the `files' unit is used.
> >
> > All the eggs that use procedures from the `files' unit should require
> > the `files' egg in their .meta file.
> >
> > Yes, that's an awful hack...  Any thoughts or better alternatives?
> >
> 
> It's a hack, but it would work. Good idea, Mario.

I've added the `files' egg to the release/3 repo.

If you are the author/maintainer of eggs which use procedures from the
`files' unit (http://chicken.wiki.br/Unit%20files), please, add the
`files' egg to the `needs' section of the .meta file.

Best wishes.
Mario




reply via email to

[Prev in Thread] Current Thread [Next in Thread]