Message ID | 20250515031214.924-1-liuyd.fnst@fujitsu.com |
---|---|
State | New |
Headers | show |
Series | libunwind: fix multilib conflict | expand |
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
> -----Original Message----- > From: Alexander Kanavin <alex.kanavin@gmail.com> > Sent: 2025年5月15日 21:06 > To: Liu, Yiding/刘 乙丁 <liuyd.fnst@fujitsu.com> > Cc: Bruce Ashfield <bruce.ashfield@gmail.com>; > openembedded-core@lists.openembedded.org > Subject: Re: [OE-core] [PATCH] libunwind: fix multilib conflict > > 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. Yes, you are right. Files under /usr/libexec of libunwind are all helper tools. They should remain in /usr/libexec. Then how about fix it with MULTILIB_SCRIPTS, I have send a V2 patch. Please review again. > > Alex
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"
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(-)