aboutsummaryrefslogtreecommitdiffstats
path: root/testing/criu
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-20 19:59:35 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-20 21:24:55 -0300
commita83e3baf45b2fd48a75b608858bc36848394924b (patch)
tree80b08e1b71cbd9efec0e240eb15cb00ee3136c78 /testing/criu
parentfab149c157a21cec320121d55c7bb478396033d6 (diff)
downloadaports-a83e3baf45b2fd48a75b608858bc36848394924b.tar.bz2
aports-a83e3baf45b2fd48a75b608858bc36848394924b.tar.xz
testing/criu: switch to py3
Diffstat (limited to 'testing/criu')
-rw-r--r--testing/criu/APKBUILD24
1 files changed, 12 insertions, 12 deletions
diff --git a/testing/criu/APKBUILD b/testing/criu/APKBUILD
index ed98aa0dc7..38b44ea3d5 100644
--- a/testing/criu/APKBUILD
+++ b/testing/criu/APKBUILD
@@ -2,40 +2,40 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=criu
pkgver=3.11
-pkgrel=0
+pkgrel=1
pkgdesc="Process tree checkpoint/restore utility"
url="https://criu.org"
arch="x86_64"
license="GPL-2.0-or-later LGPL-2.1-only"
-makedepends="asciidoc libaio-dev libcap-dev libnet-dev libnl3-dev
- perl protobuf-c-dev protobuf-dev py-protobuf python xmlto"
-checkdepends="py-yaml"
+makedepends="xmlto asciidoc python3 protobuf-c-dev libnet-dev libnl3-dev
+ protobuf-dev libcap-dev"
+checkdepends="py3-yaml"
options="!check" # https://github.com/checkpoint-restore/criu/issues/434
-subpackages="$pkgname-dev $pkgname-doc py-$pkgname:_py:noarch"
+subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/xemul/criu/archive/v$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$builddir"
# https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed
- export LDFLAGS=$(echo $LDFLAGS |sed 's|-Wl,--as-needed||')
+ export LDFLAGS=$(echo $LDFLAGS |sed 's|-Wl,--as-needed||') PYTHON=python3
make
}
check() {
- cd "$builddir"
make test
}
package() {
- cd "$builddir"
make PREFIX=/usr DESTDIR="$pkgdir" LIBDIR=/usr/lib install
rm "$pkgdir"/usr/libexec/criu/scripts/systemd-autofs-restart.sh
+ rm -f "$pkgdir"/usr/lib/*.a
}
_py() {
- pkgdesc="Python bindings for Criu"
- depends="python"
+ replaces="py-$pkgname" # Backwards compatibility
+ provides="py-${pkgname}=$pkgver-r$pkgrel" # Backwarwds compatibility
+
+ pkgdesc="Python3 bindings for Criu"
+ depends="python3 py3-protobuf"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}