On Sat, 9 Jul 2011 23:06:03 +0200
Lionel Elie Mamane <[email protected]> wrote:

> On Sat, Jul 09, 2011 at 10:29:42AM +0100, [email protected] wrote:
> > Package: sqliteodbc
> > Usertags: la-file-removal
> 
> >  To finish an old release goal from Squeeze, to comply with Policy
> > 10.2 and to ease the introduction of MultiArch, I'm filing bugs
> > against packages which contain .la files which can be either removed
> > or stripped of the dependency_libs variable.
> 
> Policy 10.2 says:
> 
>  These requirements for handling of .la files do not apply to loadable
>  modules or libraries not installed in directories searched by default
>  by the dynamic linker.

All true, but I hope I conveyed in the original bug report message that
clearing the dependency_libs field in the .la file is still necessary
even if the .la file is retained for the purposes of things like
libltdl. (It is also safe for libltdl usage as this relies on a
different part of the .la file.)

With MultiArch, you may still get problems here because those
directories will be changing. If those paths are within the sole
control of this package, fine - both parts can change at the same time.
If you're relying on paths which come from a separate source package,
it'll likely break.

> Hmm... Actually, I see that it puts some libraries (sqlite3
> extensions) in /usr/lib/odbc that should be in /usr/lib (and separated
> in a different binary package, maybe), and that are seemingly loaded
> with libdl, not libltdl, so there the .la files should go, yes.

OK. If the .la files are retained / moved / whatever, as long as the
dependency_libs field is cleared (possibly using something based on the
sed line from the linked Wiki page), everyone will be happy.

Of course, if the .la file can be removed from the package then that is
a simpler fix and a lot of packages have already taken that route. Those
packages which need to modify the .la file in debian/rules are just the
unlucky ones. Eventually, if all packages have empty dependency_libs
fields, libtool might stop putting stuff in the fields even for those
who do need to retain the .la file, so the sed rule might go away.

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

Attachment: pgpKhGksEOXWM.pgp
Description: PGP signature

Reply via email to