summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/libraries
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-02-25 19:05:53 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-02-25 19:05:53 +0100
commit94d173946594dc70145f855204f412314d5c02f2 (patch)
tree4150d5d26c6e9b624820ab7bbc70dbe0f5318647 /ubuntu/_base/libraries
parent420078c628b77d0ffc28c8193c9e8d1eb7517026 (diff)
downloadtde-packaging-94d173946594dc70145f855204f412314d5c02f2.tar.gz
tde-packaging-94d173946594dc70145f855204f412314d5c02f2.zip
DEB: Make sure that python binary exists for packages that still depend on python2.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ubuntu/_base/libraries')
-rwxr-xr-xubuntu/_base/libraries/pytdeextensions/debian/rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/ubuntu/_base/libraries/pytdeextensions/debian/rules b/ubuntu/_base/libraries/pytdeextensions/debian/rules
index e4c433701..28a7627ba 100755
--- a/ubuntu/_base/libraries/pytdeextensions/debian/rules
+++ b/ubuntu/_base/libraries/pytdeextensions/debian/rules
@@ -29,6 +29,12 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/trinity --with-extra-libs=/opt/trinit
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"