Hi all,
I'm finishing up the installation instructions for Firefox/T-Bird
using system-installed versions of NSS/NSPR. I hope to have all the
instructions finished up and in the book by the end of the weekend.
(BTW, Thunderbird-1.5 has *really* improved, but that is a different
thread).
I've put patches in the LFS repo for NSS and for T-Bird. Firefox will
use the identical same patch as T-Bird, just a different name. One
thing I can't quite get down in the sources, and I'm having to make
mods on installed files, and I'm hoping I can change that. Any help
from y'all would be appreciated. The goal is to use patches or seds
to modify the sources, and not have to modify installed files.
(Firefox and T-Bird issue is the same, just different filenames).
The issue has to do with the pkgconfig files installed. Firefox
installs these:
-rw-r--r-- 1 root root 330 Jan 21 08:44 firefox-xpcom.pc
-rw-r--r-- 1 root root 248 Jan 21 08:44 firefox-plugin.pc
-rw-r--r-- 1 root root 268 Jan 21 08:44 firefox-nss.pc
-rw-r--r-- 1 root root 248 Jan 21 08:44 firefox-nspr.pc
-rw-r--r-- 1 root root 255 Jan 21 08:44 firefox-js.pc
-rw-r--r-- 1 root root 288 Jan 21 08:44 firefox-gtkmozembed.pc
Now, notice the contents of the NSS/NSPR files:
======/usr/lib/pkgconfig/firefox-nspr.pc======
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/firefox-1.5
includedir=/usr/include/firefox-1.5
Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.6.1
Libs: -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl
Cflags: -I/usr/include/nspr
======/usr/lib/pkgconfig/firefox-nss.pc======
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/firefox-1.5
includedir=/usr/include/firefox-1.5
Name: NSS
Description: Mozilla Network Security Services
Version: 1.5
Requires: nspr >= 4.6.1
Libs: -L${libdir} -lnss3 -lsmime3 -lssl3 -lsoftokn3
Cflags: -I${includedir}/nss
Modifying these would be easy. The reason for needing modification
is because the libdir and includedir need to be changed to remove
the "firefox-1.5" because NSS/NSPR is actually installed in /usr.
However, I'd like to modify the sources before compiling. But I
don't know how to do it because everything is variables that will
be set during configure/make. Here are the source files:
[EMAIL PROTECTED]: ~/build > find mozilla -name "mozilla*ns*.pc.in" -exec cat
{} \;
prefix=%prefix%
exec_prefix=%exec_prefix%
libdir=%libdir%
includedir=%includedir%
Name: NSPR
Description: The Netscape Portable Runtime
Version: %NSPR_VERSION%
Libs: %FULL_NSPR_LIBS%
Cflags: %FULL_NSPR_CFLAGS%
prefix=%prefix%
exec_prefix=%exec_prefix%
libdir=%libdir%
includedir=%includedir%
Name: NSS
Description: Mozilla Network Security Services
Version: %MOZILLA_VERSION%
Requires: %NSPR_NAME% >= %NSPR_VERSION%
Libs: -L${libdir} -lnss3 -lsmime3 -lssl3 -lsoftokn3
Cflags: -I${includedir}/nss
Is there anything I can do to these source files so that the
"firefox-1.5" isn't tagged onto the includedir and libdir?
--
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]
08:57:00 up 118 days, 18:21, 3 users, load average: 0.01, 0.02, 0.05
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page