mirror of
https://git.yoctoproject.org/poky
synced 2026-03-11 17:59:39 +01:00
It fails occasionally with missing generated header files: | ../git/common/asn1.c:42:10: fatal error: openssl.asn.h: No such file or directory | 42 | #include "openssl.asn.h" | | ^~~~~~~~~~~~~~~ | compilation terminated. According to meson manual page: https://mesonbuild.com/Wrap-best-practices-and-tips.html#declare-generated-headers-explicitly 'asn_h_dep' should be a dependency of static_library target 'libp11_asn1' to make sure that required header files generated before compile common/asn1.c. (From OE-Core rev: 523ae4ba677ee9d9925182689b2d70af6d3df7a8) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
It fails occasionally with missing generated header files:
|
|
|
|
| ../git/common/asn1.c:42:10: fatal error: openssl.asn.h: No such file or directory
|
|
| 42 | #include "openssl.asn.h"
|
|
| | ^~~~~~~~~~~~~~~
|
|
| compilation terminated.
|
|
|
|
According to meson manual page:
|
|
|
|
https://mesonbuild.com/Wrap-best-practices-and-tips.html#declare-generated-headers-explicitly
|
|
|
|
'asn_h_dep' should be a dependency of static_library target 'libp11_asn1' to
|
|
make sure that required header files generated before compile common/asn1.c.
|
|
|
|
Upstream-Status: Submitted [https://github.com/p11-glue/p11-kit/pull/619]
|
|
|
|
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
|
---
|
|
common/meson.build | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/common/meson.build b/common/meson.build
|
|
index dc86d7b..cc3ec48 100644
|
|
--- a/common/meson.build
|
|
+++ b/common/meson.build
|
|
@@ -113,6 +113,7 @@ if with_asn1
|
|
'p11-asn1', libp11_asn1_sources,
|
|
gnu_symbol_visibility: 'hidden',
|
|
include_directories: configinc,
|
|
+ dependencies: asn_h_dep,
|
|
)
|
|
|
|
libp11_asn1_dep = declare_dependency(
|