LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware current missing .la files (https://www.linuxquestions.org/questions/slackware-14/slackware-current-missing-la-files-4175628441/)

lcd047 04-26-2018 02:02 AM

Slackware current missing .la files
 
Slackware current has recently started to remove .la files from its packages. A random example from slackware64-current/source/l/glib2/glib2.SlackBuild:
Code:

92 make $NUMJOBS || make || exit 1
93 make install DESTDIR=$PKG || exit 1
94 
95 # Don't ship .la files:                                                                                                   
96 rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la

As a result dozens of slackbuilds packages no longer compile. A random example again:
Code:

libtool: link: cannot find the library `/usr/lib64/libgio-2.0.la' or unhandled argument `/usr/lib64/libgio-2.0.la'
What problem does removing .la files solve? More importantly, how are we supposed to work around this change?

drmozes 04-26-2018 02:03 AM

Quote:

Originally Posted by lcd047 (Post 5847582)
Slackware current has recently started to remove .la files from its packages. ...

Read the change log.

lcd047 04-26-2018 02:07 AM

So:
Quote:

Originally Posted by lcd047 (Post 5847582)
how are we supposed to work around this change?


orbea 04-26-2018 02:32 AM

Please read the following from the changelog, it answers your question.
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. ;-)
http://www.slackware.com/changelog/c...php?cpu=x86_64

ponce 04-26-2018 02:35 AM

most probably the things that you are trying to build now don't build because in the past you build others, still in your system, that refers in some of their files (for example, Pat suggested the pkgconfig's ones) those *.la libtool files and build of the new stuff breaks when it cannot find them.
my personal suggestion is to rebuild your third party packages from scratch on a full and clean install of Slackware current.

lcd047 04-26-2018 02:39 AM

Not really. I'm asking because I can't build packages on a clean current install.

orbea 04-26-2018 02:45 AM

What package? You may be able to work around it by using slibtool at SBo which doesn't need .la files and won't fail if they are missing instead of libtool in Slackware's main tree. Your experience with it may vary depending on what you are trying to build and be sure to read the README at SBo and the upstream README installed to the documentation directory.

lcd047 04-26-2018 03:04 AM

I'm trying to build a modified HandBrake. It does work with slibtool, so thank you for mentioning it.

ponce 04-26-2018 03:16 AM

Quote:

Originally Posted by lcd047 (Post 5847582)
As a result dozens of slackbuilds packages no longer compile. A random example again:

I've just tried HandBrake fro SBo and it seems to build fine...
do you have other examples?

orbea 04-26-2018 03:23 AM

First try uninstalling opus, jansson and lame with removepkg and then reinstalling them from the Slackware main tree and not SBo. Next try rebuilding libass and x264. Does handbrake still fail to build then?

lcd047 04-26-2018 03:27 AM

Quote:

Originally Posted by ponce (Post 5847612)
do you have other examples?

Well I have a list of the the last few things that I couldn't build, but some of them fail for entirely different reasons: FreeImage, avidemux, evince, fontforge, geoclue2, glade, graphviz, zbar.

ponce 04-26-2018 03:45 AM

Quote:

Originally Posted by lcd047 (Post 5847617)
Well I have a list of the the last few things that I couldn't build, but some of them brake for entirely different reasons: FreeImage, avidemux, evince, fontforge, geoclue2, glade-3, graphviz, zbar.

sorry, I misunderstood, I thought you said that they weren't building because the *.la files had been removed
Quote:

Originally Posted by lcd047 (Post 5847582)
Slackware current has recently started to remove .la files from its packages. A random example from slackware64-current/source/l/glib2/glib2.SlackBuild:
Code:

92 make $NUMJOBS || make || exit 1
93 make install DESTDIR=$PKG || exit 1
94 
95 # Don't ship .la files:                                                                                                   
96 rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la

As a result dozens of slackbuilds packages no longer compile.

BTW, everything you cite builds fine here on a clean Slackware current, FreeImage excluded.
I'm using the repository cited in this topic.

lcd047 04-26-2018 04:00 AM

I posted here because I couldn't compile packages without .la files. I don't have a list of packages that fail specifically for that reason, but I do have a list of packages I couldn't compile recently. Some of them failed because of the .la change, others failed for other reasons (f.i. avidemux fails because pow10f(3) is no longer supported by glibc). I'm pretty sure at least fontforge did fail because of the .la change, but I'm not sure about the others. Also, "everything builds fine" also depends on what is already installed. shrug

ponce 04-26-2018 04:06 AM

Quote:

Originally Posted by lcd047 (Post 5847623)
avidemux fails because pow10f(3) is no longer supported by glibc

in the post above I pointed you to a repository containing also a patch for that
http://cgit.ponce.cc/slackbuilds/commit/?h=avidemux

Quote:

I'm pretty sure at least fontforge did fail because of the .la change
I repeat if it isn't clear, this builds fine on current: could it be that you have to remove the previous installed version as noted in the README?
if you post the log we can try to help.

Quote:

Also, "everything builds fine" also depends on what is already installed.
I thought I explained clearly that I built them from scratch on a clean slackware current...

lcd047 04-26-2018 04:17 AM

Quote:

Originally Posted by ponce (Post 5847628)
I thought I explained clearly that I built them from scratch on a clean slackware current...

Sadly, one can only compile a single package on a clean slackware current. Compiling a second package is always done on a non-clean one. :)


All times are GMT -5. The time now is 05:10 AM.