From 68cb4ce3f7fb86d7f70bdfa9b596eae19aa02a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 25 Feb 2020 19:05:53 +0100 Subject: DEB: 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 (cherry picked from commit 94d173946594dc70145f855204f412314d5c02f2) --- debian/_base/applications/tde-guidance/debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debian/_base/applications/tde-guidance') diff --git a/debian/_base/applications/tde-guidance/debian/rules b/debian/_base/applications/tde-guidance/debian/rules index b4a195a5c..0cbf1123b 100755 --- a/debian/_base/applications/tde-guidance/debian/rules +++ b/debian/_base/applications/tde-guidance/debian/rules @@ -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 \ -- cgit v1.2.3