Skip to contentSkip to conversation

podman & umoci: mark incompatible with mips

PATCH Superseded [email protected] 2 participants 4 messages Oct 24, 2023 – Oct 25, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 podman & umoci: mark incompatible with mips

From: Kai Kang <[email protected]>

Since runtime dependency skopeo has been marked incompatible with mips, set for podman and umoci accordingly.

buildah and podman-tui rdepends on podman, so mark for them too.

---
 recipes-containers/buildah/buildah_git.bb       | 2 ++
 recipes-containers/podman-tui/podman-tui_git.bb | 2 ++
 recipes-containers/podman/podman_git.bb         | 2 ++
 recipes-containers/umoci/umoci_git.bb           | 2 ++
 4 files changed, 8 insertions(+)
recipes-containers/buildah/buildah_git.bb +2 -0
index 5155cbb1..ef1feead 100644
@@ -20,6 +20,8 @@ inherit pkgconfig
 inherit features_check
 REQUIRED_DISTRO_FEATURES = "seccomp ipv6"
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 GO_IMPORT = "github.com/containers/buildah"
 GO_INSTALL = "${GO_IMPORT}"
 GO_WORKDIR = "${GO_INSTALL}"
recipes-containers/podman-tui/podman-tui_git.bb +2 -0
index 1a40d0ec..0b1924f9 100644
@@ -41,6 +41,8 @@ PODMAN_PKG = "github.com/containers/podman-tui"
 inherit go goarch
 inherit pkgconfig
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 do_configure[noexec] = "1"
 
 BUILD_TAGS ?= "exclude_graphdriver_btrfs exclude_graphdriver_devicemapper"
recipes-containers/podman/podman_git.bb +2 -0
index dc80eb6c..3e9fec33 100644
@@ -9,6 +9,8 @@ DESCRIPTION = "Podman is a daemonless container engine for developing, \
 inherit features_check
 REQUIRED_DISTRO_FEATURES ?= "seccomp ipv6"
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 DEPENDS = " \
     go-metalinter-native \
     go-md2man-native \
recipes-containers/umoci/umoci_git.bb +2 -0
index feaf6dff..62b42b8e 100644
@@ -17,6 +17,8 @@ GO_IMPORT = "github.com/opencontainers/umoci"
 inherit goarch
 inherit go
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 # This disables seccomp and apparmor, which are on by default in the
 # go package. 
 EXTRA_OEMAKE="BUILDTAGS=''"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 runv: set COMPATIBLE_HOST

From: Kai Kang <[email protected]>

runv rdepends on qemu, so update COMPATIBLE_HOST for runv to accord with qemu.

---
 recipes-core/runv/runv_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)
recipes-core/runv/runv_git.bb +6 -0
index e5a5abd3..73cd81a6 100644
@@ -19,6 +19,12 @@ inherit goarch
 inherit pkgconfig
 inherit autotools-brokensep
 
+# accord with qemu
+COMPATIBLE_HOST:mipsarchn32 = "null"
+COMPATIBLE_HOST:mipsarchn64 = "null"
+COMPATIBLE_HOST:riscv32 = "null"
+COMPATIBLE_HOST:powerpc = "null"
+
 PACKAGECONFIG[xen] = "--with-xen,--without-xen,"
 AUTOTOOLS_SCRIPT_PATH = "${S}/src/import/"
 
Signature · 1 line
2.34.1
#2 lore raw
In reply to [email protected]

podman has already been marked as incompatible with mips on master.

Is your branch out of date, or did you miss where it was in the recipe ?

Bruce

Quoted 80 lines · Kai Kang

From: Kai Kang <[email protected]>

Since runtime dependency skopeo has been marked incompatible with mips, set for podman and umoci accordingly.

buildah and podman-tui rdepends on podman, so mark for them too.

---
 recipes-containers/buildah/buildah_git.bb       | 2 ++
 recipes-containers/podman-tui/podman-tui_git.bb | 2 ++
 recipes-containers/podman/podman_git.bb         | 2 ++
 recipes-containers/umoci/umoci_git.bb           | 2 ++
 4 files changed, 8 insertions(+)
recipes-containers/buildah/buildah_git.bb +2 -0
index 5155cbb1..ef1feead 100644
@@ -20,6 +20,8 @@ inherit pkgconfig
 inherit features_check
 REQUIRED_DISTRO_FEATURES = "seccomp ipv6"
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 GO_IMPORT = "github.com/containers/buildah"
 GO_INSTALL = "${GO_IMPORT}"
 GO_WORKDIR = "${GO_INSTALL}"
