Skip to contentSkip to conversation

Update COMPATIBLE_HOST

PATCH In review [email protected] 2 participants 6 messages Sep 14, 2023 – Sep 15, 2023

lore
Share & tools
lore
#0 lore raw

v2 cover Update COMPATIBLE_HOST

From: Kai Kang <[email protected]>

tested with

$ for m in qemuriscv32 qemuriscv64 qemumips qemux86; do
	  MACHINE=$m bitbake -n world
  done

Kai Kang (4):
packagegroup-container: not compatible with mips and riscv
docker-compose: not compatible with mips
packagegroup-kubernetes: set COMPATIBLE_HOST
k3s: not compatible with mips

 recipes-containers/docker-compose/docker-compose_git.bb | 2 ++
 recipes-containers/k3s/k3s_git.bb                       | 2 ++
 recipes-core/packagegroups/packagegroup-container.bb    | 2 +-
 recipes-core/packagegroups/packagegroup-kubernetes.bb   | 2 +-
 4 files changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/4 packagegroup-container: not compatible with mips and riscv

From: Kai Kang <[email protected]>

The recipe docker-moby which is required by packagegroup-container is not compatible with mips. And it inherits goarch.bbclass, so it is not compatible with riscv32 too. Update COMPATIBLE_HOST accordingly for packagegroup-container.

---
 recipes-core/packagegroups/packagegroup-container.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/packagegroups/packagegroup-container.bb +1 -1
index c41576a3..38a64637 100644
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 inherit packagegroup
 
-COMPATIBLE_HOST:riscv64 = "null"
+COMPATIBLE_HOST = "^(?!(mips|riscv)).*"
 
 PACKAGES = "\
     packagegroup-container \
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/4 docker-compose: not compatible with mips

In reply to [email protected]

From: Kai Kang <[email protected]>

docker-compose rdepends on docker which is not compatible with mips. So set COMPATIBLE_HOST for docker-compose accordingly.

---
 recipes-containers/docker-compose/docker-compose_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-containers/docker-compose/docker-compose_git.bb +2 -0
index ca50abad..274fb520 100644
@@ -32,6 +32,8 @@ COMPOSE_PKG = "github.com/docker/compose/v2"
 inherit go goarch
 inherit pkgconfig
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 do_configure[noexec] = "1"
 
 PACKAGECONFIG ?= ""
Signature · 1 line
2.34.1
#3 lore raw

PATCH v2 3/4 packagegroup-kubernetes: set COMPATIBLE_HOST

In reply to [email protected]

From: Kai Kang <[email protected]>

packagegroup-kubernetes requires kubernetes which is only compatible with x86_64, arm and aarch64, so set COMPATIBLE_HOST for packagegroup-kubernetes to align with it.

---
 recipes-core/packagegroups/packagegroup-kubernetes.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/packagegroups/packagegroup-kubernetes.bb +1 -1
index 7e6937b1..d518fc15 100644
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 inherit packagegroup
 
-COMPATIBLE_HOST:riscv64 = "null"
+COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
 
 # k3s has this restriction
 inherit features_check
Signature · 1 line
2.34.1
#4 lore raw

PATCH v2 4/4 k3s: not compatible with mips

In reply to [email protected]

From: Kai Kang <[email protected]>

k3s depends on 'virtual-containerd' provided by containerd-opencontainers which is not compatible with mips. So set COMPATIBLE_HOST for k3s that not compatible with mips to align with containerd-opencontainers.

---
 recipes-containers/k3s/k3s_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-containers/k3s/k3s_git.bb +2 -0
index 9a8ff8b7..90718e98 100644
@@ -30,6 +30,8 @@ inherit goarch
 inherit systemd
 inherit cni_networking
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 PACKAGECONFIG = ""
 PACKAGECONFIG[upx] = ",,upx-native"
 GO_IMPORT = "import"
Signature · 1 line
2.34.1
#5 lore raw
In reply to [email protected]

merged.

Bruce

Quoted 32 lines · Kai Kang

From: Kai Kang <[email protected]>

tested with

$ for m in qemuriscv32 qemuriscv64 qemumips qemux86; do
          MACHINE=$m bitbake -n world
  done

Kai Kang (4):
packagegroup-container: not compatible with mips and riscv
docker-compose: not compatible with mips
packagegroup-kubernetes: set COMPATIBLE_HOST
k3s: not compatible with mips

 recipes-containers/docker-compose/docker-compose_git.bb | 2 ++
 recipes-containers/k3s/k3s_git.bb                       | 2 ++
 recipes-core/packagegroups/packagegroup-container.bb    | 2 +-
 recipes-core/packagegroups/packagegroup-kubernetes.bb   | 2 +-
 4 files changed, 6 insertions(+), 2 deletions(-)

--
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8305): https://lists.yoctoproject.org/g/meta-virtualization/message/8305
Mute This Topic: https://lists.yoctoproject.org/mt/101354132/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II