Some problems and solutions

Thomas 'Balu' Walter tw at itreff.de
Fri Sep 1 00:58:35 PDT 2000


+-Gerard Beekmans-(gerard at linuxfromscratch.org)-[01.09.00 01:32]:
> > Can I download the profile from anywhere?
> 
> http://alfs.linuxfromscratch.org/files/xmlprofile2
> 

Looking at the profile I would like to add my first ideas.
A tag that makes it possible to ask the user something would be great
(where do you want to install the LFS?)

As Bryan noted somewhere I would suggest doing other <environments> -
perhaps add a section like
<defaults>
   <target>/dev/hda5</target>
   <mountpoint>/mnt/lfs</mountpoint>
   <cflags>  -O3 -mcpu=i386 -march=i386</cflags>
   <cxxflags>-O3 -mcpu=i386 -march=i386</cxxflags>
   <tarballdir>/usr/src/tarballs</tarballdir>
</defaults>

Another one I would like to see is <remark> or <!-- --/>, but I think
that's XML-Standard.

And - wouldn't it be great to have some kind of tags to add descriptions
in a way that you can create an install-chapter using ALFS? ;) 

As Bryan said we should replace many of the <commands> with special
tags, so that a programmer can choose how to do it. Example:

<commands>rm file</command> should be
<rm>file</rm> (or <deletefile> or whatever ;)

Then every programmer can choose to use functions to do so (unlink() for
deletion), but still has a chance to do a simple rm :)

My <package> would look like this:

<package>
   <name>bash-STATIC</name>
   <version>2.04</name>
   <tarball>bash-2.04.tar.gz</tarball>
   <prebuild>
      <command>
         ./configure --enable-static-link --prefix=/usr --disable-nls
      </command>
   </prebuild>
   <build>
      <command>make</command>
   </build>
   <postbuild>
      <command>make prefix=$LFS/usr install<command>
<!-- what about Variables inside the alfs-scripts? -->
      <mv src="$LFS/usr/bin/bash" dst="$LFS/bin/" />
      <mv src="$LFS/usr/bin/bashbug" dst="$LFS/bin/" />
      <linksymbolic target="$LFS/bin/bash" linkname="$LFS/bin/sh" />
   </postbuild>
</packages>

This were the things that didn't let me sleep last night :)

     <balu/>





More information about the alfs-discuss mailing list