meta-virtualization.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [meta-virtualization][master][walnascar][PATCH]  packagegroup-container: fix do_package_wrte_rpm issue in multilib build
@ 2025-07-15  7:13 peng.zhang1.cn
  2025-07-16 18:48 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: peng.zhang1.cn @ 2025-07-15  7:13 UTC (permalink / raw)
  To: meta-virtualization

From: Zhang Peng <peng.zhang1.cn@windriver.com>

When build lib32-packagegroup-container, the follwing error occurred:

ERROR: lib32-packagegroup-container-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't
depend on packages which are dynamically renamed (lib32-ipset-dbg to ipset-dbg)
ERROR: lib32-packagegroup-container-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't
depend on packages which are dynamically renamed (lib32-ipset to ipset)
ERROR: lib32-packagegroup-container-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't
depend on packages which are dynamically renamed (lib32-ipset-dev to ipset-dev)

To resolve this issue in a multilib build, set PACKAGE_ARCH appropriately to avoid using allarch.

Signed-off-by: Zhang Peng <peng.zhang1.cn@windriver.com>
---
 recipes-core/packagegroups/packagegroup-container.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-core/packagegroups/packagegroup-container.bb b/recipes-core/packagegroups/packagegroup-container.bb
index f5e20344..b94e6799 100644
--- a/recipes-core/packagegroups/packagegroup-container.bb
+++ b/recipes-core/packagegroups/packagegroup-container.bb
@@ -2,6 +2,8 @@ SUMMARY = "All packages for container host"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 inherit packagegroup
 
 COMPATIBLE_HOST = "^(?!(mips|riscv)).*"
-- 
2.50.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-virtualization][master][walnascar][PATCH] packagegroup-container: fix do_package_wrte_rpm issue in multilib build
  2025-07-15  7:13 [meta-virtualization][master][walnascar][PATCH] packagegroup-container: fix do_package_wrte_rpm issue in multilib build peng.zhang1.cn
@ 2025-07-16 18:48 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2025-07-16 18:48 UTC (permalink / raw)
  To: peng.zhang1.cn; +Cc: meta-virtualization

merged.

Bruce

In message: [meta-virtualization][master][walnascar][PATCH] packagegroup-container: fix do_package_wrte_rpm issue in multilib build
on 15/07/2025 Zhang, Peng (Paul) (CN) via lists.yoctoproject.org wrote:

> From: Zhang Peng <peng.zhang1.cn@windriver.com>
> 
> When build lib32-packagegroup-container, the follwing error occurred:
> 
> ERROR: lib32-packagegroup-container-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't
> depend on packages which are dynamically renamed (lib32-ipset-dbg to ipset-dbg)
> ERROR: lib32-packagegroup-container-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't
> depend on packages which are dynamically renamed (lib32-ipset to ipset)
> ERROR: lib32-packagegroup-container-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't
> depend on packages which are dynamically renamed (lib32-ipset-dev to ipset-dev)
> 
> To resolve this issue in a multilib build, set PACKAGE_ARCH appropriately to avoid using allarch.
> 
> Signed-off-by: Zhang Peng <peng.zhang1.cn@windriver.com>
> ---
>  recipes-core/packagegroups/packagegroup-container.bb | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/recipes-core/packagegroups/packagegroup-container.bb b/recipes-core/packagegroups/packagegroup-container.bb
> index f5e20344..b94e6799 100644
> --- a/recipes-core/packagegroups/packagegroup-container.bb
> +++ b/recipes-core/packagegroups/packagegroup-container.bb
> @@ -2,6 +2,8 @@ SUMMARY = "All packages for container host"
>  LICENSE = "MIT"
>  LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
>  
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
>  inherit packagegroup
>  
>  COMPATIBLE_HOST = "^(?!(mips|riscv)).*"
> -- 
> 2.50.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#9308): https://lists.yoctoproject.org/g/meta-virtualization/message/9308
> Mute This Topic: https://lists.yoctoproject.org/mt/114162900/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-16 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15  7:13 [meta-virtualization][master][walnascar][PATCH] packagegroup-container: fix do_package_wrte_rpm issue in multilib build peng.zhang1.cn
2025-07-16 18:48 ` Bruce Ashfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).