SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Slack64, 14.2, package sqlite-3.13.0-x86_64-1.txz has usr/lib64/libsqlite3.la
But Slack64-current, package sqlite-3.31.1-x86_64-1.txz doesn't have this file. It's not in any other package either.
I had to upgrade to sqlite-3.31 because I needed the window function support. Just did upgradepkg using the -current package. Everything worked fine.
But later, I tried building something that needed the .la file in the build.
I haven't examined the -current build script but could it be that some build option needed to be invoked to generate the .la file?
Yes, I know I'm lucky it works at all because the -current packages are linked against different versions of various libraries than my 14.2 system. But I'm certain it's the missing libsqlite3.la that was the issue with the other build I was attempting because I copied in the .la file from the old package and the build succeeded. But that's probably not the right answer. Anyway, curious what's going on.
Just for my education, why wouldn't we want to include the .la files in the package?
It was announced in the Slackware-current change log a while back.
Quote:
+--------------------------+
Thu Apr 19 01:04:06 UTC 2018
Hi folks, and welcome to the third ever Slackware Mass Rebuild (and the
longest ChangeLog entry in project history). There were two primary
motivations for rebuilding everything in the main tree. The first was to
switch to the new C++ ABI. The second was to get rid of all the .la files
in the LD_LIBRARY_PATH. Really, having .la files installed has been mostly
obsolete since things began to use pkg-config instead, but it's not easy
to get rid of them unless you do it all at once. If you just take them out
of one package, any other packages containing .la files that refer to the
removed ones will be broken. We've removed a few here and there before
(and then handled any packages that had referred to them with a rebuild),
but it was time to finally remove all the ones in /lib{,64} and
/usr/lib{,64}. One of the reasons that this really needed to happen is that
many projects are starting to migrate to build systems other than autotools,
and those systems do not generate .la files. So if we didn't get rid of them
now, we might end up in a situation later on where they are being removed
by upstream and then we would have to chase down the dependency breakage and
recompile (possibly many) other packages. The .la files that are outside of
the LD_LIBRARY_PATH were not removed (and shouldn't be) - those ones are
often used by the lt_dlopen() function to load plugins and removing those
ones can break things. But those ones don't cause problems... they aren't
likely to try to infect .la files produced by other packages.
IMPORTANT NOTE: If you have any third party or other packages installed on
your system that don't come with Slackware, and those packages have installed
any .la files, it is very likely that they refer to some .la files which we
have just removed, and that trying to compile against these packages will no
longer work. Luckily, the solution is simple: remove them. This command will
remove any stale .la files from the LD_LIBRARY_PATH:
rm /{,usr/}lib{,64}/*.la
Moving forward, nothing shipped in Slackware will contain any .la files in
those directories, and any SlackBuilds intended to be used with Slackware 15.0
should contain this bit of script:
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
In addition to those goals, the opportunity was taken to clean up slack-desc
files and make many trivial fixes to build scripts. We've also made it easy
to recompile everything again should there be a good reason to do so.
You'll also find various updates scattered throughout this long list.
Enjoy, and sorry about the bandwidth. ;-)
I had to upgrade to sqlite-3.31 because I needed the window function support. Just did upgradepkg using the -current package. Everything worked fine.
This is never a good idea. That sqlite could've been built against specific versions of libraries in -current that don't exist in 14.2. The fact the package actually worked is just luck.
If you ever need to upgrade a package with a version that exists in -current, it is much better to download the source folder for that package and run the SlackBuild, as then it will be compiled against packages on your system. (You may need to comment out the lines that remove the .la files if you pull SlackBuilds from -current.)
Thanks - hadn't thought about the pattern matching feature.
In this case, it was just one package and I didn't want to restore it to 14.2 status since I needed the newer sqlite. I did it as bassmadrigal suggested: rebuilt the package from source on my 14.2 system, using the -current script and source, and commenting out the line that removes the .la file. Then upgradepkg and blacklisted sqlite in /etc/slackpkg/blacklists so it wouldn't try to revert. Seems to be working fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.