diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-02-25 19:05:53 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-02-25 19:06:31 +0100 |
commit | 68cb4ce3f7fb86d7f70bdfa9b596eae19aa02a61 (patch) | |
tree | 12b54490d77de0978caa17c298d47496091ee69e /ubuntu/_base/libraries/pytdeextensions | |
parent | 1c56b8cc5af0bae3410e406fa62e643765662ae2 (diff) | |
download | tde-packaging-68cb4ce3f7fb86d7f70bdfa9b596eae19aa02a61.tar.gz tde-packaging-68cb4ce3f7fb86d7f70bdfa9b596eae19aa02a61.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>
(cherry picked from commit 94d173946594dc70145f855204f412314d5c02f2)
Diffstat (limited to 'ubuntu/_base/libraries/pytdeextensions')
-rwxr-xr-x | ubuntu/_base/libraries/pytdeextensions/debian/rules | 6 |
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" |