tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: hwdata package



Niclas Rosenvik <nros%netbsd.org@localhost> writes:

> On Tue, 28 Jan 2025 11:53:54 -0500
> Greg Troxel <gdt%lexort.com@localhost> wrote:
>
>> It would be good to fix pkg-config to lib/pkgconfig.  It's 921 lib, 18
>> share, on my system.
>> 
>> I think this is one of those pkgsrc regularlization things, but the
>> guide doesn't specify.
>> 
> Greg, I think the reason some packages put stuff in share/pkgconfig is
> related to the "Filesystem Hierarchy Standard" it states that the share
> directory "is for all read-only architecture independent data files" and
> packages like hwdata includes just that. Other pkgconfig files in
> share/pkgconfig on my machine are xorg-macros, poppler-data,
> wayland-protocols, icon-themes etc that points to just architecure
> independent data files. Some header only libraries like microsoft GSL
> (devel/c++gsl in pkgsrc) put their pc files under share/pkgconfig as
> well.

That could be, but FHS is more or less a linuxy thing and pkgsrc has its
own modified hier(7).

You do have a point about share vs lib, but what ought to be is tied to
what's in the path.  For example, is having lib but not share in a
pkgconfig search path a bug, by definition?  Why isn't there share in
the base system?

It would be good for the guide to say what ought to be here.


Home | Main Index | Thread Index | Old Index