Public bug reported:
The debian/rules for building python3.11+ have a bug that is preventing
the build flags from being properly set. This affects all current
python3.11+ releases. When building the python packages, the following
error occurs:
/bin/bash: --get (file not found)
Here is a patch that fixes the debian build rules:
diff --git a/debian/rules b/debian/rules
index 311cfdc7bcf..afb30b23b11 100755
--- a/debian/rules
+++ b/debian/rules
@@ -79,7 +79,7 @@ derivative := $(shell \
else echo Unknown; fi)
dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS="hardening=-pie $(DPKG_OPTIMIZE)"
dpkg-buildflags
-dpkg_pieflags = DEB_BUILD_MAINT_OPTIONS="hardening=-pie
$(DPKG_OPTIMIZE)"dpkg-buildflags
+dpkg_pieflags = DEB_BUILD_MAINT_OPTIONS="hardening=-pie $(DPKG_OPTIMIZE)"
dpkg-buildflags
ifeq (,$(filter $(distrelease),stretch buster bullseye trusty xenial bionic
focal impish))
with_nopie := yes
dpkg_pieflags = DEB_BUILD_MAINT_OPTIONS="hardening=-pie $(DPKG_OPTIMIZE)"
dpkg-buildflags
** Affects: python3.11 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2127735
Title:
python debian/rules not setting flags
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.11/+bug/2127735/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs