On Mon, Nov 10, 2008 at 02:28:43AM -0600, DJ Lucas wrote:
> DJ Lucas wrote:
> 
> > 
> > Though probably unrelated, I'm ripping out nss/nspr now and I'll be 
> > using a separate nss and nspr.  Probably as the book should do too given 
> > that nspr is moving along faster than nss.
> 
> 
> And I fully agree with the first src_install comment in the Gentoo 
> e-build for nspr...the mozilla build system is indeed f**** (as usual). 
>   So after reviewing the build log and cleaning up the mess it made of 
> my system, this is what I have come up with for a *working* installation 
> of nspr-4.7.3.
> 
> 
> patch -Np1 -i ../nspr-4.7.3-config-1.patch &&
> cd mozilla/nsprpub &&
> ./configure --prefix=/usr --enable-optimize --disable-debug &&
> make &&
> install -v -d -m755 /usr/bin &&
> install -v -d -m755 /usr/lib &&
> install -v -d -m755 /usr/lib/pkgconfig &&
> install -v -d -m755 /usr/share/aclocal &&
> install -v -d -m755 /usr/include/nspr &&
> install -v -d -m755 /usr/include/nspr/{md,private,obsolete} &&
> install -v -m644 config/nspr.pc /usr/lib/pkgconfig &&
> install -v -m755 config/nspr-config /usr/bin &&
> install -v -m644 config/nspr.m4 /usr/share/aclocal &&
> install -v -m644 pr/include/*.h /usr/include/nspr &&
> install -v -m644 pr/include/md/_*.cfg /usr/include/nspr/md &&
> cp -a /usr/include/nspr/md/_linux.cfg /usr/include/nspr/prcpucfg.h &&
> install -v -m644 pr/include/private/*.h /usr/include/nspr/private &&
> install -v -m644 pr/include/obsolete/*.h /usr/include/nspr/obsolete &&
> install -v -m755 pr/src/libnspr4.{a,so} /usr/lib &&
> install -v -m755 pr/src/misc/compile-et.pl /usr/bin &&
> install -v -m644 lib/ds/*.h /usr/include/nspr &&
> install -v -m755 lib/ds/libplds4.{a,so} /usr/lib &&
> install -v -m644 lib/libc/include/*.h /usr/include/nspr &&
> install -v -m755 lib/libc/src/libplc4.{a,so} /usr/lib
> for file in /usr/lib/lib{nspr,plds,plc}4.so
> do
>      mv -v "${file}" "${file}.7" &&
>      ln -v -s "${file}.7" "${file}"
> done &&
> ldconfig
> 
> Ken, Simon, anyone else that has messed with standalone nspr...do y'all 
> have anything to add to the above?
> 
 For 4.7.2 I've also got the following passed to configure:

 --includedir=/usr/include/nspr (I probably go that from cblfs,
might be belt-and-braces stuff)

 --with-pthreads : something which has been in mozilla a long time,
but we haven't forced.  It tells it to use the system pthreads
library for nspr (but not anywhere else).  If your nspr.pc has
-lpthread in it then it's probably become a default on linux, if
not, I think it's a good thing.

 I also use a sed to prevent the static libs being built, and just
install by using
 make install
 install -m755 -v config/nspr-config /usr/bin

 For the creation of the .pc files I thought I'd take a step closer
to how fedora does it: use a patch to create (the last part of)
nspr.pc.in with values like %NSPR_VERSION%, make repeated calls to
config/nspr-config to set variables for --libs --cflags --version,
then some echoes to create the first part of nspr.pc with subshell
calls to nspr-config for --prefix --exec-prefix --libdir
--includedir, and finally cat nspr.pc.in through a sed and onto the
end of the new nspr.pc.

 I'd got a bit fed up with writing everything into a .pc in a here
document, and having to change hardcoded values every time there was
a small change to the build.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
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