Mailinglist Archive: opensuse-packaging (250 mails)

< Previous Next >
Re: [opensuse-packaging] RFC: Banning system library paths from .pc files
  • From: Michael Matz <matz@xxxxxxx>
  • Date: Tue, 11 Aug 2009 13:53:29 +0200 (CEST)
  • Message-id: <Pine.LNX.4.64.0908111351170.29566@xxxxxxxxxxxxx>
Hi,

On Tue, 11 Aug 2009, Philipp Thomas wrote:

https://bugzilla.novell.com/show_bug.cgi?id=529921 shows why encoding system
library paths like /usr/lib and /usr/lib64 in pkgconfig files is a very bad
idea indeed.

Indeed, it always was.

I'd propose to add a brp script that checks for -L%{libdir} in .pc files
and fails the package if found. That way maintainers of a package that
comes with .pc files would be forced to fix their packages. I'd even
volunteer to write said brp script.

Didn't we once have something similar for .la files? In any case, a more
forgiving alternative would be a postprocessing of all installed .pc files
that simply would remove those -L arguments (with a warning), instead of
failing the package build.

I have no preference either way, but _something_ should indeed be done.


Ciao,
Michael.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
References