changing glibc's default ld.so.conf path
compiled and packaged glibc into an rpm....CHECK
installed it into a test directory ...CHECK
chroot into the test directory....FAILED!
the reason is because glibc seems to be looking for ld.so.cache or ld.so.conf in the wrong directories (namely the BUILDROOT directory of the rpm system which is of course different from the test chroot directory)
the question is , how can i stop glibc from hardwiring the default location for those cache and config files or at least change those locations post-compilation ?
when running ldconfig of the newly installed glibc , the error is made clear but i don't know how to correct it...help is needed ;)
Please have a look into a glibc.spec from a glibc.SRC.RPM.
Example Fedora 15 glibc-2.13.90-9.src.rpm
$ grep -n ld.so.cache glibc.spec :
987:%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/ld.so.cache
etc. etc. : 1050 lines spec file to build glibc.
the fact that fedora's glibc specs file is 10 times bigger and more complicated than mine (with less than 50 lines) , is just one reason why i don't find it useful to peek at other people's work , second reason is that my distro is nothing like Fedora and the third being that you're missing the Woods for the Trees.
to recap , i've a very specific problem which is that , during configuration autoconf script is told via the rpm specs file and the config parameter file to install the files into specific locations for later packaging by rpm (which is obviously BUILDROOT)
NOTE: needless to say this problem would not arise if RPM wasn't involved.
so the Question is : How can i tell the Autoconf script to NOT hardwire the above given path into them when looking for the conf/cache files or at least to hardwire something else (i.e the correct path) ??
Well i've found the solution myself.
and that is to use the 'install_root' argument with 'make install' such as in:
this will relocate glibc into the chroot or test directory without messing up the hardwired scripts paths .
|All times are GMT -5. The time now is 03:52 AM.|