From nobody Fri Jul 29 07:49:21 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 4LvKR75Jktz4XJ0Z for ; Fri, 29 Jul 2022 07:49:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LvKR72vhKz3cKS; Fri, 29 Jul 2022 07:49:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659080963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tehncbfq/VIQw/GGwv2h3XF15Zu8jdUOeR1UBq6YC2c=; b=rdpg+ewVhZPXVDPHfZdJpxCURHwoqwWvPpYJFKJfIYmrQM9VU0hCMTWO5kevh9eaG/lKpl 9wGk1S+Qquan0Mkrp1DZ2QTcT0CyXEMB0KbbAEs4RXLDkeb/SonUu51LhRA8B5q2ucjzRu uwGoi0W/Rv7k8Ed8fbP6GOHmuTvoX0Duduqjpwc7AMKRScxxyS/U1Qxs20P2wl1vPgC81X Ln1Qq4Q1W2W1ffUwHwpkjAe1/5NYH4oka8kwZzVMzexhe9+5A5mBDcEOIKVCbafE/27luc SRWpQeV3K7FxYsWEE/icdzvCk1+Q8QB3R7wfi7lqWyNojuO4A7J/O2oppohBLA== Received: from aniel.nours.eu (nours.eu [IPv6:2001:41d0:8:3a4d::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4LvKR71KNGzgwr; Fri, 29 Jul 2022 07:49:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id 7F467120AE3; Fri, 29 Jul 2022 09:49:21 +0200 (CEST) Date: Fri, 29 Jul 2022 09:49:21 +0200 From: Baptiste Daroussin To: Andrea Pappacoda Cc: Daniel Engberg , Alex Dupre , freebsd-hackers@FreeBSD.org Subject: Re: pkg-config and share/ Message-ID: <20220729074921.7sg2kqgydsjqwjqa@aniel.nours.eu> References: <50B3D276-5E68-4F87-97FB-71D75D3D9602@pappacoda.it> <20220725081535.vuxy74odqt2cxdnw@aniel.nours.eu> <20220725090824.qfeypgyugx6f7i6q@aniel.nours.eu> <20220725111046.7sr7yyvsm5f3hyhj@aniel.nours.eu> <20220729073353.mp3ztbnzyeif4zv7@aniel.nours.eu> 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: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220729073353.mp3ztbnzyeif4zv7@aniel.nours.eu> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659080963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tehncbfq/VIQw/GGwv2h3XF15Zu8jdUOeR1UBq6YC2c=; b=VqHcPCH5aKwvOxfm2cQ+pWo6OeVSvEbsXLKAqtP9wLcScVjaqeAsQ+A7YT+GMAiZovqmnX vi3XCPYnfvGgc6FrbkjdkjtGU/kc77QwIb+EIYcvielgU6BbTR95PlNRRTuFQiEvIBI63y 15PcCzFqkKirDe4+55Gujgd4vTdpz42u/eI34/d5KTj39c4E3uuodGN12qyMzlnA0DUz2m NLq/Lf9T9nUYGGROwim28QzGE6q6hSJqOAO2o7jJW1IxM0vwT5DZjAR8/LN/q8BW4dOGmD JQxCUAhxeTmyUVYeIiKbkynQSsZx7591Tl0B/hlzzn6qel6NGj0BidWkbIud9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659080963; a=rsa-sha256; cv=none; b=mSW+FYcZtKTyhQgf0RC+iMatWV7qf5J1IWDKk1FUj453bA3UDcAazAFRXZp66XNCL2h6kW 38ot3f+msDTMEo92Amvgju0Qqql8jnQtkAd1skk6GaG1ZhXYYtJ5eytLh6Ceo7igpi/sAt SaD6+vcUoEcAdTsZNQ/oMV2Gl+lOps/ehPrCZ/k06UVXySmWfZOAGirNEOI39l36UlqHUd soZfeuTvocq9TKklLNP2w4Hwg1bXUgMxogrMhT+WAb3SsOjbAR28yrJAXhtKavWKNKHaiU yI+P1vXwfW6UN2t5yw6zNluBg8DDEi8a4jdmiqz0CQzFCTkwxnH6XynuhRJWGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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 > > 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