It took me probably 10 minutes of staring to figure out why my nss build
script bombed. I knew immediately that I was in the wrong dir, but
didn't believe such an obvious error would have made it into the book
without someone triggering it yet. The hindrance of using links didn't
help. Then I realized that the book is calling bash so when exiting
after the tests, one is back where he started. Duh! But that caused me
to wonder why jump through such hoops? A few keystokes is all it saves,
afterall. So I modified the instructions below. '--->' indicates the
lines I added:


export WORKINGDIR=$PWD &&
export BUILD_OPT=1 &&

patch -Np1 -i ../nss-3.11-fedora_fixes-1.patch &&

cd mozilla/security/nss &&
make nss_build_all &&
cd ../.. &&

export NSS_LINUXDIR=$(basename `ls -d $WORKINGDIR/mozilla/dist/Linux*`)

export DOMSUF=<validdomain.name> &&
---> export OLDPATH=$PATH &&
export PATH=$PATH:$WORKINGDIR/mozilla/dist/$NSS_LINUXDIR/bin &&
export TEST_RESULTSDIR=$WORKINGDIR/mozilla/tests_results/security &&

cd security/nss/tests &&
sed -i 's/gmake/make/' common/init.sh &&
./all.sh &&

grep Passed $TEST_RESULTSDIR/$(hostname).1/results.html | wc -l &&
---> cd ../../.. &&

install -v -m755 nsprpub/$NSS_LINUXDIR/config/nspr-config \
        security/nss/cmd/config/nss-config /usr/bin &&
install -v -m755 -d /usr/lib/pkgconfig &&
install -v -m644 nsprpub/lib/pkgconfig/nspr.pc \
        security/nss/lib/pkgconfig/nss.pc /usr/lib/pkgconfig &&

cd dist &&

install -v -m755 $NSS_LINUXDIR/lib/*.so /usr/lib &&
install -v -m644 $NSS_LINUXDIR/lib/{*.chk,libcrmf.a} /usr/lib &&

install -v -m755 -d /usr/include/{nss,nspr} &&
install -v -m644 {public,private}/nss/* /usr/include/nss &&
cp -v -RL $NSS_LINUXDIR/include/* /usr/include/nspr &&
chmod -v 644 /usr/include/nspr/prvrsion.h

---> export PATH=$OLDPATH &&
---> unset WORKINGDIR BUILD_OPT NSS_LINUXDIR DOMSUF TEST_RESULTSDIR OLDPATH


-- 
Archaic

Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to