On Sat, Feb 06, 2021 at 02:07:04PM +0200, Adrian Bunk wrote:
>...
> Not saying that generating control files would be wrong,
> either approach works.
>...

If it works...

https://buildd.debian.org/status/logs.php?pkg=nuitka&arch=all

...
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/bin/sh: 1: [: Illegal number: buildd-11
# The RUN_TEST_PYTHON is not the one to execute tests, just the for the
make[1]: pyversions: No such file or directory
# test runner.
python2 ./tests/run-tests --skip-reflection-test 
make[1]: python2: No such file or directory
make[1]: *** [debian/rules:47: override_dh_auto_test] Error 127



I've workarounded this with that attached debdiff.

cu
Adrian
diff -Nru nuitka-0.6.11.3+ds/debian/changelog 
nuitka-0.6.11.3+ds/debian/changelog
--- nuitka-0.6.11.3+ds/debian/changelog 2021-02-06 12:10:00.000000000 +0200
+++ nuitka-0.6.11.3+ds/debian/changelog 2021-02-06 14:41:23.000000000 +0200
@@ -1,3 +1,10 @@
+nuitka (0.6.11.3+ds-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/rules: Force Python 3 without autodetection.
+
+ -- Adrian Bunk <b...@debian.org>  Sat, 06 Feb 2021 14:41:23 +0200
+
 nuitka (0.6.11.3+ds-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru nuitka-0.6.11.3+ds/debian/rules nuitka-0.6.11.3+ds/debian/rules
--- nuitka-0.6.11.3+ds/debian/rules     2020-12-15 12:50:49.000000000 +0200
+++ nuitka-0.6.11.3+ds/debian/rules     2021-02-06 14:41:23.000000000 +0200
@@ -9,27 +9,27 @@
 
 # Do not use Python2 for Debian 11 or higher, need to find a way for Ubuntu
 # to cover, Debian 11 inheritance.
-DEB_VENDOR=$(shell dpkg-vendor --query vendor)
-ifeq ($(DEB_VENDOR), Debian)
-BUILD_ONLY_PYTHON3 := $(shell [ `lsb_release -r -s | sed -e s/unstable/11/ -e 
s/testing/11/ -e 's/\..*//'` -ge 11 ] && echo true)
-else ifeq ($(DEB_VENDOR), Ubuntu)
-BUILD_ONLY_PYTHON3 := $(shell [ `lsb_release -r -s | sed -e 's/\.//' ` -ge 
2004 ] && echo true)
-else
-BUILD_ONLY_PYTHON3 := false
-endif
-export BUILD_ONLY_PYTHON3
+#DEB_VENDOR=$(shell dpkg-vendor --query vendor)
+#ifeq ($(DEB_VENDOR), Debian)
+#BUILD_ONLY_PYTHON3 := $(shell [ `lsb_release -r -s | sed -e s/unstable/11/ -e 
s/testing/11/ -e 's/\..*//'` -ge 11 ] && echo true)
+#else ifeq ($(DEB_VENDOR), Ubuntu)
+#BUILD_ONLY_PYTHON3 := $(shell [ `lsb_release -r -s | sed -e 's/\.//' ` -ge 
2004 ] && echo true)
+#else
+#BUILD_ONLY_PYTHON3 := false
+#endif
+#export BUILD_ONLY_PYTHON3
 
-ifeq ($(BUILD_ONLY_PYTHON3),true)
+#ifeq ($(BUILD_ONLY_PYTHON3),true)
 export PYBUILD_VERSIONS = $(shell py3versions -vr)
 export BUILD_WITH_ARGUMENT = "python3"
 export RUN_TEST_OPTIONS = --no-python2.7 --no-python2.6
 export RUN_TEST_PYTHON = python3
-else
-export PYBUILD_VERSIONS = $(shell pyversions -vr) $(shell py3versions -vr)
-export BUILD_WITH_ARGUMENT = "python2,python3"
-export RUN_TEST_OPTIONS =
-export RUN_TEST_PYTHON = python2
-endif
+#else
+#export PYBUILD_VERSIONS = $(shell pyversions -vr) $(shell py3versions -vr)
+#export BUILD_WITH_ARGUMENT = "python2,python3"
+#export RUN_TEST_OPTIONS =
+#export RUN_TEST_PYTHON = python2
+#endif
 
 %:
        set -x

Reply via email to