[Python-modules-team] Bug#866575: libapache2-mod-wsgi-py3: Impossible depends when built with more then one supported python3 version
Bas Couwenberg
sebastic at xs4all.nl
Sat Jul 8 10:52:39 UTC 2017
Package: libapache2-mod-wsgi-py3
Version: 4.5.11-1
Followup-For: Bug #866575
Dear Maintainer,
The attached patch fixes this issue, but there are several other issues
with the package that should be fixed in the next upload too.
Kind Regards,
Bas
-------------- next part --------------
>From 4534ad18aaff225f87e7b3a33ec4ab3806e0f48b Mon Sep 17 00:00:00 2001
From: Bas Couwenberg <sebastic at debian.org>
Date: Sat, 8 Jul 2017 12:34:58 +0200
Subject: Fix min/max Python 3 version determination for multiple versions.
(closes: #866575)
---
debian/changelog | 8 ++++++++
debian/rules | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b398340..90e6bcc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mod-wsgi (4.5.11-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix min/max Python 3 version determination for multiple versions.
+ (closes: #866575)
+
+ -- Bas Couwenberg <sebastic at debian.org> Sat, 08 Jul 2017 12:33:46 +0200
+
mod-wsgi (4.5.11-1) unstable; urgency=medium
* [8d515a5] Merge tag 'upstream/4.5.11'
diff --git a/debian/rules b/debian/rules
index d39b22d..d536d9e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,8 +9,8 @@ PYMIN=$(shell echo $(PYVERS) | awk '{print $$1}')
PYMAX=$(shell echo $(PYVERS) | LANG=C awk '{print $$NF+0.1}')
PY3VERS=$(shell py3versions -vs)
PY3DEFAULT=$(shell py3versions -dv)
-PY3MIN=$(shell echo $(PY3VERS) | awk '{print $$1}')
-PY3MAX=$(shell echo $(PY3VERS) | LANG=C awk '{print $$NF+0.1}')
+PY3MIN=$(shell for VERSION in $(PY3VERS); do echo $$VERSION; done | sort | head -1)
+PY3MAX=$(shell for VERSION in $(PY3VERS); do echo $$VERSION; done | sort | tail -1 | LANG=C awk '{print $$NF+0.1}')
pkgdir = $(CURDIR)/debian/$(PACKAGE)$(if $(patsubst 3.%,,$(1)),,-py3)
%:
--
2.11.0
More information about the Python-modules-team
mailing list