FTBFS: no default /usr/bin/python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uwsgi-plugin-php (Ubuntu) |
Fix Released
|
High
|
Andreas Hasenack |
Bug Description
uwsgi-plugin-php is silently failing to build the php plugin:
$ uwsgi --build-plugin /usr/src/
$ echo $?
1
strace shows it searching for "python" in many different places, and giving up:
29616 execve(
29616 execve(
29616 execve(
...
Looking at the uwsgi src, we see:
core/plugins_
...
// now run the python script
char *argv[6];
argv[0] = getenv("PYTHON");
if (!argv[0]) argv[0] = "python";
Therefore, I suggest this fix for uswgi-plugin-php:
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_
dh $@ --with uwsgi
override_
- uwsgi --build-plugin /usr/src/
+ PYTHON=python3 uwsgi --build-plugin /usr/src/
help2man \
Related branches
- Bryce Harrington (community): Approve
- Canonical Server MOTU reviewers: Pending requested
-
Diff: 42 lines (+10/-2)3 files modifieddebian/changelog (+7/-0)
debian/control (+2/-1)
debian/rules (+1/-1)
This bug was fixed in the package uwsgi-plugin-php - 0.0.4ubuntu1
---------------
uwsgi-plugin-php (0.0.4ubuntu1) focal; urgency=medium
* d/rules: be explicit about the python interpreter we want the
plugin builder to use (LP: #1866693)
-- Andreas Hasenack <email address hidden> Mon, 09 Mar 2020 19:29:10 +0000