diff options
| author | Daniel Klauer <daniel.klauer@gin.de> | 2023-10-04 12:54:03 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-10-04 13:10:06 -0700 |
| commit | 883860c40c67544dfe3e2d72732e2d8ef46b6f30 (patch) | |
| tree | c9c8465704e5341ee68773b2127251aa1e64636f /meta-oe/recipes-graphics/graphviz/graphviz_8.1.0.bb | |
| parent | 06faef7244794a076a64006c61774e7cef1217aa (diff) | |
| download | meta-openembedded-883860c40c67544dfe3e2d72732e2d8ef46b6f30.tar.gz | |
graphviz: Fix build to not use $prefix as search dir
The graphviz configure script used $prefix/include and $prefix/lib search
directories, thus bypassing the recipe sysroot, which could lead to build
contamination or failures. The added patch (backported from graphviz 9.0.0)
fixes this.
Due to the $prefix != /usr check in the configure script, this issue only
showed up for recipe build variants which use a different prefix value,
such as nativesdk-graphviz (prefix = SDKPATHNATIVE/...) or graphviz-native
(prefix = STAGING_DIR_NATIVE/...). Using STAGING_DIR_NATIVE is probably not
a problem, since it is recipe-specific anyways, but using SDKPATHNATIVE
may be a problem, if it happens to exist and contains headers/libraries.
Even though this may be unlikely with the default SDKPATH =
"/usr/local/oe-sdk-hardcoded-buildpath" value used in bitbake.conf,
the problem can still be triggered, especially if the paths like prefix
or SDKPATH are customized in a build.
Link: https://gitlab.com/graphviz/graphviz/-/issues/2442
Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/graphviz/graphviz_8.1.0.bb')
| -rw-r--r-- | meta-oe/recipes-graphics/graphviz/graphviz_8.1.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/graphviz/graphviz_8.1.0.bb b/meta-oe/recipes-graphics/graphviz/graphviz_8.1.0.bb index ccc114007c..4d40ee4dee 100644 --- a/meta-oe/recipes-graphics/graphviz/graphviz_8.1.0.bb +++ b/meta-oe/recipes-graphics/graphviz/graphviz_8.1.0.bb | |||
| @@ -19,6 +19,7 @@ DEPENDS:append:class-nativesdk = " ${BPN}-native" | |||
| 19 | inherit autotools-brokensep pkgconfig gettext qemu | 19 | inherit autotools-brokensep pkgconfig gettext qemu |
| 20 | 20 | ||
| 21 | SRC_URI = "https://gitlab.com/api/v4/projects/4207231/packages/generic/${BPN}-releases/${PV}/${BP}.tar.xz \ | 21 | SRC_URI = "https://gitlab.com/api/v4/projects/4207231/packages/generic/${BPN}-releases/${PV}/${BP}.tar.xz \ |
| 22 | file://0001-Autotools-fix-do-not-put-prefix-based-paths-in-compi.patch \ | ||
| 22 | " | 23 | " |
| 23 | # Use native mkdefs | 24 | # Use native mkdefs |
| 24 | SRC_URI:append:class-target = "\ | 25 | SRC_URI:append:class-target = "\ |
