Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package runc for openSUSE:Factory checked in 
at 2021-04-27 21:34:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/runc (Old)
 and      /work/SRC/openSUSE:Factory/.runc.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "runc"

Tue Apr 27 21:34:09 2021 rev:36 rq:888385 version:1.0.0~rc93

Changes:
--------
--- /work/SRC/openSUSE:Factory/runc/runc.changes        2021-04-21 
20:59:00.914165037 +0200
+++ /work/SRC/openSUSE:Factory/.runc.new.12324/runc.changes     2021-04-27 
21:34:11.147936741 +0200
@@ -1,0 +2,6 @@
+Mon Apr 26 07:54:54 UTC 2021 - Aleksa Sarai <asa...@suse.com>
+
+- Backport patch to fix build on SLE-12 ppc64le.
+  + 0001-cloned_binary-switch-from-error-to-warning-for-SYS_m.patch
+
+-------------------------------------------------------------------

New:
----
  0001-cloned_binary-switch-from-error-to-warning-for-SYS_m.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ runc.spec ++++++
--- /var/tmp/diff_new_pack.betXNw/_old  2021-04-27 21:34:11.583937458 +0200
+++ /var/tmp/diff_new_pack.betXNw/_new  2021-04-27 21:34:11.587937465 +0200
@@ -36,6 +36,10 @@
 Source1:        
https://github.com/opencontainers/runc/releases/download/v%{_version}/runc.tar.xz.asc#/runc-%{_version}.tar.xz.asc
 Source2:        runc.keyring
 Source3:        runc-rpmlintrc
+# SUSE-FIX: SLE-12 has too old a glibc for memfd_create(2) and __ppc64__
+#           doesn't appear to match ppc64le for some reason. This is a backport
+#           of <https://github.com/opencontainers/runc/pull/2919>.
+Patch1:         0001-cloned_binary-switch-from-error-to-warning-for-SYS_m.patch
 BuildRequires:  fdupes
 BuildRequires:  go-go-md2man
 # Due to a limitation in openSUSE's Go packaging we cannot have a BuildRequires
@@ -69,6 +73,8 @@
 
 %prep
 %setup -q -n %{name}-%{_version}
+# fix build on SLE-12 ppc64le
+%patch1 -p1
 
 %build
 # build runc

++++++ 0001-cloned_binary-switch-from-error-to-warning-for-SYS_m.patch ++++++
>From dd7444d3bba4ae2e461b41026f5f37416d7ee158 Mon Sep 17 00:00:00 2001
From: Aleksa Sarai <asa...@suse.de>
Date: Mon, 26 Apr 2021 17:41:29 +1000
Subject: [PATCH] cloned_binary: switch from #error to #warning for
 SYS_memfd_create hardcode

We shouldn't refuse to build on architectures just because we don't know
what the syscall number of memfd_create(2) is. In addition, use the
correct defined(...) macros for ppc64 (these are the ones glibc uses).

Fixes: 3aead32ea246 ("nsenter: hard-code memfd_create(2) syscall numbers")
Signed-off-by: Aleksa Sarai <asa...@suse.de>
---
 libcontainer/nsenter/cloned_binary.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcontainer/nsenter/cloned_binary.c 
b/libcontainer/nsenter/cloned_binary.c
index 2667cd65c293..b78000fec317 100644
--- a/libcontainer/nsenter/cloned_binary.c
+++ b/libcontainer/nsenter/cloned_binary.c
@@ -75,12 +75,12 @@
 #      define SYS_memfd_create 385
 #    elif defined(__aarch64__) // arm64
 #      define SYS_memfd_create 279
-#    elif defined(__ppc__) || defined(__ppc64__) // ppc + ppc64
+#    elif defined(__ppc__) || defined(__PPC64__) || defined(__powerpc64__) // 
ppc + ppc64
 #      define SYS_memfd_create 360
 #    elif defined(__s390__) || defined(__s390x__) // s390(x)
 #      define SYS_memfd_create 350
 #    else
-#      error "unknown architecture -- cannot hard-code SYS_memfd_create"
+#      warning "unknown architecture -- cannot hard-code SYS_memfd_create"
 #    endif
 #  endif
 #endif
-- 
2.31.1

Reply via email to