Getting rid of *.la files once and for all

CRUX 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.


14 Comments on “Getting rid of *.la files once and for all”

  1. Unknown's avatar Anonymous says:

    Do you use CRUX updated by Jaeger? the Jaeger server is not working.

  2. slackalaxy's avatar slackalaxy says:

    Do you mean https://crux.ninja ?

    bandwidth limit was reached or sth

  3. Unknown's avatar Anonymous says:

    yup, it is exactly.

  4. Unknown's avatar Anonymous says:

    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.

  5. slackalaxy's avatar slackalaxy says:

    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

  6. Unknown's avatar Anonymous says:

    Thanks.

  7. Unknown's avatar Anonymous says:

    I am an advanced CRUX user and I am eagerly awaiting the release of CRUX 3.8

  8. slackalaxy's avatar slackalaxy says:

    Well, I am not an advanced CRUX user and I am a bit concerned about building all my ports on 3.8.

  9. Unknown's avatar Anonymous says:

    what do you think of this here; https://europa.fapyd.unr.edu.ar/pub/kwort/4.4/packages/

  10. slackalaxy's avatar slackalaxy says:

    I would not install packages from an unknown source. You have a link to the ports used to create them? What is kwort?

  11. Unknown's avatar Anonymous says:

    Kwort is an Argentine distribution based on CRUX. these are the packages ready to install. gcc, rust, llvm

  12. slackalaxy's avatar slackalaxy says:

    thanks, i quickly checked at DistroWatch, they say it’s dormant. Anyway, I do not have time to check it

  13. Unknown's avatar Anonymous says:

    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.


Leave a comment