#1144994 pyqt5: FTBFS building against python 3.15

Package:
src:pyqt5
Source:
src:pyqt5
Submitter:
Maximiliano Curia
Date:
2026-08-23 21:55:02 UTC
Severity:
normal
Tags:
#1144994#5
Date:
2026-08-21 09:37:13 UTC
From:
To:
Package: src:pyqt5
Version: 5.15.11+dfsg-5
User: debian-python@lists.debian.org
Usertags: python3.15
Tags: patch

Hi!

While rebuilding the python related packages against the python version
3.15rc1 we found that pyqt5 fails to build from source[1]. This is due
to the removal of PyWeakref_GetObject which was deprecated in python
3.13. I'm attaching a patch that's almost identical to the one needed
for pyqt6.

Please consider applying this or a similar patch in your next upload.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/1017822/

#1144994#10
Date:
2026-08-22 21:55:52 UTC
From:
To:
Hello,

Bug #1144994 in pyqt5 reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/pyqt5/-/commit/3c4143a175f16c151bd7a4b40944d868a1c1ba4a
------------------------------------------------------------------------
Backport upstream patch to support Python 3.15.

Closes: #1144994.
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1144994

#1144994#17
Date:
2026-08-23 21:53:33 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pyqt5, 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 1144994@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Shachnev <mitya57@debian.org> (supplier of updated pyqt5 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 24 Aug 2026 00:28:42 +0300
Source: pyqt5
Architecture: source
Version: 5.15.11+dfsg-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Dmitry Shachnev <mitya57@debian.org>
Closes: 1144994
Changes:
 pyqt5 (5.15.11+dfsg-6) unstable; urgency=medium
 .
   * Backport upstream patch to support Python 3.15 (closes: #1144994).
   * Update extension suffixes for SIP 6.16.1.
   * Update to debhelper compat level 14.
     - Remove explicit ${*:Depends} declarations.
   * Override ‘pyqt5-dev: python-package-missing-depends-on-python’ error.
Checksums-Sha1:
 28d3bf66284d7ce2028c8c350c81002f8f285d41 3490 pyqt5_5.15.11+dfsg-6.dsc
 b0adf8ffa035d6b32d1a54ad95e91adef27edeb9 18864 pyqt5_5.15.11+dfsg-6.debian.tar.xz
 dd7954227080cc98e7753782b3919e1c162e059c 15644 pyqt5_5.15.11+dfsg-6_source.buildinfo
Checksums-Sha256:
 b9cf5cf6dc0341515069cd5058bff3d6507e1762393eda88cb77b94c0d075a7e 3490 pyqt5_5.15.11+dfsg-6.dsc
 2e267fa020c7fdd5c463f461e36aa855980d8eb51a625c5107d4d166679126fd 18864 pyqt5_5.15.11+dfsg-6.debian.tar.xz
 3ee6337fd946afa7c2ac422a297c9a1cd37d9109f6be6b740c119062afc8a9f1 15644 pyqt5_5.15.11+dfsg-6_source.buildinfo
Files:
 6e74e22081c9145c901463a8fa69aa89 3490 python optional pyqt5_5.15.11+dfsg-6.dsc
 f978f4d69d7e265474e89a8c6efc11ad 18864 python optional pyqt5_5.15.11+dfsg-6.debian.tar.xz
 bf0e57a73970e813c2dedb4406d7f020 15644 python optional pyqt5_5.15.11+dfsg-6_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEE8kKZ/xu8kBi5BqTLYCaTbS8ciuAFAmqLZpETHG1pdHlhNTdA
ZGViaWFuLm9yZwAKCRBgJpNtLxyK4PnlEACaaaMgMtNmRRjdarlkGHzujKv19drZ
/2UVC/NwZFmkbnoM+U/5NNAteZPu0LSScOtfFjKMNJzLgKCRXMIwKhrucWUc1WDl
Q2HCGPRwDpTHEw0VP3lpY8rXXFsYGElBw1JlUpy3zZoQCjsIP4HmJICmzFnwvF9w
cRpm2tl1P35av815Qa/u/itJ1GLS+mM6Z5fFsFo5H0tJp+ZliEGJ+UNa3lYxlFZh
mDcm+yAlSnnA9mHLl574FNqGxY8PNTO/v8towSAj2NoQcoB6hWFvjTsgLJ8Ai2+F
45ns2wU/li9PxC5p5Rdt5Ako4ZSvMpZDWQkhQ2WNbcgx4VtllNkn4adIrHP5ru+k
i3BGkm9HBKf+gouLfZ64Z1x+Yqpa17Y7OgKTNUSB4bhhUeMzF6ZsUr3TH6gY2TsV
nq/71kpJbjKp0viYQ40AuCItX38jF8vPzEjGN518l2CPWvibabsjSA3SmUb0Aq2a
IGAP649mSjoNKJIWc7szvw9zcgm+be2i7f46fEQuh+C5czOxMbs3FNtr9vq0wBiQ
0T08XGBzLU3EjBmaZt+w4JK7QEp6GZRCtufoHo4rtO3E5TjacPery7eFuVb63/Tl
CfHWw1mEwWtN+Jqs7DGFzd+Uxb/g4yeTOs6V3S3bzL9GyDacJyGxUhsseYM2ZgQF
w3GbyizLBE1mtQ==
=AZcd
-----END PGP SIGNATURE-----