From 41709353b0082a035bd5ac773cc7b30eb9d51f68 Mon Sep 17 00:00:00 2001 From: Yixun Lan Date: Tue, 5 Jul 2016 17:09:01 +0800 Subject: 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(+) create mode 100644 sys-process/criu/files/2.3/criu-2.3-aarch64.patch diff --git a/sys-process/criu/criu-2.3.ebuild b/sys-process/criu/criu-2.3.ebuild index d67ab0785488..faf66edb4a00 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 000000000000..e857b6a1aa2b --- /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 -- cgit v1.2.3-65-gdbad