Bug#1027398: gavodachs: autopkgtest needs update for new version of python-cryptography: fails to install

2023-01-08 Thread Stefano Rivera
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 
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%s)?\s*"
 			r"(?P%s)?\s*"
 			r"(?P%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(')')


Bug#1027398: gavodachs: autopkgtest needs update for new version of python-cryptography: fails to install

2023-01-03 Thread Paul Gevers

Hi,

On 03-01-2023 11:34, Markus Demleitner wrote:

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?


Well, you can reassign the bug (to either or both packages) and add an 
affects.


Paul


OpenPGP_signature
Description: OpenPGP digital signature


Bug#1027398: gavodachs: autopkgtest needs update for new version of python-cryptography: fails to install

2023-01-03 Thread Markus Demleitner
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?



Bug#1027398: gavodachs: autopkgtest needs update for new version of python-cryptography: fails to install

2022-12-30 Thread Paul Gevers

Source: gavodachs
Version: 2.7+dfsg-1
Severity: serious
X-Debbugs-CC: python-cryptogra...@packages.debian.org
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
Control: affects -1 src:python-cryptography

Dear maintainer(s),

With a recent upload of python-cryptography the autopkgtest of gavodachs 
fails in testing when that autopkgtest is run with the binary packages 
of python-cryptography from unstable. It passes when run with only 
packages from testing. In tabular form:


   passfail
python-cryptographyfrom testing38.0.4-1
gavodachs  from testing2.7+dfsg-1
all others from testingfrom testing

I copied some of the output at the bottom of this report. 
gavodachs2-server fails to install.


Currently this regression is blocking the migration of 
python-cryptography to testing [1]. Of course, python-cryptography 
shouldn't just break your autopkgtest (or even worse, your package), but 
it seems to me that the change in python-cryptography was intended and 
your package needs to update to the new situation.


If this is a real problem in your package (and not only in your 
autopkgtest), the right binary package(s) from python-cryptography 
should really add a versioned Breaks on the unfixed version of (one of 
your) package(s). Note: the Breaks is nice even if the issue is only in 
the autopkgtest as it helps the migration software to figure out the 
right versions to combine in the tests.


More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=python-cryptography

https://ci.debian.net/data/autopkgtest/testing/amd64/g/gavodachs/29784808/log.gz

Setting up python3-docutils (0.17.1+dfsg-3) ...
Setting up python3-gavo-utils (2.7+dfsg-1) ...
Setting up python3-gavo-stc (2.7+dfsg-1) ...
Setting up python3-gavo-votable (2.7+dfsg-1) ...
Setting up python3-gavo (2.7+dfsg-1) ...
Setting up gavodachs2-server (2.7+dfsg-1) ...
Created symlink 
/etc/systemd/system/multi-user.target.wants/dachs.service → 
/lib/systemd/system/dachs.service.

Adding group `gavo' (GID 1001) ...
Done.
adduser: Warning: The home dir /nonexistent you specified can't be 
accessed: No such file or directory

Adding system user `gavo' (UID 103) ...
Adding new user `gavo' (UID 103) with group `gavo' ...
Not creating home directory `/nonexistent'.
Adding user `dachsroot' ...
Adding new user `dachsroot' (1002) with group `gavo (1001)' ...
Creating home directory `/home/dachsroot' ...
Copying files from `/etc/skel' ...
Adding new user `dachsroot' to supplemental / extra groups `users' ...
Adding user `dachsroot' to group `users' ...
*** Error: Oops.  Unhandled exception AttributeError.

Exception payload: module 'lib' has no attribute
'SSL_CTX_set_ecdh_auto'
dpkg: error processing package gavodachs2-server (--configure):
 installed gavodachs2-server package post-installation script 
subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of autopkgtest-satdep:
 autopkgtest-satdep depends on gavodachs2-server; however:
  Package gavodachs2-server is not configured yet.

dpkg: error processing package autopkgtest-satdep (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 gavodachs2-server
 autopkgtest-satdep
E: Sub-process /usr/bin/dpkg returned an error code (1)


OpenPGP_signature
Description: OpenPGP digital signature