Your message dated Wed, 05 Jun 2024 14:35:47 +0000
with message-id <[email protected]>
and subject line Bug#1072341: fixed in m2crypto 0.40.1-4
has caused the Debian Bug report #1072341,
regarding m2crypto: autopkgtests fail for armhf due to 64-bit time_t
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 [email protected]
immediately.)
--
1072341: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072341
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: m2crypto
Version: 0.40.1-3
Severity: normal
Tags: patch
Dear Maintainer,
autopkgtests at
https://ci.debian.net/packages/m/m2crypto/unstable/armhf/46685988/ are
failing for armhf due to the transition to 64-bit time_t.
I am attaching a patch that should fix this.
This was first noticed in
https://bugs.launchpad.net/ubuntu/+source/m2crypto/+bug/2059156
- Spyros
Description: Fix SSL timeout struct on 32-bit systems with 64-bit time_t
Author: Spyros Seimenis <[email protected]>
Bug: https://bugs.launchpad.net/ubuntu/+source/m2crypto/+bug/2059156
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- m2crypto-0.40.1.orig/src/M2Crypto/SSL/timeout.py
+++ m2crypto-0.40.1/src/M2Crypto/SSL/timeout.py
@@ -9,6 +9,7 @@ __all__ = ['DEFAULT_TIMEOUT', 'timeout',
import sys
import struct
+import platform
DEFAULT_TIMEOUT = 600 # type: int
@@ -25,7 +26,11 @@ class timeout(object):
millisec = int(self.sec * 1000 + round(float(self.microsec) / 1000))
binstr = struct.pack('l', millisec)
else:
- binstr = struct.pack('ll', self.sec, self.microsec)
+ if platform.machine() in ["i386", "i686"]:
+ binstr = struct.pack('ll', self.sec, self.microsec)
+ else:
+ binstr = struct.pack('qq', self.sec, self.microsec)
+
return binstr
@@ -38,7 +43,10 @@ def struct_to_timeout(binstr):
sec = int(millisec / 1000)
microsec = (millisec % 1000) * 1000
else:
- (sec, microsec) = struct.unpack('ll', binstr)
+ if platform.machine() in ["i386", "i686"]:
+ (sec, microsec) = struct.unpack('ll', binstr)
+ else:
+ (sec, microsec) = struct.unpack('qq', binstr)
return timeout(sec, microsec)
@@ -47,4 +55,7 @@ def struct_size():
if sys.platform == 'win32':
return struct.calcsize('l')
else:
- return struct.calcsize('ll')
+ if platform.machine() in ["i386", "i686"]:
+ return struct.calcsize('ll')
+ else:
+ return struct.calcsize('qq')
--- End Message ---
--- Begin Message ---
Source: m2crypto
Source-Version: 0.40.1-4
Done: Simon Quigley <[email protected]>
We believe that the bug you reported is fixed in the latest version of
m2crypto, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Simon Quigley <[email protected]> (supplier of updated m2crypto 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 05 Jun 2024 09:12:03 -0500
Source: m2crypto
Built-For-Profiles: noudeb
Architecture: source
Version: 0.40.1-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>,
Changed-By: Simon Quigley <[email protected]>
Closes: 1072341
Launchpad-Bugs-Fixed: 2059156
Changes:
m2crypto (0.40.1-4) unstable; urgency=medium
.
[ Simon Quigley ]
* QA upload (Closes: #1072341).
.
[ Spyros Seimenis ]
* debian/patches/fix-ssl-timeout-for-t64.patch: Fix SSL timeout struct
on 32-bit systems with 64-bit time_t. Closes LP: #2059156.
Checksums-Sha1:
56ff9c1889b23dde509accec0d43d0d04ba506b3 2267 m2crypto_0.40.1-4.dsc
c7947fb0f46d1bd397932bc9b1f88130e72d654b 59840 m2crypto_0.40.1-4.debian.tar.xz
d153f87034ae8a1ae259cd43b1cdf5c379b1db43 8846
m2crypto_0.40.1-4_source.buildinfo
Checksums-Sha256:
6bcadf6d48032d44d6d1c5f87594ae0a02b4915a9c15ceb94e5db3fd59090411 2267
m2crypto_0.40.1-4.dsc
e66a598ae559f9fc4ba2c0123988a5c3a1755cdcbb7b2bff7afc67a6a84a7208 59840
m2crypto_0.40.1-4.debian.tar.xz
1845700cb035de93bd48088bdc1081f445a7373dfbf2aef2961203f4b1968080 8846
m2crypto_0.40.1-4_source.buildinfo
Files:
a112dcc3406cd1282e23a43388dfbddc 2267 python optional m2crypto_0.40.1-4.dsc
ad3599b123096d36897965f6f1b7adf7 59840 python optional
m2crypto_0.40.1-4.debian.tar.xz
b2496e3febe109733bc27aa76f69202a 8846 python optional
m2crypto_0.40.1-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEXHq+og+GMEWcyMi14n8s+EWML6QFAmZgctQACgkQ4n8s+EWM
L6SCQRAAstX1uc1kR+Y7OXCbq73WguE16V/AFJ93P/+cKX2G0TJj0iG0wu+duxDM
h5o974XgHfCV6s3ef+cx8W4nuJeAY+n5zXmEL2N4nLqMvCMAx22KFG2/UTYIlNXr
a8+073PNMtq8ipSj2v4YRtAMgHL3pWM2SvvMVUrbFRuvtyKKc9NhNxFaUG4abaje
MVV0nAY1/ctgn60LBTeLWcCURSK11o/eZPgUNVTtsYHmJZZ7A3SP74jPzlraDbP5
N1aTmPCsoovhUBEWfMcLIgm1GiXSWqzUY5ZgeVWZq0IeTsuz4GkMpgfJ8mcXyZjq
MuzHxn85FoRBhVourk4mvUGw1YIL/BsAG0hkk+dbpmxQy2lmkwTpzuRipnXVUpVM
o6xswimIwcdte8dOdZU4vSESj/xW9KnldS8hky5+x6tfzqesEBVfMYv1JUBjGBno
OIzwiub4L6ut1juN10d6hyiKN1mxYGsTZjnrUbIiu/2XNx+NOgcOnKuay9CYhzM2
lQ+5lGYWJeXd9poyHGlZgO4TZ3iQhGpxisZYzoCpTUK74Z7YnMkw30aFJV2yHQO6
B2Ga/tc+lVnlbrBXfNKrM/WdCiCfJGSKpuAPIEmlPpRRjHvAP9+1fC0Co0R7brDC
caAEgw7bETtSRD7EmgqiTnWDQ/yN4y2ovwseD1zxnYaY5hPZWi8=
=Meb/
-----END PGP SIGNATURE-----
pgpmoRxDCnhxv.pgp
Description: PGP signature
--- End Message ---