Control: reassign -1 src:gavodachs
Control: tag -1 + patch

> On Fri, Dec 30, 2022 at 10:13:45PM +0100, Paul Gevers wrote:
> > *** Error: Oops.  Unhandled exception AttributeError.
> > 
> > Exception payload: module 'lib' has no attribute
> > 'SSL_CTX_set_ecdh_auto'
> 
> While DaCHS doesn't do a good job of communicating this, the
> regression is actually within python3-openssl and python3-twisted.
> There's a test case in python3-twisted that looks like it is
> exercising the failing code.  I have tried to locate a corresponding
> bug against twisted, but I have not been able to locate it.  Is there
> any action I should take to alert the maintainers of the two packages?

I think that was a misdiagnosis. I found that too, when looking for the
source. But, of course, those test cases aren't being run at import
time.

The real issue was in pyopenssl, which was also updated around the same
time, to include this patch:
https://github.com/pyca/pyopenssl/commit/c8fe4dd5e91b00a5817db283c6198ef7031da825

However, there is also a Python 3.11 incompatibility breaking the
autopkgtests. Patch attached.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272
From: Stefano Rivera <stefa...@debian.org>
Date: Sun, 8 Jan 2023 15:18:21 -0400
Subject: Don't repeat global inline flags in the middle of a regex

[bpo-47066]: As of Python 3.11, global inline flags (e.g. (?i)) can now
only be used at the start of regular expressions. Using them elsewhere
has been deprecated since Python 3.6.

Bug-Debian: https://bugs.debian.org/1027398
---
 gavo/stc/tapstc.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gavo/stc/tapstc.py b/gavo/stc/tapstc.py
index 0e3c206..e744508 100644
--- a/gavo/stc/tapstc.py
+++ b/gavo/stc/tapstc.py
@@ -225,7 +225,7 @@ def getSimpleSTCSParser():
 		frameRE = _makeRE(TAP_SYSTEMS)
 		refposRE = _makeRE(TAP_REFPOS)
 		flavorRE = _makeRE(TAP_FLAVORS)
-		systemRE = (r"(?i)\s*"
+		systemRE = (r"\s*"
 			r"(?P<frame>%s)?\s*"
 			r"(?P<refpos>%s)?\s*"
 			r"(?P<flavor>%s)?\s*")%(
@@ -238,7 +238,7 @@ def getSimpleSTCSParser():
 			+coordsRE)
 		simpleStatement.setName("STC-S geometry")
 		simpleStatement.addParseAction(lambda s,p,t: _makePgSphereInstance(t))
-		system = Regex(systemRE)
+		system = Regex("(?i)" + systemRE)
 		system.setName("STC-S system spec")
 		region = Forward()
 		notExpr = CaselessKeyword("NOT") + Suppress('(') + region + Suppress(')')

Reply via email to