From 02bd2a08c3866fb62de6fc0a7a96739d6927d8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 8 Mar 2020 16:11:17 +0100 Subject: DEB pytdeextensions: Make sure that python binary exists for packages that still depend on python2. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- dilos/libraries/pytdeextensions/debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dilos/libraries') diff --git a/dilos/libraries/pytdeextensions/debian/rules b/dilos/libraries/pytdeextensions/debian/rules index 16ae7b8bb..fe8947bec 100755 --- a/dilos/libraries/pytdeextensions/debian/rules +++ b/dilos/libraries/pytdeextensions/debian/rules @@ -33,6 +33,12 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/usr --with-extra-libs=/usr/lib/$(DEB_HOST DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ && echo xz || echo bzip2) +post-patches:: + # make sure that python binary exists + # since the existing code is still dependent on python2 + # and cdbs uses python as the default binary name + test -x /usr/bin/python || ln -s python2 /usr/bin/python + install/pytdeextensions-trinity:: # We have no idea if the built product is site-packages or dist-packages cd debian/tmp/usr/lib/python*/ && mv site-packages/ dist-packages/ || echo "site-packages --> dist-packages" -- cgit v1.2.1