[csw-maintainers] Including -R in pkg-config files
Maciej Bliziński
maciej at opencsw.org
Sun Dec 11 19:08:54 CET 2011
Rafael Ostertag wrote:
> Hi Maciej
>
> On Sun, Dec 11, 2011 at 01:15:52PM +0000, Maciej (Matchek) Blizi??ski wrote:
> > In our case, we keep all libs in /opt/csw/lib, so the -R/opt/csw/lib
> > flag is there in all GAR builds anyway; but for a different reason. If
> > you think of a downstream user, the lack of -R/opt/csw/lib means that
> > any built binaries will be unable to find their libraries.
> >
>
> I see your point there. But a grep on /opt/csw/lib/pkgconfig revelead that only
> a few packages are employing the -R flag.
Yes, it's not uncommon to discover a problem in one package, and then
realize that it applies to 78%-94% of the whole catalog.
> So, wouldn't it be a good idea to establish a policy on this ('we feature the
> -R flag by default'), and create a checkpkg test, which softly enforces that
> policy?
Yes, this is what we do in such situation! The modification to checkpkg
will require the addition of parsing of pkginfo files, adding the
extracted information to the main data structure, and then reading it
during the package check phase.
Is it something you would be interested in doing as a programming
exercise? I can offer guidance and code / patch reviews.
Maciej
More information about the maintainers
mailing list