commit:     41709353b0082a035bd5ac773cc7b30eb9d51f68
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  5 09:09:01 2016 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Tue Jul  5 09:10:03 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41709353

sys-process/criu: revert to ARCH=aarch64

upstream try to parse ARCH=arm64, but internally still using ARCH=aarch64

Package-Manager: portage-2.3.0_rc1

 sys-process/criu/criu-2.3.ebuild                  |  2 ++
 sys-process/criu/files/2.3/criu-2.3-aarch64.patch | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/sys-process/criu/criu-2.3.ebuild b/sys-process/criu/criu-2.3.ebuild
index d67ab07..faf66ed 100644
--- a/sys-process/criu/criu-2.3.ebuild
+++ b/sys-process/criu/criu-2.3.ebuild
@@ -41,12 +41,14 @@ PATCHES=(
        "${FILESDIR}"/${PV}/${P}-no-git.patch
        "${FILESDIR}"/2.0/${PN}-2.0-automagic-libbsd.patch
        "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch
+       "${FILESDIR}"/${PV}/${P}-aarch64.patch
 )
 
 criu_arch() {
        # criu infers the arch from $(uname -m).  We never want this to happen.
        case ${ARCH} in
        amd64) echo "x86";;
+       arm64) echo "aarch64";;
        *)     echo "${ARCH}";;
        esac
 }

diff --git a/sys-process/criu/files/2.3/criu-2.3-aarch64.patch 
b/sys-process/criu/files/2.3/criu-2.3-aarch64.patch
new file mode 100644
index 0000000..e857b6a
--- /dev/null
+++ b/sys-process/criu/files/2.3/criu-2.3-aarch64.patch
@@ -0,0 +1,22 @@
+diff --git a/Makefile b/Makefile
+index 0e2636b..ef8f78b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -25,7 +25,7 @@ export SRC_DIR
+ 
+ #
+ # Architecture specific options.
+-ifneq ($(filter-out x86 arm arm64 ppc64,$(ARCH)),)
++ifneq ($(filter-out x86 arm aarch64 ppc64,$(ARCH)),)
+         $(error "The architecture $(ARCH) isn't supported")
+ endif
+ 
+@@ -39,7 +39,7 @@ ifeq ($(ARCH),arm)
+         SRCARCH               := arm
+ endif
+ 
+-ifeq ($(ARCH),arm64)
++ifeq ($(ARCH),aarch64)
+         ARCH          := aarch64
+         SRCARCH               := aarch64
+         VDSO          := y

Reply via email to