/usr/lib klibc question
I'm trying to make a klibc slackbuild for personal use. However there is no option to set the libdir and as such is keeps in stalling the libraries to /usr/lib. I'm not overly concerned at this point with the quality of the slackbuild since I'm not going to submit it(not now at least), however I would like to honor the slackware lib directories. So I guess my question is how can set the build to use /usr/lib64 if there is not configure flags?
or is it safe just to change to the temporary package directory and just move the files by hand to /usr/lib64 and then make the package? Thanks Guys :) and HAPPY NEW YEAR |
You could probably just move them over, but it would be better to create a patch or use sed to change the paths in the Makefiles before compiling.
|
I'm getting fairly familiar with making slackbuilds but there are still some bash that I am learning. Could you point me to any guides or howto's? Or also some reference slackbuilds with the sort of sed commands your talking about.
Thanks |
Quote:
# Location for installation export prefix = /usr export bindir = $(prefix)/bin export libdir = $(prefix)/lib export mandir = $(prefix)/man export INSTALLDIR = $(prefix)/lib/klibc export INSTALLROOT = Now if I manullay edit the libdir and INSTALLDIR line to /usr/lib64 it will install correctly to lib64, however this ugly since If I decide to use the build on my i486 machine then I will have to edit the Makefile by hand and change it back. Like you said above I should probably use sed or make a patch. I'm not to familiar yet with sed, but I am learning :). So I guess my question is, if I write a patch that fixes the lib64 path issues, how would I tell the slackbuild to say use the patch for x86_64 and to ignore it if I am using i486? I think I got an Idea how to do this, you would use the if and then command? Or is it possible to patch the Makefile so that it can automatically recoginze what ARCH I'm using and act accordingly? Thanks for the help guys. |
To create the patch esaily, use 'gendiff':
'cp Makefile Makefile.00' Then hand edit Makefile. Then, from inside the sources: gendiff . .00 > ../klibc-libdir.diff That will place the diff above the toplevel of the sources. Then, in you SlackBuild: Code:
if [ $ARCH = x86_64 ] ; then |
Quote:
|
All times are GMT -5. The time now is 03:24 AM. |