recipes-containers/podman-tui/podman-tui_git.bb +2 -0
index 1a40d0ec..0b1924f9 100644
@@ -41,6 +41,8 @@ PODMAN_PKG = "github.com/containers/podman-tui"
 inherit go goarch
 inherit pkgconfig
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 do_configure[noexec] = "1"
 
 BUILD_TAGS ?= "exclude_graphdriver_btrfs exclude_graphdriver_devicemapper"
recipes-containers/podman/podman_git.bb +2 -0
index dc80eb6c..3e9fec33 100644
@@ -9,6 +9,8 @@ DESCRIPTION = "Podman is a daemonless container engine for developing, \
 inherit features_check
 REQUIRED_DISTRO_FEATURES ?= "seccomp ipv6"
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 DEPENDS = " \
     go-metalinter-native \
     go-md2man-native \
recipes-containers/umoci/umoci_git.bb +2 -1
index feaf6dff..62b42b8e 100644
@@ -17,6 +17,8 @@ GO_IMPORT = "github.com/opencontainers/umoci"
 inherit goarch
 inherit go
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
 # This disables seccomp and apparmor, which are on by default in the
 # go package.
 EXTRA_OEMAKE="BUILDTAGS=''"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8386): https://lists.yoctoproject.org/g/meta-virtualization/message/8386
Mute This Topic: https://lists.yoctoproject.org/mt/102160041/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
author
#3 lore raw
Quoted 3 lines · Bruce Ashfield

podman has already been marked as incompatible with mips on master.

Is your branch out of date, or did you miss where it was in the recipe ?

There is a local podman recipe with specific version and causes the issue. When reproduce with Yocto & meta-virt, I didn't check the error messages carefully.

Sorry for inconvenience, v2 will be sent.

Regards,
Kai

Quoted 84 lines

Bruce

Quoted 79 lines · Kai Kang

From: Kai Kang <[email protected]>

Since runtime dependency skopeo has been marked incompatible with mips, set for podman and umoci accordingly.

buildah and podman-tui rdepends on podman, so mark for them too.

---
  recipes-containers/buildah/buildah_git.bb       | 2 ++
  recipes-containers/podman-tui/podman-tui_git.bb | 2 ++
  recipes-containers/podman/podman_git.bb         | 2 ++
  recipes-containers/umoci/umoci_git.bb           | 2 ++
  4 files changed, 8 insertions(+)
recipes-containers/buildah/buildah_git.bb +2 -0
index 5155cbb1..ef1feead 100644
@@ -20,6 +20,8 @@ inherit pkgconfig
  inherit features_check
  REQUIRED_DISTRO_FEATURES = "seccomp ipv6"
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
  GO_IMPORT = "github.com/containers/buildah"
  GO_INSTALL = "${GO_IMPORT}"
  GO_WORKDIR = "${GO_INSTALL}"
recipes-containers/podman-tui/podman-tui_git.bb +2 -0
index 1a40d0ec..0b1924f9 100644
@@ -41,6 +41,8 @@ PODMAN_PKG = "github.com/containers/podman-tui"
  inherit go goarch
  inherit pkgconfig
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
  do_configure[noexec] = "1"
 
  BUILD_TAGS ?= "exclude_graphdriver_btrfs exclude_graphdriver_devicemapper"
recipes-containers/podman/podman_git.bb +2 -0
index dc80eb6c..3e9fec33 100644
@@ -9,6 +9,8 @@ DESCRIPTION = "Podman is a daemonless container engine for developing, \
  inherit features_check
  REQUIRED_DISTRO_FEATURES ?= "seccomp ipv6"
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
  DEPENDS = " \
      go-metalinter-native \
      go-md2man-native \
recipes-containers/umoci/umoci_git.bb +2 -1
index feaf6dff..62b42b8e 100644
@@ -17,6 +17,8 @@ GO_IMPORT = "github.com/opencontainers/umoci"
  inherit goarch
  inherit go
 
+COMPATIBLE_HOST = "^(?!mips).*"
+
  # This disables seccomp and apparmor, which are on by default in the
  # go package.
  EXTRA_OEMAKE="BUILDTAGS=''"
--

2.34.1

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

Signature · 2 lines
Kai Kang
Wind River Linux