From a83e3baf45b2fd48a75b608858bc36848394924b Mon Sep 17 00:00:00 2001 From: Leo Date: Sat, 20 Jul 2019 19:59:35 -0300 Subject: testing/criu: switch to py3 --- testing/criu/APKBUILD | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'testing/criu') 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 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/ } -- cgit v1.2.3