Skip to contentSkip to conversation

lua: Fix install conflict when enable multilib.

PATCH In review [email protected] 3 participants 9 messages Feb 24, 2023 – Mar 2, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 lua: Fix install conflict when enable multilib.

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/include/luaconf.h conflicts between attempted installs of lua-dev-5.4.4-r0.aarch64 and lib32-lua-dev-5.4.4-r0.armv7ahf_neon

---
 meta/recipes-devtools/lua/lua_5.4.4.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/lua/lua_5.4.4.bb +3 -0
index 0b2e754b31..a39d888ec2 100644
@@ -57,3 +57,6 @@ do_install_ptest () {
 }
 
 BBCLASSEXTEND = "native nativesdk"
+
+inherit multilib_script
+MULTILIB_SCRIPTS = "${PN}-dev:${includedir}/luaconf.h"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/4 vala: Fix install conflict when enable multilib.

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/bin/vala-gen-introspect-0.56 conflicts between attempted installs of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64 file /usr/bin/vapigen-wrapper conflicts between attempted installs of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

---
 meta/recipes-devtools/vala/vala.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/vala/vala.inc +3 -0
index d3daee37dc..90689662cb 100644
@@ -66,3 +66,6 @@ PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess"
 vala_package_preprocess () {
 	sed -i -e 's:${RECIPE_SYSROOT}::g;' ${PKGD}${bindir_crossscripts}/vapigen-wrapper
 }
+
+inherit multilib_script
+MULTILIB_SCRIPTS = "${PN}:${bindir}/crossscripts/vapigen-wrapper ${PN}:${bindir}/vala-gen-introspect-0.56"
Signature · 1 line
2.34.1
#2 lore raw

Re: [OE-core] [PATCH 2/4] vala: Fix install conflict when enable multilib.

Quoted 16 lines · wangmy

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/bin/vala-gen-introspect-0.56 conflicts between attempted installs of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64 file /usr/bin/vapigen-wrapper conflicts between attempted installs of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

---
 meta/recipes-devtools/vala/vala.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/vala/vala.inc +0 -0
index d3daee37dc..90689662cb 100644

meta/recipes-devtools/vala/vala.inc PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess" · line 71

Quoted 6 lines
meta/recipes-devtools/vala/vala.inc +3 -0
@@ -66,3 +66,6 @@ PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess"
 vala_package_preprocess () {
 	sed -i -e 's:${RECIPE_SYSROOT}::g;' ${PKGD}${bindir_crossscripts}/vapigen-wrapper
 }
+
+inherit multilib_script
+MULTILIB_SCRIPTS = "${PN}:${bindir}/crossscripts/vapigen-wrapper ${PN}:${bindir}/vala-gen-introspect-0.56"

This looks a bit odd since crossscripts wouldn't be installed on the target?

Also, when posting these kinds of changes, can you show a diff of the two files please?

Sometimes we can tweak the files so that they can become the same but it is hard to know without context.

Cheers,

Richard

#3 lore raw

RE: [OE-core] [PATCH 2/4] vala: Fix install conflict when enable multilib.

Quoted 1 line

This looks a bit odd since crossscripts wouldn't be installed on the target?

I also feel a little strange. It seems that this file should not be installed on target. But I'm not sure, so I didn't delete this file from target

Quoted 1 line

Also, when posting these kinds of changes, can you show a diff of the two files

Compare the contents of the two files as follows:
diff -r armv7ahf-neon-pokymllib32-linux-gnueabi/lib32-vala/0.56.4-r0/image/usr/bin/vala-gen-introspect-0.56 cortexa57-poky-linux/vala/0.56.4-r0/image/usr/bin/vala-gen-introspect-0.56:

<libdir=/usr/lib

Quoted 1 line

libdir=/usr/lib64

  --
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 49 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Richard Purdie
Sent: Friday, February 24, 2023 6:16 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH 2/4] vala: Fix install conflict when enable multilib.

Quoted 4 lines · wangmy

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/bin/vala-gen-introspect-0.56 conflicts between attempted installs

