Hi all, Recently we had a discussion about using the Mozilla NSPR/NSS package as a stand-alone package for BLFS. This would allow Firefox, Thunderbird and the Mozilla suite to share the system-installed copies of these libraries and interface headers, as well as having them installed in /usr for any other package (Evolution, Epiphany, etc) that may also utilize them.
It is now doable. The recent tarballs of the NSPR/NSS packages (the most recent NSS combines the two), are exactly the same versions used in Firefox-1.5 and Thunderbird-1.5, build without a hitch and pass the entire (and very extensive) test suite. NSS and NSPR is backward compatible as it goes forward, assuring us that we could update the NSS/NSPR packages knowing it will work correctly with the Moz packages. Many distros are now doing this, in fact, there is a couple of patches required to make it happen. A small patch for the NSS package to create a .pc file and an nss-config program, and a patch (from Fedora) that applies to the Moz products as the --with-system-nss switch does not work correctly as is. The --with-system-nspr switch *does* work as it is supposed to. I have built Thunderbird already using system-installed versions of NSS and NSPR and it works perfectly. In fact, the binaries created are identical as best as I can tell. A cmp doesn't show exact matches, but then, even building Thunderbird exactly the same way twice will not produce binaries that match byte-for-byte (there are only two bytes that change in many of the binaries). Anyway here is some comparisons. The 'tbird' directory shown below is the current build using system-installed versions, the 'tbird03' dir is one built using in-tree versions. Both directories are what is produced from using 'make -f client.mk install' after building: (files not found are because they are not created and not installed as they are the NSS/NSPR libraries that are system-installed. The NSS/NSPR interface headers are not copied into the .../include/thunderbird-1.5 directory either as they are already on the system before building Thunderbird, Firefox, etc.) [EMAIL PROTECTED]: ~ > for FILENAME in `find tbird03/lib/thunderbird-1.5 -maxdepth 1 \ -type f | sed 's|^.*/.*/||'` do ls -Gg tbird{,03}/lib/thunderbird-1.5/$FILENAME ; echo done -rwxr-xr-x 1 196747 Jan 19 11:58 tbird/lib/thunderbird-1.5/libldap50.so -rwxr-xr-x 1 196747 Jan 18 20:22 tbird03/lib/thunderbird-1.5/libldap50.so ls: tbird/lib/thunderbird-1.5/libnspr4.so: No such file or directory -rwxr-xr-x 1 199232 Jan 18 20:22 tbird03/lib/thunderbird-1.5/libnspr4.so -rwxr-xr-x 1 611228 Jan 19 11:59 tbird/lib/thunderbird-1.5/libmozjs.so -rwxr-xr-x 1 611228 Jan 18 20:23 tbird03/lib/thunderbird-1.5/libmozjs.so ls: tbird/lib/thunderbird-1.5/libplds4.so: No such file or directory -rwxr-xr-x 1 8968 Jan 18 20:22 tbird03/lib/thunderbird-1.5/libplds4.so -rwxr-xr-x 1 28388 Jan 19 11:58 tbird/lib/thunderbird-1.5/xpt_dump -rwxr-xr-x 1 28388 Jan 18 20:22 tbird03/lib/thunderbird-1.5/xpt_dump ls: tbird/lib/thunderbird-1.5/libplc4.so: No such file or directory -rwxr-xr-x 1 15636 Jan 18 20:22 tbird03/lib/thunderbird-1.5/libplc4.so -rwxr-xr-x 1 19714 Jan 19 11:58 tbird/lib/thunderbird-1.5/libprldap50.so -rwxr-xr-x 1 19714 Jan 18 20:22 tbird03/lib/thunderbird-1.5/libprldap50.so -rwxr-xr-x 1 10492 Oct 1 00:36 tbird/lib/thunderbird-1.5/run-mozilla.sh -rwxr-xr-x 1 10492 Oct 1 00:36 tbird03/lib/thunderbird-1.5/run-mozilla.sh -rwxr-xr-x 1 22280 Jan 19 11:58 tbird/lib/thunderbird-1.5/xpt_link -rwxr-xr-x 1 22280 Jan 18 20:22 tbird03/lib/thunderbird-1.5/xpt_link -rwxr-xr-x 1 80636 Jan 19 11:58 tbird/lib/thunderbird-1.5/xpidl -rwxr-xr-x 1 80636 Jan 18 20:22 tbird03/lib/thunderbird-1.5/xpidl -rwxr-xr-x 1 642640 Jan 19 12:00 tbird/lib/thunderbird-1.5/libxpcom_core.so -rwxr-xr-x 1 642640 Jan 18 20:24 tbird03/lib/thunderbird-1.5/libxpcom_core.so -rwxr-xr-x 1 10064 Jan 19 12:00 tbird/lib/thunderbird-1.5/libxpcom.so -rwxr-xr-x 1 10064 Jan 18 20:24 tbird03/lib/thunderbird-1.5/libxpcom.so -rwxr-xr-x 1 30068 Jan 19 12:00 tbird/lib/thunderbird-1.5/regxpcom -rwxr-xr-x 1 30068 Jan 18 20:24 tbird03/lib/thunderbird-1.5/regxpcom -rwxr-xr-x 1 100352 Jan 19 12:00 tbird/lib/thunderbird-1.5/libxpcom_compat.so -rwxr-xr-x 1 100352 Jan 18 20:24 tbird03/lib/thunderbird-1.5/libxpcom_compat.so -rwxr-xr-x 1 20532 Jan 19 12:01 tbird/lib/thunderbird-1.5/xpcshell -rwxr-xr-x 1 20532 Jan 18 20:25 tbird03/lib/thunderbird-1.5/xpcshell -rwxr-xr-x 1 14332 Jan 19 12:02 tbird/lib/thunderbird-1.5/libgtkxtbin.so -rwxr-xr-x 1 14332 Jan 18 20:26 tbird03/lib/thunderbird-1.5/libgtkxtbin.so -rwxr-xr-x 1 7980 Jan 19 12:05 tbird/lib/thunderbird-1.5/libgfxpsshar.so -rwxr-xr-x 1 7980 Jan 18 20:29 tbird03/lib/thunderbird-1.5/libgfxpsshar.so -rwxr-xr-x 1 120256 Jan 19 12:05 tbird/lib/thunderbird-1.5/libgkgfx.so -rwxr-xr-x 1 120256 Jan 18 20:29 tbird03/lib/thunderbird-1.5/libgkgfx.so -rwxr-xr-x 1 11620 Jan 19 12:32 tbird/lib/thunderbird-1.5/mozilla-xremote-client -rwxr-xr-x 1 11620 Jan 18 20:55 tbird03/lib/thunderbird-1.5/mozilla-xremote-client -rwxr-xr-x 1 76680 Jan 19 12:32 tbird/lib/thunderbird-1.5/updater -rwxr-xr-x 1 76680 Jan 18 20:55 tbird03/lib/thunderbird-1.5/updater -rwxr-xr-x 1 31708 Jan 19 12:33 tbird/lib/thunderbird-1.5/xpicleanup -rwxr-xr-x 1 31708 Jan 18 20:56 tbird03/lib/thunderbird-1.5/xpicleanup -rwxr-xr-x 1 7588 Jan 19 12:33 tbird/lib/thunderbird-1.5/libxpistub.so -rwxr-xr-x 1 7588 Jan 18 20:56 tbird03/lib/thunderbird-1.5/libxpistub.so ls: tbird/lib/thunderbird-1.5/libnssckbi.so: No such file or directory -rwxr-xr-x 1 285225 Jan 18 20:57 tbird03/lib/thunderbird-1.5/libnssckbi.so ls: tbird/lib/thunderbird-1.5/libsoftokn3.chk: No such file or directory -rw-r--r-- 1 476 Jan 18 20:57 tbird03/lib/thunderbird-1.5/libsoftokn3.chk ls: tbird/lib/thunderbird-1.5/libsoftokn3.so: No such file or directory -rwxr-xr-x 1 538206 Jan 18 20:56 tbird03/lib/thunderbird-1.5/libsoftokn3.so ls: tbird/lib/thunderbird-1.5/libnss3.so: No such file or directory -rwxr-xr-x 1 572862 Jan 18 20:57 tbird03/lib/thunderbird-1.5/libnss3.so ls: tbird/lib/thunderbird-1.5/libssl3.so: No such file or directory -rwxr-xr-x 1 163999 Jan 18 20:57 tbird03/lib/thunderbird-1.5/libssl3.so ls: tbird/lib/thunderbird-1.5/libsmime3.so: No such file or directory -rwxr-xr-x 1 188598 Jan 18 20:57 tbird03/lib/thunderbird-1.5/libsmime3.so -rwxr-xr-x 1 74872 Jan 19 12:50 tbird/lib/thunderbird-1.5/thunderbird-bin -rwxr-xr-x 1 74872 Jan 18 21:14 tbird03/lib/thunderbird-1.5/thunderbird-bin -rwxr-xr-x 1 78108 Jan 19 12:50 tbird/lib/thunderbird-1.5/libgtkembedmoz.so -rwxr-xr-x 1 78108 Jan 18 21:15 tbird03/lib/thunderbird-1.5/libgtkembedmoz.so -rwxr-xr-x 1 20432 Jan 19 12:50 tbird/lib/thunderbird-1.5/TestGtkEmbed -rwxr-xr-x 1 20432 Jan 18 21:15 tbird03/lib/thunderbird-1.5/TestGtkEmbed -- Randy rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3] [GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686] 12:58:00 up 116 days, 22:22, 3 users, load average: 0.01, 0.02, 0.06 -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page