[Slackbuilds-users] New Templates and 15.0 Repository Progress

Erich Ritz erich.public at protonmail.com
Sun Mar 6 02:24:11 UTC 2022

------- Original Message -------

On Saturday, March 5th, 2022 at 7:36 PM, Willy Sudiarto Raharjo <willysr at slackbuilds.org> wrote:

> > According to the new templates, .la files are not included
> > in the package to be built as follows:
> >
> > # Don't ship .la files:
> > rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
> >
> > But some packages (for example geany) put .la files in subfolders too,
> > say as
> >
> > /usr/lib${LIBDIRSUFFIX}/$PRGNAM/*.la
> >
> > Are maintainers supposed to make sure that these are omitted as
> > well?
> Yes please
> --
> Willy Sudiarto Raharjo

Doesn't it depend?  From the Slackware ChangeLog entry from Thu Apr 19 2018:

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

And on 64-bit Slackware 15.0 the contents of /etc/ld.so.conf are:

include /etc/ld.so.conf.d/*.conf

So if I understand correctly there should be no .la files in those directories.  But /usr/lib${LIBDIRSUFFIX}/$PRGNAM/*.la may very well be necessary for a program to operate correctly, and won't adversely affect the system.  In fact several stock Slackware packages contain these files (do a "find /usr/lib64 -name "*.la" to see them).

On the other hand, there are a few offending SBo packages in /usr/lib64 on my system (apologies if any of these have been fixed recently):

# ls -l /usr/lib64/*.la
-rwxr-xr-x 1 root root 1172 Feb 16 08:08 /usr/lib64/libflatpak.la*  (flatpak-1.10.2-x86_64-2_SBo)
-rwxr-xr-x 1 root root  980 Mar  3 12:10 /usr/lib64/libgeotiff.la*  (libgeotiff-1.5.1-x86_64-1_SBo)
-rwxr-xr-x 1 root root  910 Feb  7 10:46 /usr/lib64/libglpk.la*     (glpk-4.61-x86_64-1_SBo)
-rwxr-xr-x 1 root root  916 Feb  7 12:16 /usr/lib64/liblaszip.la*   (laszip-2.2.0-x86_64-1_SBo)


More information about the SlackBuilds-users mailing list