Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2022 09:49:21 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Andrea Pappacoda <andrea@pappacoda.it>
Cc:        Daniel Engberg <diizzy@FreeBSD.org>, Alex Dupre <sysadmin@alexdupre.com>, freebsd-hackers@FreeBSD.org
Subject:   Re: pkg-config and share/
Message-ID:  <20220729074921.7sg2kqgydsjqwjqa@aniel.nours.eu>
In-Reply-To: <20220729073353.mp3ztbnzyeif4zv7@aniel.nours.eu>
References:  <50B3D276-5E68-4F87-97FB-71D75D3D9602@pappacoda.it> <20220725081535.vuxy74odqt2cxdnw@aniel.nours.eu> <be19c9ab-c762-a0b4-a3d2-8ffbc45dd5ac@alexdupre.com> <20220725090824.qfeypgyugx6f7i6q@aniel.nours.eu> <CNMKFR.31V3MUTROVR7@pappacoda.it> <20220725111046.7sr7yyvsm5f3hyhj@aniel.nours.eu> <ODXKFR.TMQ5KIOXE4A31@pappacoda.it> <JY6RFR.WNI64J5K6IPO2@pappacoda.it> <20220729073353.mp3ztbnzyeif4zv7@aniel.nours.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 29, 2022 at 09:33:53AM +0200, Baptiste Daroussin wrote:
> On Fri, Jul 29, 2022 at 01:08:43AM +0200, Andrea Pappacoda wrote:
> > Il giorno lun 25 lug 2022 alle 15:56:12 +02:00:00, Andrea Pappacoda
> > <andrea@pappacoda.it> ha scritto:
> > > > what is
> > > > fundamentally different from share/pkgconfig and libdata/pkgconfig
> > > > =7Fbeside the
> > > > name of the directory?
> > >=20
> > > I guess the difference is in the meaning of the two locations. If a .=
pc
> > > file is in share/ you can be sure it can be used for cross compilatio=
n,
> > > as share/ only contains arch-independent stuff. And if it is in
> > > libdata/? Maybe, I can't know, it could be either arch-specific or
> > > arch-independent.
> >=20
> > Hi Bapt, sorry to ping this thread, but I think I forgot to specify my
> > intents clearly.
> >=20
> > Given the usefulness of using share/pkgconfig/, and the fact that pkgco=
nf
> > upstream and many different OSes use that directory too, would you cons=
ider
> > making your pkgconf honour that directory too?
> >=20
> > If not, could you please point me to where I should go / who should I a=
sk to
> > make the Ports system move .pc files from share/ to libdata/? As Daniel
> > (diizzy) mentioned, it seems that currently only files from lib/ are mo=
ved
> > to libdata/.
> >=20
> > If you're not convinced of share/'s usefulness, please pay this thread a
> > visit: https://github.com/marzer/tomlplusplus/pull/165
> >=20
> > Thanks for your time!
> >=20
> >=20
>=20
> What is interesting is: I am the second contributor to the pkgconf projec=
t, we
> were iirc the first big project to entirely switch to pkgconf and we neve=
r ever
> needed share/pkgconfig, after digging back in history I can see it was th=
ere
> since forever, and when I performed the switch from pkg-config to pkgconf=
 and
> never ever reintroduced anything but libdata/pkgconfig (our equivalent of
> lib/pkgconfig), so this would be the first use case.
>=20
> And yes the auto population of libdata/pkgconfig is done by moving the fi=
les
> from lib/pkgconfig not moving the files from share/pkgconfig.
>=20
> I will add support for share/pkgconfig asap.
>=20
> Thank for the pointer.
>=20
> Best regards,
> Bapt

Done
https://cgit.freebsd.org/ports/commit/?id=3Dd48fab59daa56e0b3b6ffecef57a69c=
32ae9c0a7

Best regards,
Bapt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220729074921.7sg2kqgydsjqwjqa>