sys-process/criu: revert to ARCH=aarch64
authorYixun Lan <dlan@gentoo.org>
Tue, 5 Jul 2016 09:09:01 +0000 (17:09 +0800)
committerYixun Lan <dlan@gentoo.org>
Tue, 5 Jul 2016 09:10:03 +0000 (17:10 +0800)
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
sys-process/criu/files/2.3/criu-2.3-aarch64.patch [new file with mode: 0644]

index d67ab0785488e2c38f814277dd0f5038ef66ce31..faf66edb4a009485257ef4858e181458ef586925 100644 (file)
@@ -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 (file)
index 0000000..e857b6a
--- /dev/null
@@ -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