* [PATCH] mesa: update llvm-config RPATH
@ 2022-11-11 8:03 Vincent Davis Jr
2022-11-11 8:07 ` [OE-core] " Alexander Kanavin
0 siblings, 1 reply; 3+ messages in thread
From: Vincent Davis Jr @ 2022-11-11 8:03 UTC (permalink / raw)
To: openembedded-core; +Cc: Vincent Davis Jr
RPATH on the llvm-config binary is set wrong which leads to.
llvm-config: error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
AND
File "/../../../mesa/<version>/recipe-sysroot-native/usr/lib/python3.11/re/__init__.py", line 223, in finditer
return _compile(pattern, flags).finditer(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
Which in turn leads to meson configure failures as the llvm
version number isn't properly returned.
The libtinfo.so.5 library can be found in STAGING_BASELIBDIR
update rpath on llvm-config to STAGING_BASELIBDIR. So, that
meson configure succeeds.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
meta/recipes-graphics/mesa/mesa.inc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 7dbca5876a..77f9a5c81d 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -64,6 +64,11 @@ do_configure:prepend () {
if [ -e ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ]; then
cp ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ${STAGING_BINDIR}
cp ${STAGING_BINDIR_NATIVE}/llvm-config ${STAGING_BINDIR}
+
+ # RPATH on the llvm-config binary is set wrong which leads to
+ # llvm-config: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
+ # Which in turn leads to meson configure failures as the llvm-config version number isn't properly returned
+ chrpath --replace ${STAGING_BASELIBDIR} ${STAGING_BINDIR}/llvm-config
fi
}
@@ -227,7 +232,7 @@ do_install:append () {
rm -f ${D}${libdir}/gallium-pipe/*.la
rm -f ${D}${libdir}/gbm/*.la
- # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used
+ # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used
chrpath --delete ${D}${libdir}/dri/*_dri.so || true
# libwayland-egl has been moved to wayland 1.15+
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [OE-core] [PATCH] mesa: update llvm-config RPATH
2022-11-11 8:03 [PATCH] mesa: update llvm-config RPATH Vincent Davis Jr
@ 2022-11-11 8:07 ` Alexander Kanavin
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2022-11-11 8:07 UTC (permalink / raw)
To: Vincent Davis Jr; +Cc: openembedded-core
And same here: if the issue is in llvm-config, then it shouldn't be
fixed up after the fact in mesa.
Alex
On Fri, 11 Nov 2022 at 09:04, Vincent Davis Jr <vince@underview.tech> wrote:
>
> RPATH on the llvm-config binary is set wrong which leads to.
>
> llvm-config: error while loading shared libraries: libtinfo.so.5:
> cannot open shared object file: No such file or directory
>
> AND
>
> File "/../../../mesa/<version>/recipe-sysroot-native/usr/lib/python3.11/re/__init__.py", line 223, in finditer
> return _compile(pattern, flags).finditer(string)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> TypeError: expected string or bytes-like object, got 'NoneType'
>
> Which in turn leads to meson configure failures as the llvm
> version number isn't properly returned.
>
> The libtinfo.so.5 library can be found in STAGING_BASELIBDIR
> update rpath on llvm-config to STAGING_BASELIBDIR. So, that
> meson configure succeeds.
>
> Signed-off-by: Vincent Davis Jr <vince@underview.tech>
> ---
> meta/recipes-graphics/mesa/mesa.inc | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
> index 7dbca5876a..77f9a5c81d 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -64,6 +64,11 @@ do_configure:prepend () {
> if [ -e ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ]; then
> cp ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ${STAGING_BINDIR}
> cp ${STAGING_BINDIR_NATIVE}/llvm-config ${STAGING_BINDIR}
> +
> + # RPATH on the llvm-config binary is set wrong which leads to
> + # llvm-config: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
> + # Which in turn leads to meson configure failures as the llvm-config version number isn't properly returned
> + chrpath --replace ${STAGING_BASELIBDIR} ${STAGING_BINDIR}/llvm-config
> fi
> }
>
> @@ -227,7 +232,7 @@ do_install:append () {
> rm -f ${D}${libdir}/gallium-pipe/*.la
> rm -f ${D}${libdir}/gbm/*.la
>
> - # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used
> + # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used
> chrpath --delete ${D}${libdir}/dri/*_dri.so || true
>
> # libwayland-egl has been moved to wayland 1.15+
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#173119): https://lists.openembedded.org/g/openembedded-core/message/173119
> Mute This Topic: https://lists.openembedded.org/mt/94954417/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] mesa: update llvm-config RPATH
@ 2022-11-11 7:32 Vincent Davis Jr
0 siblings, 0 replies; 3+ messages in thread
From: Vincent Davis Jr @ 2022-11-11 7:32 UTC (permalink / raw)
To: openembedded-core; +Cc: Vincent Davis Jr
RPATH on the llvm-config binary is set wrong which leads to.
llvm-config: error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
AND
File "/../../../mesa/<version>/recipe-sysroot-native/usr/lib/python3.11/re/__init__.py", line 223, in finditer
return _compile(pattern, flags).finditer(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
Which in turn leads to meson configure failures as the llvm
version number isn't properly returned.
The libtinfo.so.5 library can be found in STAGING_BASELIBDIR
update rpath on llvm-config to STAGING_BASELIBDIR. So, that
meson configure succeeds.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
meta/recipes-graphics/mesa/mesa.inc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 7dbca5876a..77f9a5c81d 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -64,6 +64,11 @@ do_configure:prepend () {
if [ -e ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ]; then
cp ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ${STAGING_BINDIR}
cp ${STAGING_BINDIR_NATIVE}/llvm-config ${STAGING_BINDIR}
+
+ # RPATH on the llvm-config binary is set wrong which leads to
+ # llvm-config: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
+ # Which in turn leads to meson configure failures as the llvm-config version number isn't properly returned
+ chrpath --replace ${STAGING_BASELIBDIR} ${STAGING_BINDIR}/llvm-config
fi
}
@@ -227,7 +232,7 @@ do_install:append () {
rm -f ${D}${libdir}/gallium-pipe/*.la
rm -f ${D}${libdir}/gbm/*.la
- # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used
+ # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used
chrpath --delete ${D}${libdir}/dri/*_dri.so || true
# libwayland-egl has been moved to wayland 1.15+
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-11 8:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-11 8:03 [PATCH] mesa: update llvm-config RPATH Vincent Davis Jr
2022-11-11 8:07 ` [OE-core] " Alexander Kanavin
-- strict thread matches above, loose matches on Subject: below --
2022-11-11 7:32 Vincent Davis Jr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox