Your message dated Fri, 20 Jan 2023 08:41:09 +0000
with message-id <e1pimxr-001pgk...@fasolo.debian.org>
and subject line Bug#1028513: fixed in dovecot 1:2.3.19.1+dfsg1-2.1
has caused the Debian Bug report #1028513,
regarding dovecot: autopkgtest failure with python3.11
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1028513: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028513
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: dovecot
Version: 1:2.3.19.1+dfsg1-2
Severity: serious
Tags: patch
Justification: autopkgtest failure
Dear Maintainer,
The autopkgtest for your package fails with python3.11 because the crypt module
is deprecated:
autopkgtest [17:21:34]: test testmails: [-----------------------
/tmp/autopkgtest-lxc.pzurscq6/downtmp/build.WWw/src/debian/tests/testmails:3:
DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
import crypt
test_imap (__main__.DovecotBasics.test_imap)
Test IMAP4 protocol. ... ok
test_imaps (__main__.DovecotBasics.test_imaps)
Test IMAP4S protocol. ... ok
test_pop3 (__main__.DovecotBasics.test_pop3)
Test POP3 protocol. ... ok
test_pop3s (__main__.DovecotBasics.test_pop3s)
Test POP3S protocol. ... ok
----------------------------------------------------------------------
Ran 4 tests in 78.337s
OK
autopkgtest [17:22:53]: test testmails: -----------------------]
autopkgtest [17:22:53]: test testmails: - - - - - - - - - - results - - - - -
- - - - -
testmails FAIL stderr:
/tmp/autopkgtest-lxc.pzurscq6/downtmp/build.WWw/src/debian/tests/testmails:3:
DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
autopkgtest [17:22:53]: test testmails: - - - - - - - - - - stderr - - - - -
- - - - -
/tmp/autopkgtest-lxc.pzurscq6/downtmp/build.WWw/src/debian/tests/testmails:3:
DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
import crypt
autopkgtest [17:22:53]: @@@@@@@@@@@@@@@@@@@@ summary
doveadm PASS
systemd PASS
command1 PASS
testmails FAIL stderr:
/tmp/autopkgtest-lxc.pzurscq6/downtmp/build.WWw/src/debian/tests/testmails:3:
DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
The attached patch resolves the issue by using python3-passlib which has a pure
Python implemention to fall back on when the crypt module is not available.
Kind Regards,
Bas
>From b02ebc95e735a488c6a71b2f68774dd7332d16ff Mon Sep 17 00:00:00 2001
From: Bas Couwenberg <sebas...@debian.org>
Date: Thu, 12 Jan 2023 08:04:19 +0100
Subject: Don't use deprecated crypt module.
---
debian/tests/control | 2 +-
debian/tests/testmails | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/tests/control b/debian/tests/control
index 106e5d04a..496cfcc0b 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -11,4 +11,4 @@ Restrictions: needs-root, breaks-testbed, allow-stderr
Tests: testmails
Restrictions: needs-root, breaks-testbed
-Depends: dovecot-imapd, dovecot-pop3d, lsb-release, python3
+Depends: dovecot-imapd, dovecot-pop3d, lsb-release, python3, python3-passlib
diff --git a/debian/tests/testmails b/debian/tests/testmails
index 71ae3caab..3329809b5 100755
--- a/debian/tests/testmails
+++ b/debian/tests/testmails
@@ -1,6 +1,5 @@
#!/usr/bin/python3
-import crypt
import grp
import imaplib
import os
@@ -13,6 +12,8 @@ import subprocess
import sys
import unittest
+from passlib.hash import des_crypt
+
def random_string(length):
'''Return a random string, consisting of ASCII letters, with given
@@ -57,7 +58,7 @@ class TestUser:
self.salt = random_string(2)
self.password = random_string(8)
- self.crypted = crypt.crypt(self.password, self.salt)
+ self.crypted = des_crypt.using(salt=self.salt).hash(self.password)
subprocess.check_call(['useradd', '-p', self.crypted, '-m', login])
--
2.30.2
--- End Message ---
--- Begin Message ---
Source: dovecot
Source-Version: 1:2.3.19.1+dfsg1-2.1
Done: Bas Couwenberg <sebas...@debian.org>
We believe that the bug you reported is fixed in the latest version of
dovecot, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1028...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bas Couwenberg <sebas...@debian.org> (supplier of updated dovecot package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 20 Jan 2023 07:01:26 +0100
Source: dovecot
Architecture: source
Version: 1:2.3.19.1+dfsg1-2.1
Distribution: unstable
Urgency: medium
Maintainer: Dovecot Maintainers <dove...@packages.debian.org>
Changed-By: Bas Couwenberg <sebas...@debian.org>
Closes: 1028513
Changes:
dovecot (1:2.3.19.1+dfsg1-2.1) unstable; urgency=medium
.
* Non-maintainer upload.
* [b02ebc9] Don't use deprecated crypt module.
(closes: #1028513)
Checksums-Sha1:
147d6435b7582627656fec1e1b1d6c7b5ab0d35f 4166 dovecot_2.3.19.1+dfsg1-2.1.dsc
c310791e44b3010890d57feb0eb521b0639ce180 66624
dovecot_2.3.19.1+dfsg1-2.1.debian.tar.xz
0f36950ed05af1105134e20d636102f444ab9fe6 19008
dovecot_2.3.19.1+dfsg1-2.1_amd64.buildinfo
Checksums-Sha256:
6e55d7ce048a613f00562e32a51e19d6503c9da9ae5d34d5692cca636c518d2b 4166
dovecot_2.3.19.1+dfsg1-2.1.dsc
2a27eac3632cab2327d0aa685407252dfac171c44a2746402cd1ea0137bc4007 66624
dovecot_2.3.19.1+dfsg1-2.1.debian.tar.xz
df80642fd522f3682772512090f1c649276ededb11a5485b16e22967483f1bb0 19008
dovecot_2.3.19.1+dfsg1-2.1_amd64.buildinfo
Files:
c305facad2b3785986e470397df410f3 4166 mail optional
dovecot_2.3.19.1+dfsg1-2.1.dsc
d3ede72b4d2de199756b143f994c3857 66624 mail optional
dovecot_2.3.19.1+dfsg1-2.1.debian.tar.xz
9e5911929ea3e0391d7113d1cebcf1ef 19008 mail optional
dovecot_2.3.19.1+dfsg1-2.1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEgYLeQXBWQI1hRlDRZ1DxCuiNSvEFAmPKRegACgkQZ1DxCuiN
SvE3ww//cOIPDlaoxcwhD8C+sFUo0xaepX7vDq8Egu43W96LDO08cI76CpTcDoCl
w970dOHfG3/1N230PA989DCnva4c+NjOzYUsLkWZ6A1xk/eyGjUn54eKZR4eA04J
gQY2Xwds8iWeMNJxoEGEr6h6d50oF1YnDWu/2SC6mU8Wj4citsfc2o+z5Srr7fXo
Go2BBo/CRqibojPX+0o1zEJn0Xl6z/npcApZ6ml9+F82XveM1bV/WN5GDTc/pTY3
afyAiLteH/Lm3gVSw9aZT7CHd4kU0yBy6kWjBQ8Rc2Z8sVIQE/sUwsNRm3eRVYNu
lFkBBON/QR4E6orAYV8EmVIRqXwODYPFMBP0pPCSEnqr8c3hyS30cFr3GOjx1YfE
gMjSQU+fS+byTo/e9uUk7EDuMZgV8uS4UylaHETTi9K6Xzej18fxveCqWrzpdrys
eDI4jvJGxb+/y94PKTnbSd+RTxnfNGc+xktQi3uQFf6n7yfxT+bRFOW14bivJjst
OEBIW27V5TH1DzvsQf2oUuBufqvd0WjT4juZrsqS1N3306uNy4ZHXf5GY1HB8dVK
ybUcBHXrT1ow07OZIfKWTbI5EPq53MW/FwRih0f/hzncfHOgwr+Z187DBwhHkIDf
96NOzOOXUXJajZIx9Bpy9ewa/Nurc4ZbE08Wo+oxHJ+XQQ6OwfQ=
=/hQb
-----END PGP SIGNATURE-----
--- End Message ---