Getting rid of *.la files once and for all
Posted: 2024-09-27 Filed under: system | Tags: CRUX, la, la files, lib 14 CommentsCRUX does not remove *.la files by default. I try to make my ports clean these up, but there are many others that still ship them. I have run into pretty silly problems because of them, so I decided to do something about it.
Couple of years ago, Slackware made the decision to remove these from /lib and /usr/lib. Shortly after, this was added to the SlackBuilds templates (any *.la files in a package-specific location are left untouched, though). I’d prefer to do the same, so I did:
rm -f /{,usr/}lib/*.la
Then, to prevent the installation of *.la files in these locations, I added the following to the end of /etc/pkgadd.conf:
INSTALL ^usr/lib/[^/]*\.la$ NO INSTALL ^lib/[^/]*\.la$ NO # End of file
Now, installing stuff will omit /lib/*.la and /usr/lib/*.la files, also prtcheckmissing will not complain. Many thanks to farkuhar from #crux for the regex.
Of course, there’s this handy script, written by baguette. However, it does things in a bit drastic way, removing all *.la files.
Well, it’s up to you.

Do you use CRUX updated by Jaeger? the Jaeger server is not working.
Do you mean https://crux.ninja ?
bandwidth limit was reached or sth
yup, it is exactly.
I wanted to use CRUX as a multiboot with Slackware, but I see that I will have to update everything again to 3.7 using the CRUX media.
CRUX is a very “dynamic” distribution that receives constant updates. Sure, there’s the unofficial updated ISO, but you can do a fresh install using the original “dated” 3.7 iso and then update the system. It will go sth like this:
Sync ports with upstream:
ports -u
Show what will be updated:
prt-get diff
Remove stuff no longer present in the ports tree (you don’t want software do be linked against it):
prtorphan | xargs prt-get remove
Update the system:
prt-get sysup
Check what you need to rebuild:
revdep
Thanks.
I am an advanced CRUX user and I am eagerly awaiting the release of CRUX 3.8
Well, I am not an advanced CRUX user and I am a bit concerned about building all my ports on 3.8.
what do you think of this here; https://europa.fapyd.unr.edu.ar/pub/kwort/4.4/packages/
I would not install packages from an unknown source. You have a link to the ports used to create them? What is kwort?
Kwort is an Argentine distribution based on CRUX. these are the packages ready to install. gcc, rust, llvm
thanks, i quickly checked at DistroWatch, they say it’s dormant. Anyway, I do not have time to check it
Today I sent an email to Matt explaining that crux.ninja is very important to the CRUX Linux community. He replied saying that he will continue to maintain the updates. This is good news for me.
Good!