Bug 1900668
Summary: | mailman3 fails to build with Python 3.10: OSError: [Errno 9] Bad file descriptor | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | mailman3 | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 35 | CC: | aurelien, infra-sig, mhroncok, ngompa13, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | mailman3-3.3.4-5.fc35 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-09-24 20:32:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1948945, 1968971, 1968996 | ||
Bug Blocks: | 1890881, 1891954, 1927309, 1927313, 1992484 |
Description
Tomáš Hrnčiar
2020-11-23 13:56:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34. This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/ The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build. This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component. *** Bug 1960659 has been marked as a duplicate of this bug. *** Dear Maintainer, your package has an open Fails To Build From Source bug for Fedora 35. Action is required from you. If you can fix your package to build, perform a build in koji, and either create an update in bodhi, or close this bug without creating an update, if updating is not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to acknowledge this. If you have already fixed this issue, please close this Bugzilla report. Following the policy for such packages [2], your package will be orphaned if this bug remains in NEW state more than 8 weeks (not sooner than 2021-01-18). A week before the mass branching of Fedora 36 according to the schedule [3], any packages not successfully rebuilt at least on Fedora 34 will be retired regardless of the status of this bug. [1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/ [2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/ [3] https://fedorapeople.org/groups/schedule/f-36/f-36-key-tasks.html Blocked on aiosmtpd... This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle. Changing version to 35. There are currently 2 test errors/failures: ====================================================================== ERROR: LayerSuite ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mailman-3.3.4/src/mailman/testing/layers.py", line 297, in setUp cls.smtpd.start() File "/builddir/build/BUILD/mailman-3.3.4/src/mailman/testing/mta.py", line 177, in start super().start() File "/usr/lib/python3.10/site-packages/aiosmtpd/controller.py", line 288, in start self._trigger_server() File "/usr/lib/python3.10/site-packages/aiosmtpd/controller.py", line 481, in _trigger_server InetMixin._trigger_server(self) File "/usr/lib/python3.10/site-packages/aiosmtpd/controller.py", line 428, in _trigger_server s = stk.enter_context(self.ssl_context.wrap_socket(s)) File "/usr/lib64/python3.10/ssl.py", line 512, in wrap_socket return self.sslsocket_class._create( File "/usr/lib64/python3.10/ssl.py", line 1061, in _create self._sslobj = self._context._wrap_socket( ssl.SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:801) ====================================================================== FAIL: test_interact_default_banner (mailman.utilities.tests.test_interact.TestInteract) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mailman-3.3.4/src/mailman/utilities/tests/test_interact.py", line 71, in test_interact_default_banner self.assertEqual(stderr[0], banner.splitlines()[0]) AssertionError: 'Pyth[34 chars], 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)] on linux' != 'Pyth[34 chars], 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)] on linux ' - Python 3.10.0rc1 (default, Aug 3 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)] on linux + Python 3.10.0rc1 (default, Aug 3 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)] on linux ? + ---------------------------------------------------------------------- Ran 2009 tests in 169.016s The test_interact_default_banner failure is just a missing space. I have no idea if that is severe, bu adapting the test not to expect the space at the end is trivial: def test_interact_default_banner(self): self._enter(hackenv('PYTHONSTARTUP', None)) interact() stderr = self._stderr.getvalue().splitlines() banner = 'Python {} on {} '.format(sys.version, sys.platform) # <--- remove the trailing space here self.assertEqual(stderr[0], banner.splitlines()[0]) The SSLError is actually a problem in aiosmtpd. Is seems to try to wrap a client socket in a server context. No idea what for, but adding a check not to do that into /usr/lib/python3.10/site-packages/aiosmtpd/controller.py like this: def _trigger_server(self): ... with ExitStack() as stk: s = stk.enter_context(create_connection((hostname, self.port), 1.0)) if self.ssl_context and self.ssl_context.protocol != ssl.PROTOCOL_TLS_SERVER: # <-- added the second part of this conditonal s = stk.enter_context(self.ssl_context.wrap_socket(s)) s.recv(1024) Makes the tests pass. FEDORA-2021-1eb02fcffb has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1eb02fcffb Hello, Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok). All subpackages of a package against which this bug was filled are now installable or removed from Fedora 36. Thanks for taking care of it! FEDORA-2021-1eb02fcffb has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |