[pkg-uWSGI-devel] Bug#959577: uwsgi-plugin-php: FTBFS: make[1]: *** [debian/rules:29: override_dh_auto_build] Error 1

Alexandre Rossi niol at zincube.net
Mon May 25 11:40:44 BST 2020


tag 959577 patch
thanks

Hi,

> Relevant part (hopefully):
> >  debian/rules build
> > dh build --with uwsgi
> > dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> >    dh_update_autotools_config
> >    debian/rules override_dh_auto_build
> > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > uwsgi --build-plugin /usr/src/uwsgi/plugins/php
> > make[1]: *** [debian/rules:29: override_dh_auto_build] Error 1

The following patch fixes the problem.

Thanks,

Alex


commit f3fc84b5e9c73d3cda24306df62cb334cb5d33f7 (HEAD -> master)
Author: Alexandre Rossi <alexandre.rossi at gmail.com>
Date:   Mon May 25 12:27:32 2020 +0200

    enable build with python3 (Closes: #959577)

diff --git a/debian/control b/debian/control
index 5e6a58a..22d9309 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends:
  libphp-embed | libphp5-embed,
  uwsgi-dev,
  uwsgi-src,
+ python3-distutils,
 Standards-Version: 4.4.0
 Homepage: https://uwsgi-docs.readthedocs.io/en/latest/
 Vcs-Git: https://salsa.debian.org/uwsgi-team/uwsgi-plugin-php.git
diff --git a/debian/rules b/debian/rules
index a426234..885381e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,7 @@ OUR_BINARY_VERSION = $(subst -,+,$(UWSGI_VERSION))+$(DEB_VERSION)
        dh $@ --with uwsgi

 override_dh_auto_build:
-       uwsgi --build-plugin /usr/src/uwsgi/plugins/php
+       PYTHON=python3 uwsgi --build-plugin /usr/src/uwsgi/plugins/php
        help2man \
                --name 'fast (pure C), self-healing, developer-friendly WSGI server' \
                --section 1 \



More information about the pkg-uWSGI-devel mailing list