summaryrefslogtreecommitdiffstats
path: root/dilos/libraries/pytdeextensions/debian/rules
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-03-08 16:11:17 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-03-08 16:16:32 +0100
commit1e12346c7bedc68c31e802951a412938f1c7bf15 (patch)
tree0b9cec1f230eb148eea665d054386020521408cb /dilos/libraries/pytdeextensions/debian/rules
parent497f5bb9614f2b189261333b284df1408dd30841 (diff)
downloadtde-packaging-1e12346c7bedc68c31e802951a412938f1c7bf15.tar.gz
tde-packaging-1e12346c7bedc68c31e802951a412938f1c7bf15.zip
DEB pytdeextensions: Make sure that python binary exists for packages that still depend on python2.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 02bd2a08c3866fb62de6fc0a7a96739d6927d8c1)
Diffstat (limited to 'dilos/libraries/pytdeextensions/debian/rules')
-rwxr-xr-xdilos/libraries/pytdeextensions/debian/rules6
1 files changed, 6 insertions, 0 deletions
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"