[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies.
From: |
Olivier Dion |
Subject: |
[bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies. |
Date: |
Fri, 08 Apr 2022 13:17:40 -0400 |
On Fri, 08 Apr 2022, Maxime Devos <maximedevos@telenet.be> wrote:
> Olivier Dion schreef op vr 08-04-2022 om 10:28 [-0400]:
>> and don't fully understand it.
> Now, suppose I build an application dependning on lttng-ust. Then the
> C compiler will ‘include’ 'lttng.h' in the {CROSS_,}C_INLUDE_PATH.
> Then it sees:
>
> #include </gnu/store/.../include/liburcu.h>
>
> 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/"
letters))))))))
--------------------
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/include/lttng/urcu/pointer.h:14,
from
/gnu/store/5qk5mmffc1m9cla71jywn0qz03bk6yhi-profile/include/lttng/tracepoint-rcu.h:11,
from
/gnu/store/5qk5mmffc1m9cla71jywn0qz03bk6yhi-profile/include/lttng/tracepoint.h:13,
from tracepoint.h:10,
from tracepoint.c:4:
/gnu/store/25nlsljfziysgbhhj9nhwfm4qn5h4b71-liburcu-0.13.1/include/urcu/arch.h:65:10:
fatal error: urcu/arch/x86.h: No such file or directory
65 | #include <urcu/arch/x86.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
--------------------
How could this be fix? That would require to modify the inputs no?
--
Olivier Dion
oldiob.dev
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Olivier Dion, 2022/04/07
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Maxime Devos, 2022/04/08
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Olivier Dion, 2022/04/08
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Olivier Dion, 2022/04/08
- [bug#54780] (C include header depropagation) Re: [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Maxime Devos, 2022/04/08
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Maxime Devos, 2022/04/08
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Olivier Dion, 2022/04/08
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies.,
Olivier Dion <=
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Maxime Devos, 2022/04/08
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Olivier Dion, 2022/04/08
- [bug#54780] [PATCH v2 1/2] guix: build: Add absolute-inclusions.scm., Olivier Dion, 2022/04/08
- [bug#54780] [PATCH v3 2/2] gnu: packages: Use absolute headers inclusion., Olivier Dion, 2022/04/21
- [bug#54780] [PATCH v3 1/2] guix: build: Add absolute-inclusions.scm., Olivier Dion, 2022/04/21
- [bug#54780] [PATCH v2 2/2] gnu: packages: Use absolute headers inclusion., Olivier Dion, 2022/04/08
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Maxime Devos, 2022/04/09
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Maxime Devos, 2022/04/09
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Olivier Dion, 2022/04/09
- [bug#54780] [PATCH] gnu: lttng-ust: Fix dependencies., Maxime Devos, 2022/04/09