of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

meta/recipes-devtools/vala/vala.inc PACKAGE_PREPROCESS_FUNCS +=

Quoted 14 lines

file /usr/bin/vapigen-wrapper conflicts between attempted installs
of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

---
 meta/recipes-devtools/vala/vala.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/vala/vala.inc +0 -0
index d3daee37dc..90689662cb 100644
@@ -66,3 +66,6 @@ PACKAGE_PREPROCESS_FUNCS +=

"vala_package_preprocess"

meta/recipes-devtools/vala/vala.inc PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess"

Quoted 7 lines
meta/recipes-devtools/vala/vala.inc +0 -0
 vala_package_preprocess () {
 	sed -i -e 's:${RECIPE_SYSROOT}::g;'

${PKGD}${bindir_crossscripts}/vapigen-wrapper
}

meta/recipes-devtools/vala/vala.inc +3 -0
+
+inherit multilib_script
+MULTILIB_SCRIPTS = "${PN}:${bindir}/crossscripts/vapigen-wrapper

${PN}:${bindir}/vala-gen-introspect-0.56"

This looks a bit odd since crossscripts wouldn't be installed on the target?

Also, when posting these kinds of changes, can you show a diff of the two files please?

Sometimes we can tweak the files so that they can become the same but it is hard to know without context.

Cheers,

Richard

#4 lore raw

Re: [OE-core] [PATCH 2/4] vala: Fix install conflict when enable multilib.

You might want to look into why this item gets installed in the first place. Multilib as its name says is meant for multiple sets of libraries, but not executables.

Alex

Quoted 81 lines · wangmy
Quoted 2 lines

This looks a bit odd since crossscripts wouldn't be installed on the target?

I also feel a little strange. It seems that this file should not be installed on target. But I'm not sure, so I didn't delete this file from target

Quoted 1 line

Also, when posting these kinds of changes, can you show a diff of the two files

Compare the contents of the two files as follows:
diff -r armv7ahf-neon-pokymllib32-linux-gnueabi/lib32-vala/0.56.4-r0/image/usr/bin/vala-gen-introspect-0.56 cortexa57-poky-linux/vala/0.56.4-r0/image/usr/bin/vala-gen-introspect-0.56:

<libdir=/usr/lib

Quoted 1 line

libdir=/usr/lib64

--
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 43 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Richard Purdie
Sent: Friday, February 24, 2023 6:16 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH 2/4] vala: Fix install conflict when enable multilib.

Quoted 4 lines · wangmy

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/bin/vala-gen-introspect-0.56 conflicts between attempted installs

of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

meta/recipes-devtools/vala/vala.inc PACKAGE_PREPROCESS_FUNCS +=

Quoted 14 lines

file /usr/bin/vapigen-wrapper conflicts between attempted installs
of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

---
 meta/recipes-devtools/vala/vala.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/vala/vala.inc +0 -0
index d3daee37dc..90689662cb 100644
@@ -66,3 +66,6 @@ PACKAGE_PREPROCESS_FUNCS +=

"vala_package_preprocess"

meta/recipes-devtools/vala/vala.inc PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess"

Quoted 7 lines
meta/recipes-devtools/vala/vala.inc +0 -0
 vala_package_preprocess () {
    sed -i -e 's:${RECIPE_SYSROOT}::g;'

${PKGD}${bindir_crossscripts}/vapigen-wrapper
}

meta/recipes-devtools/vala/vala.inc +3 -0
+
+inherit multilib_script
+MULTILIB_SCRIPTS = "${PN}:${bindir}/crossscripts/vapigen-wrapper

${PN}:${bindir}/vala-gen-introspect-0.56"

This looks a bit odd since crossscripts wouldn't be installed on the target?

Also, when posting these kinds of changes, can you show a diff of the two files please?

Quoted 6 lines

Sometimes we can tweak the files so that they can become the same but it is hard to know without context.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177774): https://lists.openembedded.org/g/openembedded-core/message/177774
Mute This Topic: https://lists.openembedded.org/mt/97198850/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

