From 92043690b2f029f2a7834464ac08e544800dbb38 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 30 Jun 2018 20:22:13 +0200 Subject: [PATCH] Revert "Seafile client stack: switch to python3 (#138)" This reverts commit b5559b7bf11bd7c55552bd0148ac7b7339869072. Broken. --- srcpkgs/ccnet/patches/python3-syntax.patch | 22 ---------------------- srcpkgs/ccnet/template | 6 +++--- srcpkgs/libsearpc/template | 11 ++++------- srcpkgs/seafile-libclient/template | 9 ++++----- 4 files changed, 11 insertions(+), 37 deletions(-) delete mode 100644 srcpkgs/ccnet/patches/python3-syntax.patch diff --git a/srcpkgs/ccnet/patches/python3-syntax.patch b/srcpkgs/ccnet/patches/python3-syntax.patch deleted file mode 100644 index 91bb0f5fd3..0000000000 --- a/srcpkgs/ccnet/patches/python3-syntax.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- python/ccnet/packet.py.ORIG -+++ python/ccnet/packet.py -@@ -72,7 +72,7 @@ - def parse_header(buf): - try: - ver, ptype, length, id = struct.unpack(CCNET_HEADER_FORMAT, buf) -- except struct.error, e: -+ except struct.error as e: - raise NetworkError('error when unpack packet header: %s' % e) - - return PacketHeader(ver, ptype, length, id) ---- python/ccnet/async/async_client.py.ORIG -+++ python/ccnet/async/async_client.py -@@ -26,7 +26,7 @@ - ] - - def debug_print(msg): -- print msg -+ print(msg) - - class AsyncClient(Client): - '''Async mode client''' diff --git a/srcpkgs/ccnet/template b/srcpkgs/ccnet/template index c47660a37f..cf05bbcc4c 100644 --- a/srcpkgs/ccnet/template +++ b/srcpkgs/ccnet/template @@ -1,7 +1,7 @@ # Template file for 'ccnet' pkgname=ccnet version=6.1.8 -revision=2 +revision=1 build_style=gnu-configure configure_args="--disable-static" hostmakedepends="automake libsearpc-codegen libtool pkg-config vala" @@ -37,8 +37,8 @@ ccnet-python_package() { noarch=yes pycompile_module="ccnet" depends="ccnet" - short_desc="Python3 bindings" + short_desc="Python2 bindings" pkg_install() { - vmove ${py3_lib} + vmove usr/lib/python2.7 } } diff --git a/srcpkgs/libsearpc/template b/srcpkgs/libsearpc/template index 15d8db0027..76a3764d84 100644 --- a/srcpkgs/libsearpc/template +++ b/srcpkgs/libsearpc/template @@ -1,15 +1,12 @@ # Template file for 'libsearpc' pkgname=libsearpc -version=3.0.8 +version=3.0.7 revision=1 -_tagversion=3.1-latest -wrksrc="${pkgname}-${_tagversion}" build_style=gnu-configure configure_args="--disable-static --disable-compile-demo" -hostmakedepends="automake libtool pkg-config python3" +hostmakedepends="automake libtool pkg-config python" makedepends="glib-devel jansson-devel" -python_version=3 -pycompile_module="pysearpc" + short_desc="Seafile RPC library" maintainer="yopito " license="GPL-3" @@ -38,7 +35,7 @@ libsearpc-devel_package() { libsearpc-codegen_package() { short_desc+=" - code generator" - depends="python3" + depends="python" noarch=yes pkg_install() { vdoc "AUTHORS" diff --git a/srcpkgs/seafile-libclient/template b/srcpkgs/seafile-libclient/template index e0e0620ece..bdee5ee804 100644 --- a/srcpkgs/seafile-libclient/template +++ b/srcpkgs/seafile-libclient/template @@ -1,15 +1,14 @@ # Template file for 'seafile-libclient' pkgname=seafile-libclient version=6.1.8 -revision=2 +revision=1 _distname="${pkgname/-libclient/}" wrksrc="${_distname}-${version}" build_style=gnu-configure configure_args="--disable-static" hostmakedepends="automake intltool libsearpc-codegen libtool pkg-config vala" makedepends="ccnet-devel libcurl-devel" -depends="python3" -pycompile_module="seafile" +depends="python" short_desc="Cloud storage system - client command-line and libraries" maintainer="yopito " license="GPL-2.0-or-later" # Has openssl exception not yet present on SPDX @@ -22,8 +21,8 @@ pre_configure() { } post_install() { - # remove server stuff - rm -rf ${DESTDIR}${py3_sitelib}/searserv + # remove server files + rm -rf "${DESTDIR}/usr/lib/python2.7/site-packages/seaserv" vdoc README.markdown }