DEB: Make sure that python binary exists for packages that still depend on python2.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/37/head
Slávek Banko 4 years ago
parent 420078c628
commit 94d1739465
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -15,6 +15,12 @@ endif
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
binary-install/fusion-icon-trinity::
mkdir -p debian/fusion-icon-trinity/usr/local/lib
cp -Rp debian/fusion-icon-trinity/usr/local/* debian/fusion-icon-trinity/usr/

@ -25,6 +25,12 @@ LDFLAGS_APPEND := -L/opt/trinity/lib
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/tde-guidance-trinity::
# install icons to right place
install -D -p -m0644 $(DEB_DESTDIR)/opt/trinity/share/apps/guidance/pics/hi32-app-daemons.png \

@ -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"

@ -15,6 +15,12 @@ endif
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
binary-install/fusion-icon-trinity::
mkdir -p debian/fusion-icon-trinity/usr/local/lib
cp -Rp debian/fusion-icon-trinity/usr/local/* debian/fusion-icon-trinity/usr/

@ -25,6 +25,12 @@ LDFLAGS_APPEND := -L/opt/trinity/lib
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/tde-guidance-trinity::
# install icons to right place
install -D -p -m0644 $(DEB_DESTDIR)/opt/trinity/share/apps/guidance/pics/hi32-app-daemons.png \

@ -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"

Loading…
Cancel
Save