Patch for nALFS

Neven Has haski at sezampro.yu
Wed Dec 19 09:51:59 PST 2001


On Tue, Dec 18, 2001 at 05:53:13PM +0100, Martin Imobersteg wrote:
> How we could handle dependencies ?
> Some time ago i have done a Makefile to build an lfs.
> I touched a file in a dir ( ex: touch /var/log/installed/libfoobar-0.18 )
> and checked for its existence.
> This approach could be used by nALFS in touching a file <name>-<version>
> in a standard dir.

I did something like that already:

After installing each <package>, you'll end up with
~/.nALFS/packages/<name>-<version>.log files. As an example, I attached the
one for static bash - it is also possible to enable logging of "what's being
done" messages, added between "started" and "ended" times. (Now would be a
good time for someone to tell me how much this sucks).

I wasn't playing with dependencies yet, but that file could be also used
for them, as you suggest.

> I think the solution of Felipe with a 
> <depend>bonobo>=0.18</depend> tag is ok, but i see some problems with the >= 
> cause there are some realy ugly versioning models around :-(

Yes, and there is a problem with > too. ;)

But seriously, something like:

<dependencies>
    <package>
        <name>foo</name>

        <version something="describing needed relation to this version">
            0.18
        </version>
    </package>
</dependencies>

could be used for example. I don't know if there is some other info that
should go in there.

> > But this would be a big syntax change again, because it's incompatible
> > with current profiles. And adding is_new_new_syntax() (god forbid ;) or
> > is_syntax_version(3) would make me (and probably Mark) very unhappy. ;)
> > I'll start writing ideas like this, so maybe in the future when we have a
> > pile of them, we could switch to syntax 3.0, quickly and less painfully?
> > By that time, we should also have a good "converter" between different
> > syntaxes (you seem to make a good progress with XSLT for example), making
> > the change easier in that way too.
> 
> What about a unstable version to implement such things. It would be cool if 
> we can test the things before we release a new syntax.

It would, but then we definitely need some better syntax versioning (from
the parsers view). Otherwise, we would end up with a bunch of ifs in the
code, which is extremely prone to errors and, needless to say, ugly.
But that's a different problem, for program writers (*grumble*).

> I have some visions of a database which contains all the infos for the xml's. 
> It could be feed from the book via xslt, from freshmeat (versions, package 
> description ) and a web frontend. 
> Then you could go and click your system together with all the available 
> packeges, type in your ip, hostname and stuff and download it to your
> pc. alfs would build it for u - et voila, your brand new system :-)
> Dream on ...

If ALFS should have some ultimate goal, that would probably be it - part
of the famous "LFS InfoSystem", if I remember correctly. :)


Neven
-------------- next part --------------
Package name    : bash
Package version : 2.05a

Package started : Tue Dec 18 21:15:17 2001

    Pre build stage started  : Tue Dec 18 21:15:17 2001
    Pre build stage ended    : Tue Dec 18 21:16:15 2001
    Pre build stage took     : 00:00:58

    Build stage started      : Tue Dec 18 21:16:15 2001
    Build stage ended        : Tue Dec 18 21:17:16 2001
    Build stage took         : 00:01:01

    Post build stage started : Tue Dec 18 21:17:16 2001
    Post build stage ended   : Tue Dec 18 21:17:16 2001
    Post build stage took    : 00:00:00

Package ended : Tue Dec 18 21:17:16 2001

Total compile time: 00:01:59


Below is a sorted list of new and changed files.

Search path : /mnt/lfs
Prune list  : none

  40755    root    root        1024 Dec 18 21:15 /mnt/lfs/bin
  40755    root    root        1024 Dec 18 21:17 /mnt/lfs/bin
 100755    root    root     3196290 Dec 18 21:17 /mnt/lfs/bin/bash
 100555    root    root        6956 Dec 18 21:17 /mnt/lfs/bin/bashbug
 120777    root    root           4 Dec 18 21:17 /mnt/lfs/bin/sh -> bash
  40755    root    root        1024 Dec 18 21:15 /mnt/lfs/usr/share/info
  40755    root    root        1024 Dec 18 21:17 /mnt/lfs/usr/share/info
 100644    root    root      335969 Dec 18 21:17 /mnt/lfs/usr/share/info/bash.info
 100644    root    root         616 Dec 18 21:17 /mnt/lfs/usr/share/info/dir
  40755    root    root        1024 Dec 18 21:15 /mnt/lfs/usr/share/man/man1
  40755    root    root        1024 Dec 18 21:17 /mnt/lfs/usr/share/man/man1
 100644    root    root      222712 Dec 18 21:17 /mnt/lfs/usr/share/man/man1/bash.1
 100644    root    root        1343 Dec 18 21:17 /mnt/lfs/usr/share/man/man1/bashbug.1
  40755    root    root        1024 Dec 18 21:15 /mnt/lfs/usr/src
  40755    root    root        1024 Dec 18 21:17 /mnt/lfs/usr/src



More information about the alfs-discuss mailing list