Build order change - Re: r7807 - in trunk/BOOK: . chapter01 chapter06

Dan Nicholson dbn.lists at gmail.com
Mon Oct 16 10:15:33 PDT 2006


On 10/16/06, Dan Nicholson <dbn.lists at gmail.com> wrote:
> On 10/15/06, Greg Schafer <gschafer at zip.com.au> wrote:
> >
> > I'm seeing an ICA regression from this change and AFAICT LFS is affected
> > too. It's only minor breakage, but should be fixed nevertheless:
> >
> > --- iter1/usr/bin/mk_cmds       2006-10-16 13:09:32.000000000 +1000
> > +++ iter2/usr/bin/mk_cmds       2006-10-16 13:35:17.000000000 +1000
> > @@ -5,7 +5,7 @@
> >  DIR="${DIR-/usr/share/ss}"
> >  SS_DIR="/temptools/src/e2fsprogs-1.39/lib/ss"
> >  AWK=gawk
> > -SED=/temptools/bin/sed
> > +SED=/bin/sed
> >
> >  if test "x$1" = x ; then
> >      echo "Usage: mk_cmds file"
>
> Oh yeah. I was going to say something when Matt mentioned moving
> e2fsprogs up, but got distracted. IIRC, e2fsprogs is kind of sensitive
> to it's position. I'm sure the above problem has occurred with sed,
> but there might be some others.

Without testing, I can think of a few ways to address this.

1. Add /bin/sed -> /tools/bin/sed to essential symlinks. Hacky, but it
would be the fast solution.

2. Move sed up to before e2fsprogs. I think this would work. sed
appears to only use libc, texinfo and gettext besides the standard
build commands. And it was already relying on the texinfo and gettext
from /tools.

3. Build just chattr from e2fsprogs in /tools. It appears this could
be done like so:
   mkdir build; cd build
   ../configure --prefix=/tools ...
   make libs LIB_SUBDIRS="lib/et lib/e2p" # or just leave out LIB_...
and build all the libs
   make -C misc chattr
   cp -v misc/chattr /tools/bin

--
Dan



More information about the lfs-dev mailing list