RE: [OE-core] [PATCH 2/4] vala: Fix install conflict when enable multilib.

In reply to Richard Purdie

For the solution to this problem, can I delete this file from the target?

  --
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 49 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Richard Purdie
Sent: Friday, February 24, 2023 6:16 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH 2/4] vala: Fix install conflict when enable multilib.

Quoted 4 lines · wangmy

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/bin/vala-gen-introspect-0.56 conflicts between attempted installs

of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

meta/recipes-devtools/vala/vala.inc PACKAGE_PREPROCESS_FUNCS +=

Quoted 14 lines

file /usr/bin/vapigen-wrapper conflicts between attempted installs
of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

---
 meta/recipes-devtools/vala/vala.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/vala/vala.inc +0 -0
index d3daee37dc..90689662cb 100644
@@ -66,3 +66,6 @@ PACKAGE_PREPROCESS_FUNCS +=

"vala_package_preprocess"

meta/recipes-devtools/vala/vala.inc PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess"

Quoted 7 lines
meta/recipes-devtools/vala/vala.inc +0 -0
 vala_package_preprocess () {
 	sed -i -e 's:${RECIPE_SYSROOT}::g;'

${PKGD}${bindir_crossscripts}/vapigen-wrapper
}

meta/recipes-devtools/vala/vala.inc +3 -0
+
+inherit multilib_script
+MULTILIB_SCRIPTS = "${PN}:${bindir}/crossscripts/vapigen-wrapper

${PN}:${bindir}/vala-gen-introspect-0.56"

This looks a bit odd since crossscripts wouldn't be installed on the target?

Also, when posting these kinds of changes, can you show a diff of the two files please?

Sometimes we can tweak the files so that they can become the same but it is hard to know without context.

Cheers,

Richard

#6 lore raw

Re: [OE-core] [PATCH 2/4] vala: Fix install conflict when enable multilib.

Quoted 1 line · wangmy

For the solution to this problem, can I delete this file from the target?

This looks like a packaging or dependencies problem, so before you act, you need to investigate why these files get installed, and whether you need two multilib copies of them.

Alex

#7 lore raw

PATCH 3/4 bash: Fix install conflict when enable multilib.

In reply to [email protected]

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/bin/bashbug conflicts between attempted installs of lib32-bash-bashbug-5.2.15-r0.armv7ahf_neon and bash-bashbug-5.2.15-r0.aarch64

---
 meta/recipes-extended/bash/bash_5.2.15.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-extended/bash/bash_5.2.15.bb +3 -0
index f78f79fcc5..ce81496f52 100644
@@ -20,3 +20,6 @@ DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb
 DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}"
 
 BBCLASSEXTEND = "nativesdk"
+
+inherit multilib_script
+MULTILIB_SCRIPTS = "${PN}-bashbug:${bindir}/bashbug"
Signature · 1 line
2.34.1
#8 lore raw

PATCH 4/4 vala: Fix install conflict when enable multilib.

In reply to [email protected]

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/bin/padsp conflicts between attempted installs of lib32-pulseaudio-misc-16.1-r0.armv7ahf_neon and pulseaudio-misc-16.1-r0.aarch64

---
 meta/recipes-multimedia/pulseaudio/pulseaudio_16.1.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-multimedia/pulseaudio/pulseaudio_16.1.bb +3 -0
index 64002cd1cc..686ffe9203 100644
@@ -8,3 +8,6 @@ SRC_URI = "http://freedesktop.org/software/pulseaudio/releases/${BP}.tar.xz \
            "
 SRC_URI[sha256sum] = "8eef32ce91d47979f95fd9a935e738cd7eb7463430dabc72863251751e504ae4"
 UPSTREAM_CHECK_REGEX = "pulseaudio-(?P<pver>\d+(\.(?!99)\d+)+)\.tar"
+
+inherit multilib_script
+MULTILIB_SCRIPTS = "${PN}-misc:${bindir}/padsp"
Signature · 1 line
2.34.1