Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ive just finished the LFS 5.1.1 book and want to use a package manager for blfs. Ive chosen to try a Slackware style management system.
Unfortunately, Checkinstall makes a foo.tgz which has the following in install/doinst.sh (at least when I run it as root in my new lfs environment ie properly chroot to the new location)
#
# doinst.sh, auto-generated by checkinstall-1.6.0beta3
#
#!/bin/sh
#
# postinstall script, created by checkinstall-1.6.0beta3
#
echo
if ! egrep "^/usr/local/lib *$" /etc/ld.so.conf &> /dev/null; then
echo "Adding "/usr/local/lib" to /etc/ld.so.conf"
echo /usr/local/lib >> /etc/ld.so.conf
fi
ldconfig
( cd . ; rm -rf ibjpeg.so.62 )
( cd . ; ln -sf libjpeg.so.62.0.0 ibjpeg.so.62 )
( cd . ; rm -rf ibjpeg.so )
( cd . ; ln -sf libjpeg.so.62.0.0 ibjpeg.so )
Do you see what is funky about this? I end up with two soft links ibjpeg.so* at the base of my directory tree. I tried running checkinstall on another program (tiff) and ended up again with two soft links whose first letter is removed. Naturally when I ran installpkg, I ended up with these softlinks at the base of my file system.
I have been looking through the script for checkinstall, but it is still a little bit over my head. I did manage to edit one section which was causing the lib directory to have one too many / ie //usr/local/lib. That was simple. I havent been able to find the part of the script, however, that appends the last 4 lines...I guess I could write my own little script to try to edit those lines, but that seems really...well, I would rather fix checkinstall itself.
So if you have free time and want to try it out yourself. That would be appreciated.
Last edited by Kroenecker; 07-12-2004 at 10:22 AM.
Ahh well, even with a fresh install of checkinstall version 1.3.2, which is what is used in the LFS hint, I still get those stray simlinks at the base of my partition.
I guess that I will just have to edit that myself when I install packages (poor me, I know) since I still dont have the skills to figure our the shell script in checkinstall.
Again, if anyone can help me, that would be appreciated.
Thanks.
Just to show the message that is displayed when I remove a package:
What is important is that the two top symlinks are making me frustrated!
GRRRR!
How are those created in the foo.tgz package? What is up???
Are symlinks just no good with checkinstall when doing slackware package management? If so, please let me know so that I dont continue to get frustrated over this.
Onegaishimasu!
Last edited by Kroenecker; 07-13-2004 at 10:45 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.