From nobody Sun Jul 24 12:36:14 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LrN2V0L3Wz4XjDd for ; Sun, 24 Jul 2022 12:36:18 +0000 (UTC) (envelope-from andrea@pappacoda.it) Received: from mail.pappacoda.it (mail.pappacoda.it [128.116.175.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LrN2S5vbNz3rmW for ; Sun, 24 Jul 2022 12:36:16 +0000 (UTC) (envelope-from andrea@pappacoda.it) Received: from [127.0.0.1] (mail.pappacoda.it [128.116.175.254]) by mail.pappacoda.it (Postfix) with ESMTPSA id 98CCE3D519 for ; Sun, 24 Jul 2022 14:36:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pappacoda.it; s=20211226; t=1658666174; bh=dL1Dp9i+fTyjeSUTM6Hu5jg/ww9+xXGRje+WRkta9KY=; h=Date:From:To:Subject:From; b=pcKn++1Hxls05PZeAaZJR12OhPj2ocrWdLI6xYG99PLg+swT4utsukoaGTB4Saz3q 89YALA/RlPlk98lg4bzv2VHvoHoOJUEdq4OQTat4yRB1I6LR+CPSaTkKlYtuHwzBwr FpmBewOCfQyr7XdRR61Bhl5EilKHv+GP51M3ygPWT51vOUK368UPbYg1bZUfxX1rGz qkQyl0czqkBpr35QZyCNJN7o/ccQ33pRIEtL/6LMkScq5p1woD+FRRQCtgiCiwK4+3 olmiZEbWxm2wKRYrkCyjgW79beiAkcLA/LecmkOQONsT9D0VFv9Y+ENpSwS7HEe35t 7lEWNQWcj7V8g== Date: Sun, 24 Jul 2022 14:36:14 +0200 From: Andrea Pappacoda To: freebsd-hackers@FreeBSD.org Subject: pkg-config and share/ User-Agent: K-9 Mail for Android Message-ID: <50B3D276-5E68-4F87-97FB-71D75D3D9602@pappacoda.it> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----TAMCRYSQZ3J1TC9SF0N7WNR6CFGBLT Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4LrN2S5vbNz3rmW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pappacoda.it header.s=20211226 header.b=pcKn++1H; dmarc=pass (policy=reject) header.from=pappacoda.it; spf=pass (mx1.freebsd.org: domain of andrea@pappacoda.it designates 128.116.175.254 as permitted sender) smtp.mailfrom=andrea@pappacoda.it X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[pappacoda.it,reject]; R_DKIM_ALLOW(-0.20)[pappacoda.it:s=20211226]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-hackers@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:35612, ipnet:128.116.128.0/17, country:IT]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[pappacoda.it:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N ------TAMCRYSQZ3J1TC9SF0N7WNR6CFGBLT Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi everyone! First time on the FreeBSD mailing lists, I hope this is not in= the wrong section :) I'd like to ask/discuss about FreeBSD's pkg-config behaviour=2E [As far as= I understand][1], on FreeBSD pkgconf looks for =2Epc files in the /usr/lib= and /usr/libdata directories, but completely ignores /usr/share=2E Why is = that? Where should arch-independent packages install their =2Epc files? I came here after a short discussion on a [GitHub issue][2], and I recomme= nd looking at that thread too because it gives a lot of information about w= hat the issue with not looking in share/ is, but in short it creates intero= perability problems with OSs wanting to use that directory for cross-build = purposes=2E Could somebody please help me understand why things work this way here, an= d if this unusual pkg-config behaviour could be improved? Thanks! [1]: https://cgit=2Efreebsd=2Eorg/ports/tree/devel/pkgconf/Makefile#n23 [2]: https://github=2Ecom/marzer/tomlplusplus/pull/165 ------TAMCRYSQZ3J1TC9SF0N7WNR6CFGBLT Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi everyone! First time on the FreeBSD mailing l= ists, I hope this is not in the wrong section :)

I'd like to ask/dis= cuss about FreeBSD's pkg-config behaviour=2E [As far as I understand][1], o= n FreeBSD pkgconf looks for =2Epc files in the /usr/lib and /usr/libdata di= rectories, but completely ignores /usr/share=2E Why is that? Where should a= rch-independent packages install their =2Epc files?

I came here afte= r a short discussion on a [GitHub issue][2], and I recommend looking at tha= t thread too because it gives a lot of information about what the issue wit= h not looking in share/ is, but in short it creates interoperability proble= ms with OSs wanting to use that directory for cross-build purposes=2E
Could somebody please help me understand why things work this way here, a= nd if this unusual pkg-config behaviour could be improved?

Thanks!
[1]: https://cgit=2Efreebsd=2Eorg/ports/tree/devel/pkgconf/Makefi= le#n23

[2]: https://github=2Ecom/marzer/tomlplusplus/pull/165 ------TAMCRYSQZ3J1TC9SF0N7WNR6CFGBLT--