From nobody Mon Jul 25 13:56:12 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 4Ls1mR3tlkz4XYMg for ; Mon, 25 Jul 2022 13:56:23 +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 4Ls1mQ3nJZz4MtN; Mon, 25 Jul 2022 13:56:22 +0000 (UTC) (envelope-from andrea@pappacoda.it) Received: from [192.168.178.195] (mail.pappacoda.it [128.116.175.254]) by mail.pappacoda.it (Postfix) with ESMTPSA id 15B6C3D51D; Mon, 25 Jul 2022 15:56:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pappacoda.it; s=20211226; t=1658757380; bh=cyHBlFOE1UVz7drCugHblOtrE3ff6/v9v8nO8yxQn38=; h=Date:From:Subject:To:Cc:In-Reply-To:References:From; b=PtiAU4jDEfmifIBryEOSXYCHb91d7jDnCq0E4I7yPXIbrr7OHzJpYbZ4MuMWiEOKm F3nNfo3HT9t93o7fiFXykBXS4zEJx/6lBRR8VyxN8DYvJzjKOR8VVZwjF1jZvP5hfm uhN2gtnTa2qE5srVB3KN7xxnjogMiCCrHGnYyGbwzExGYQQeAwnLYAj+5Nz3G6nYNW 0PCWNtSAOXmhtfCNYiXNWyIYv4RkENxBfsphZjD9lM5rulZcrM9R3a5uCpCVbyPDQZ SHo0vsLzePq9mHoZP/rfpu2rB96OMPpNtObQ5SSEHOAvKKG3qRNV1jLnfP4rQcVtcu t3l5eN1BOCwhA== Date: Mon, 25 Jul 2022 15:56:12 +0200 From: Andrea Pappacoda Subject: Re: pkg-config and share/ To: Baptiste Daroussin Cc: Alex Dupre , freebsd-hackers@FreeBSD.org Message-Id: In-Reply-To: <20220725111046.7sr7yyvsm5f3hyhj@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> X-Mailer: geary/40.0 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; format=flowed X-Rspamd-Queue-Id: 4Ls1mQ3nJZz4MtN X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pappacoda.it header.s=20211226 header.b=PtiAU4jD; 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_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_ALLOW(-0.20)[pappacoda.it:s=20211226]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@FreeBSD.org]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:35612, ipnet:128.116.128.0/17, country:IT]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[pappacoda.it:+]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Il giorno lun 25 lug 2022 alle 13:10:46 +02:00:00, Baptiste Daroussin ha scritto: > how do I lose that? there is something that I am missing here. what is > fundamentally different from share/pkgconfig and libdata/pkgconfig > beside the > name of the directory? 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 compilation, 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. For example, if I'm cross compiling to a riscv target and I find the toml++ library in share/pkgconfig/, I can use the library for the build as it is arch-independent (header-only lib, in this case). If I instead find the .pc file in libdata/pkgconfig/, I can't use it anymore, as it could either be arch-independent (header-only version), or arch-specific (toml++ can also be compiled as a proper shared library). That's how I see things, but I might be missing something. Hope I made this a bit cleaner :) -- OpenPGP key: 66DE F152 8299 0C21 99EF A801 A8A1 28A8 AB1C EE49