diff mbox series

libunwind: fix multilib conflict

Message ID 20250515031214.924-1-liuyd.fnst@fujitsu.com
State New
Headers show
Series libunwind: fix multilib conflict | expand

Commit Message

Liu Yiding May 15, 2025, 3:12 a.m. UTC
fix issue that
| Error: Transaction test error:
|   file /usr/libexec/libunwind/check-namespace.sh conflicts between attempted installs of libunwind-1.8.1-r0.core2_64 and lib32-libunwind-1.8.1-r0.core2_32
|   file /usr/libexec/libunwind/test-runner conflicts between attempted installs of libunwind-1.8.1-r0.core2_64 and lib32-libunwind-1.8.1-r0.core2_32

Pass ${libdir} to configure option --libexecdir of libunwind that it installs
    plugin libraries to /usr/lib{,64} rather than /usr/libexec/

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
 meta/recipes-support/libunwind/libunwind_1.8.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexander Kanavin May 15, 2025, 1:06 p.m. UTC | #1
On Thu, 15 May 2025 at 05:12, Yiding Liu (Fujitsu) via
lists.openembedded.org <liuyd.fnst=fujitsu.com@lists.openembedded.org>
wrote:
> fix issue that
> | Error: Transaction test error:
> |   file /usr/libexec/libunwind/check-namespace.sh conflicts between attempted installs of libunwind-1.8.1-r0.core2_64 and lib32-libunwind-1.8.1-r0.core2_32
> |   file /usr/libexec/libunwind/test-runner conflicts between attempted installs of libunwind-1.8.1-r0.core2_64 and lib32-libunwind-1.8.1-r0.core2_32
>
> Pass ${libdir} to configure option --libexecdir of libunwind that it installs
>     plugin libraries to /usr/lib{,64} rather than /usr/libexec/
>
> Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
> ---
>  meta/recipes-support/libunwind/libunwind_1.8.1.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-support/libunwind/libunwind_1.8.1.bb b/meta/recipes-support/libunwind/libunwind_1.8.1.bb
> index 68d7a98ee4..1dca39e1b7 100644
> --- a/meta/recipes-support/libunwind/libunwind_1.8.1.bb
> +++ b/meta/recipes-support/libunwind/libunwind_1.8.1.bb
> @@ -28,7 +28,7 @@ PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz"
>  PACKAGECONFIG[zlib] = "--enable-zlibdebuginfo,--disable-zlibdebuginfo,zlib"
>  PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native"
>
> -EXTRA_OECONF = "--enable-static"
> +EXTRA_OECONF = "--enable-static --libexecdir=${libdir}"

This does not look like a correct fix. Helper executables should not
go to libdir, they should indeed remain in libexecdir.

When multilib issues happen, there's an unfortunate tendency to not
look into what the differences actually are, and where they originate.
Please do so first, and then we'll work towards a fix.

Alex
diff mbox series

Patch

diff --git a/meta/recipes-support/libunwind/libunwind_1.8.1.bb b/meta/recipes-support/libunwind/libunwind_1.8.1.bb
index 68d7a98ee4..1dca39e1b7 100644
--- a/meta/recipes-support/libunwind/libunwind_1.8.1.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.8.1.bb
@@ -28,7 +28,7 @@  PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz"
 PACKAGECONFIG[zlib] = "--enable-zlibdebuginfo,--disable-zlibdebuginfo,zlib"
 PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native"
 
-EXTRA_OECONF = "--enable-static"
+EXTRA_OECONF = "--enable-static --libexecdir=${libdir}"
 
 # http://errors.yoctoproject.org/Errors/Details/20487/
 ARM_INSTRUCTION_SET:armv4 = "arm"