From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qNxvM1puUGK4VgEAgWs5BA (envelope-from ) for ; Fri, 08 Apr 2022 19:18:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sJFLLFpuUGL+awAAG6o9tA (envelope-from ) for ; Fri, 08 Apr 2022 19:18:18 +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 5442F2DA57 for ; Fri, 8 Apr 2022 19:18:18 +0200 (CEST) Received: from localhost ([::1]:59908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncsFV-00084F-Ha for larch@yhetil.org; Fri, 08 Apr 2022 13:18:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncsFH-00080d-64 for guix-patches@gnu.org; Fri, 08 Apr 2022 13:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncsFG-0007vx-SQ for guix-patches@gnu.org; Fri, 08 Apr 2022 13:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncsFG-0001xH-Bn for guix-patches@gnu.org; Fri, 08 Apr 2022 13:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 17:18: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: Maxime Devos , 54780@debbugs.gnu.org Received: via spool by 54780-submit@debbugs.gnu.org id=B54780.16494382737498 (code B ref 54780); Fri, 08 Apr 2022 17:18:02 +0000 Received: (at 54780) by debbugs.gnu.org; 8 Apr 2022 17:17:53 +0000 Received: from localhost ([127.0.0.1]:35854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncsF6-0001ws-Uu for submit@debbugs.gnu.org; Fri, 08 Apr 2022 13:17:53 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:57837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncsF5-0001we-8P for 54780@debbugs.gnu.org; Fri, 08 Apr 2022 13:17:51 -0400 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 238HHeqj011624 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 8 Apr 2022 13:17:45 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 238HHeqj011624 In-Reply-To: <7a376302aab455dae361205a491a4e5fd5bd5922.camel@telenet.be> References: <3afb4ed9e9446906504f781dcf047160491ddfff.1649377087.git.olivier.dion@polymtl.ca> <871qy7wt52.fsf@laura> <87v8vjvecz.fsf@laura> <7a376302aab455dae361205a491a4e5fd5bd5922.camel@telenet.be> Date: Fri, 08 Apr 2022 13:17:40 -0400 Message-ID: <87o81bv6iz.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Fri, 8 Apr 2022 17:17:40 +0000 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" Reply-to: Olivier Dion X-ACL-Warn: , Olivier Dion via Guix-patches From: Olivier Dion via Guix-patches via 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=1649438298; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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; bh=L0nmEE0EWcCS/Cxwd1s/URegt9D2ulSYexvwnEBXxQg=; b=GGPJXIOQPwTZcRlpdIwSM7AJkPevjK2yYfBltBZBmNBneMwDhyNa9IXm+MLwwdPqsj+wKt cxz0G3F69xSohEUUeGIr3gZBLBqkd3OY4KOgLu87yLQ9DuwKdXR19mxZ+yD1wqVmi6qa+c rRB7MoBGgYzxfPESnvJTotWfsIiOwrG0WcHkif/+rV0NlTJu2p2AHerIvxAxJtfmXGfq2u Zcci71H/XDipvG6V6pHZGujX3fl1jFjPg+H936JWTxmS2diA3izH7GybeP9Eq35NsdD4GA h4/BBAcKza29rt+7ruwBiSS0YG3tKr2bkxHQOPIEP4UOhnhIWwD3zEtKwvO2zg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649438298; a=rsa-sha256; cv=none; b=RcmF8po9pl8wRA7P5NXEyW8PdI9TmGhzwQ8TDm3MYTH/xfERMcoVP55cPhIsFEAFUEaJPO Vn3tIW1MZtS2yNY5dP9RbVdC9ZegGiGkZrNRQBAJkU1UAEuQ/KTVZVhvI95pxBRYcSa5vC sWW/5LWDNgSdryghxYFubMgjGoR+rKISOLn6kAgmVWIfBIGZqZ0Jd+qUid4/DgzoZmPWL5 TxP1xsjjvUyl3LLjqIJqo/9ZZ+GB/e8Gy27sb9iZ3f0gB5kIB/e1AjgoqgVtsP1Ino2yba 1dc8sqs/SIgGoz2M08aiPkfY3QYWmTIqHYWOu0KDNUyxrcUBsZ6zP8cSDkv3ng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.27 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 5442F2DA57 X-Spam-Score: -3.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: kEQdZWHz4WCA On Fri, 08 Apr 2022, Maxime Devos wrote: > Olivier Dion schreef op vr 08-04-2022 om 10:28 [-0400]: >> =C2=A0and don't fully understand it. > 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_INL= UDE_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. Here's what I have now: -------------------- (modify-phases %standard-phases (add-after 'patch-source-shebangs 'patch-source-headers (lambda* (#:key inputs #:allow-other-keys) (substitute* (find-files "./include" ".h") (("<(urcu/(compiler|pointer|arch|system|uatomic|config|list|= tls-compat|debug|ref|rculist).h)>" _ letters _) (format #f "<~a>" (search-input-file inputs (string-append "include/" letter= s)))))))) -------------------- this seems to build the package correctly and also change the RCU headers for lttng-ust. However, liburcu also include some architecture specific headers. So I get the following error while compiling my program: -------------------- In file included from /gnu/store/5qk5mmffc1m9cla71jywn0qz03bk6yhi-profile/i= nclude/lttng/urcu/pointer.h:14, from /gnu/store/5qk5mmffc1m9cla71jywn0qz03bk6yhi-profile/i= nclude/lttng/tracepoint-rcu.h:11, from /gnu/store/5qk5mmffc1m9cla71jywn0qz03bk6yhi-profile/i= nclude/lttng/tracepoint.h:13, from tracepoint.h:10, from tracepoint.c:4: /gnu/store/25nlsljfziysgbhhj9nhwfm4qn5h4b71-liburcu-0.13.1/include/urcu/arc= h.h:65:10: fatal error: urcu/arch/x86.h: No such file or directory 65 | #include | ^~~~~~~~~~~~~~~~~ compilation terminated. -------------------- How could this be fix? That would require to modify the inputs no? --=20 Olivier Dion oldiob.dev