From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kOt8NJdXUGI2rwAAgWs5BA (envelope-from ) for ; Fri, 08 Apr 2022 17:41:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cPwuLZdXUGIbJAEAG6o9tA (envelope-from ) for ; Fri, 08 Apr 2022 17:41:11 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 65D38DEB4 for ; Fri, 8 Apr 2022 17:41:11 +0200 (CEST) Received: from localhost ([::1]:47546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncqjW-0003Ji-78 for larch@yhetil.org; Fri, 08 Apr 2022 11:41:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncqjO-0003JE-SQ for guix-patches@gnu.org; Fri, 08 Apr 2022 11:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncqjO-0000T1-H3 for guix-patches@gnu.org; Fri, 08 Apr 2022 11:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncqjO-0007jM-5N for guix-patches@gnu.org; Fri, 08 Apr 2022 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54780 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Olivier Dion , 54780@debbugs.gnu.org Received: via spool by 54780-submit@debbugs.gnu.org id=B54780.164943240529629 (code B ref 54780); Fri, 08 Apr 2022 15:41:02 +0000 Received: (at 54780) by debbugs.gnu.org; 8 Apr 2022 15:40:05 +0000 Received: from localhost ([127.0.0.1]:35679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncqiT-0007hp-E8 for submit@debbugs.gnu.org; Fri, 08 Apr 2022 11:40:05 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:50136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncqiR-0007hW-3R for 54780@debbugs.gnu.org; Fri, 08 Apr 2022 11:40:04 -0400 Received: from [172.20.10.5] ([213.119.162.199]) by baptiste.telenet-ops.be with bizsmtp id GFfv2700U4JS4rZ01Fg1Yk; Fri, 08 Apr 2022 17:40:01 +0200 Message-ID: <7a376302aab455dae361205a491a4e5fd5bd5922.camel@telenet.be> From: Maxime Devos Date: Fri, 08 Apr 2022 17:39:55 +0200 In-Reply-To: <87v8vjvecz.fsf@laura> References: <3afb4ed9e9446906504f781dcf047160491ddfff.1649377087.git.olivier.dion@polymtl.ca> <871qy7wt52.fsf@laura> <87v8vjvecz.fsf@laura> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ix/0nxdpmSE+UPC5LmeB" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1649432401; bh=nKsQISJQfdiM+XFp3QSdAbABeBSvETiJbAssMaGEfXM=; h=Subject:From:To:Date:In-Reply-To:References; b=W38Y/KxPHUJOND8XQPmhY+nW6oL/gC9Un5Af9Nwo5nkqJjDOArogr24pMdi74jgPC sjfS4iTV4RtxlTuNKCApS1Am773QKFjexLThGP8zZccy0bkm/jfxDU7uZWMCIssde8 AI9g6GNhl6NtELfkz55wwLIZrbJzv36X4kt9wjO7WotLLR5tVEGPpacyBpujtslDJg NjgY89ZilGSqr6Gt1ZySrBRWG8bjjz3yfmXttO7GpU8kVAnC+JR74LJFWaQwjQ7V8g 5Ci5DzmMcrGn2+M4Cn6weDhXB/U/xVkT4LrXV7DSCpiqCmq4Ozblh3LQTjLV/dobV/ lX4IfZgGAeDBQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649432471; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=nKsQISJQfdiM+XFp3QSdAbABeBSvETiJbAssMaGEfXM=; b=sBwesbuX4hLBZo0nV9zb6sDb9oKfpp1VwC/66WZ0WPOv1NFQzZTbEnmlfDDorURf5qz2in W/ILe7ArKiCBD/SJuX+lXgivudNIccayH+BJtQ5dvz7vLBR1lkcmDGokIoWwCgwzRGjJCq 0nTu+NRD47eXQn+imU4AtoKqNfKp+JMULTiZvUj+ctilGp+xbkimtGZnWP3MAG6x8opyA7 wKRWmXwjDmPlA8GXx/QfM+D9A7goDoa+s4zG1jYh87MaMKvK4BL/BFADUHnIOHcnp+7myD jrk2adtVb+H/JsY32Dhn1xZmvIym7bkIzQql27+H3QW8/soCPtKjErRxcy8Djw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649432471; a=rsa-sha256; cv=none; b=c5vxoqOPTlQKl5dGRAz7apS3f2bMY0E62ATrIYnAYivOyW2ykI98CjP4/9fEqskDgw3HSb s1iOmyvXm2+jPLKOYJLKSaDybQvQsWNQt2JZyA6bnXuYULCPlIjZBHFg+6txADDtLXrqlh ISgogU52z2rtM1w8QMZFCxbl30JPLXTMhmi98b6OcD1Nb7QB6TL/Id63r99cQlNCtVmYyj MvTefsS9ct4Um/vx+72YYstO1ooBdxuXkWujfSkXe7WqPS3rv/QUXsQUnx3/JNZSdFdz/E 7oRaqYMrtxn5/r/ddG+x8NDxgBXPsk4dD+dZJRXYhhkqwx28NPFxA14YOG2M3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b="W38Y/KxP"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b="W38Y/KxP"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 65D38DEB4 X-Spam-Score: 2.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: m1wmYjbYZf0w --=-ix/0nxdpmSE+UPC5LmeB Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Olivier Dion schreef op vr 08-04-2022 om 10:28 [-0400]: > =C2=A0and don't fully understand it. lttn-ust probably has some header /gnu/store/...-lttng-unst-VERSION/include/lttng.h or the like. It would look something like: [...] #include int lttng_foo(urcu_stuff *bar); [..] Then the 'patch-header-inclusion' phase detects the #include , looks for include/liburcu.h in the package inputs, and finds /gnu/store/...-liburcu-VERSION/include/liburcu.h. It then replaces liburcu.h by /gnu/store/...-liburcu-VERSION/include/liburcu.h: [...] #include int lttng_foo(urcu_stuff *bar); [...] Now, suppose I build an application dependning on lttng-ust. Then the C compiler will =E2=80=98include=E2=80=99 'lttng.h' in the {CROSS_,}C_INLUD= E_PATH.=20 Then it sees: #include Now, as this is an absolute /gnu/store/... file name, the compiler knows where to find it without looking into {CROSS_,}C_INCLUDE_PATH, so it will find the header even though it might not be in {CROSS_,}C_INCLUDE_PATH. It's the same system as doing some 'substitute*' to bake in the absolute file name of some executable into the compiled application to avoid relying on PATH, except applied to C headers instead of executables and {CROSS_,}C_CINCLUDE_PATH instead of PATH. Greetings, Maxime. --=-ix/0nxdpmSE+UPC5LmeB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYlBXSxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7oZ8AQCZSXtYO8e0gbzzhV+ET0hbWAaD edv+OginZvN/G9SsrgEA3QUBSKCX1aCEMG4mRV15RoTANP5HV7wah4hRRr0/4AE= =H2n+ -----END PGP SIGNATURE----- --=-ix/0nxdpmSE+UPC5LmeB--