From nobody Mon Jul 25 09:08:24 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 4LrvNC3Gg7z4WwTs for ; Mon, 25 Jul 2022 09:08:27 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4LrvNC14hKz3scb; Mon, 25 Jul 2022 09:08:27 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658740107; 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: in-reply-to:in-reply-to:references:references; bh=YsrbhOUS4EHq/LP9FDcnhfBpI2eXy3j3R7MXiqt0U90=; b=et0j9YsT6IS6rqAzEJdHF1SYsPKrytHkJNUfYDkTioBiZfB0JLAEI/8xeMyQsEU+zN+5VL pJOEmoqyMkmHrIzexI+EtPD/XcPrgVgf7gQteDQbgccyKV4FGHCtEM0u9Z6ncEMLPM4RaA ymwInZSjYh3f9OAnTveY/aNV5b25pah3MORpgHRiSXjNnchdrotrZF8jUr1rx2Ygl18qlA 8q1UBoe3tnhQIT6D+ztu1DcP97JsTinqXChInM+2mIxDXNaRdumZPJjfLIr5fKO8T4ooR7 W2aofflLXbL7IYB/5hkU8M4ErcJFULxEdKTbf3+w4V5ygLeQ47WMUyrGK9VZCg== Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (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) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4LrvNB6SSwz130G; Mon, 25 Jul 2022 09:08:26 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id D2011F343D; Mon, 25 Jul 2022 11:08:24 +0200 (CEST) Date: Mon, 25 Jul 2022 11:08:24 +0200 From: Baptiste Daroussin To: Alex Dupre Cc: Andrea Pappacoda , freebsd-hackers@FreeBSD.org Subject: Re: pkg-config and share/ Message-ID: <20220725090824.qfeypgyugx6f7i6q@aniel.nours.eu> References: <50B3D276-5E68-4F87-97FB-71D75D3D9602@pappacoda.it> <20220725081535.vuxy74odqt2cxdnw@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 In-Reply-To: ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658740107; 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: in-reply-to:in-reply-to:references:references; bh=YsrbhOUS4EHq/LP9FDcnhfBpI2eXy3j3R7MXiqt0U90=; b=ABZtgnniHOeAUMC0Q0BBLHoUgamadz78370Z7oed7QPRM92uGZlGzAk59SSU7FMAEz3vHg 4vVNHqeprSz7lX6cLdMnJJNOoEqSbCDe3K5VOJX4vYcIwGBFE9GiS2Qus1Y0kFHfXZkuX7 igRPIZh2UTHoODHJqNUwzXqk+sZzAIjJJ4sls0nzxt2B6vnNVnLtSeSao2IFftT0NyFQpe eDn3nXXQ3stAi58/JaNy0E3qJr9fMtLUBwhnoMYZgI9Dir2gF6pt1hjTuiBowSeuvzo2Id d/bEja98xK9zN3TJ7rOba7eZj9wIgu0vf07Vb4xv90gMQFsV5GrCVi3/+QOWjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658740107; a=rsa-sha256; cv=none; b=q2dkLVVYpNtBBBKEbXoApqImTXW+bITnuZgHvI35rS4r0s3z+F7G7BfPN3UmMz7OcaXr9e Pm0eRQ6OTkpvIKL40Bu1zB5IF0WGpyroDtzZxAn3sSVH5QUpt/e13RragtvG0dabGNXw+g oa74KBt4KgMJj4VBf7d+PphPvP3s9mcQSvXewVShxY1nt+m/BQwlNzY8ue2I6CRg5Ww0b2 cwKphA19ufiy/O/l6nEUbRHn2524Y2hX5GSv+4dtI6hwj2CBoxhiHzp2149BkMG/Dj7tTW VvcPqU0Erw6zowc/GAJqXolr9zqutIff1guSCcAAaRHOFdJvN0tnXnZlhGUuZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Mon, Jul 25, 2022 at 10:54:57AM +0200, Alex Dupre wrote: > On 25/07/22 10:15, Baptiste Daroussin wrote: > > When pkg-config came out, (before my time) the .pc files were naturally added to > > libdata which is where most people hacking on freebsd would have expected it. > > > > So when we switched to pkgconf we preserved that. > > > > Note that the ports tree on freebsd does not need patching as it automatically > > moves the .pc files from the "linux" location to libdata. > > > > I do hope that this answers your question! > > I'm not sure this fully answers Andrea's question. It explains why we use > `libdata` instead of `lib`, but not exactly why we don't use `share` at all. > Is it desired or simply it was added in pkg-config in a second time and > never added to the FreeBSD port? Not really except if someone comes with a strong argument, we can manipulate where pkgconf does look at, via environment variable if needed. The reason we don't look elsewhere by default it to ensure we keep the room "clean" and people carefully store things where they are expected to be, if they don't, they do it on purpose and we offer mechanism to help them, (the env variable). > > As a side note, Andrea, do you know we have `USES=pathfix` in ports to > transparently handle these path differences? pathfix is not necessary anymore for this case, as I state in my previous email, this is now all automatic. best regards, Bapt