Tripwire and Pure LFS - cracked

S. Anthony Sequeira tony at sequeira.com
Wed Apr 23 13:03:49 PDT 2003


From: "Larry Lawrence" <larry at linuxfromscratch.org>
> On Wed, 23 Apr 2003 13:09:30 +0000, Tony Sequeira wrote:
>
>
> >>
> >
> > OK, I have to attach it, because this mailer wraps lines.  Please
be
> > aware, I have had to modify it from a script log, so a typo or two
may
> > have crept in, I have tried to be very careful, and will test it
> > tonight.
> >
> > Regards.
>
> cp ./src/make_include/i686-pc-linux.inc \
> ./src/make_include/i686-pc-linux.inc.orig &&
> sed '/^LINKFLAGS/s/$/ -pthread/'
./src/make_include/i686-pc-linux.inc.orig \
> > ./src/make_include/i686-pc-linux.inc # Add (1)
> export PATH_HOLD=$PATH &&
> export PATH=/opt/gcc2/bin:$PATH &&
> ln -s make /usr/bin/gmake &&
> cd src &&
> gmake release &&
> cd .. && # Add (2)
> Yes.
>
> cp ./install/install.{sh,cfg} ./. && # Change, add prefix (./) (3)
> Didn't do.
> cp ./install.cfg ./install.cfg.orig && # Add (4)
> Not needed here. Patch applied.
> patch -Np0 -i ../tripwire-cfg.patch && # Change (5)
> Yes
> ./install.sh &&
> cp /etc/tripwire/tw.cfg /usr/sbin &&
> cp policy/*.txt /usr/share/doc/tripwire # Change (6)
>
>
> rm /usr/bin/gmake
> export PATH=$PATH_HOLD
> Moved these to a new section.
>
> Explanations.
> (1) The executables need to be linked with the pthread library.
LDFLAGS
> did not work for me
>
> This was not a problem for LFS 4.1, so it will not be in the book.
This
> could change if I can reproduce the error on future versions.
>
> (2) Otherwise it fails (no file) on the cp on the next line
> (3) Not necessary, but what the heck!
> (4) Otherwise the patch fails - no file
> (5) -Np1 becomes -Np0 - otherwise the patch fails
> (6) Remove the &&, as we always want to remove the link, even on
failure
>
> Larry

That's cool.  So it was a combination of issues then.  Hope it helps
someone
in the future.

Cheers


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-dev' in the subject header of the message



More information about the blfs-dev mailing list