#1109729 painintheapt relies on deprecated slixmpp 'process' API that has been removed in trixie

#1109729#5
Date:
2025-07-22 15:39:59 UTC
From:
To:
Dear Maintainer,

Running painintheapt on trixie (or bookworm-backports) fails with the
following error:

  # painintheapt -t
  Using slower stringprep, consider using cargo to build the faster version in rust.
  'JabberBot' object has no attribute 'process'

Upon investigation, the JabberBot object is a slixmpp.ClientXMPP from
the python3-slixmpp package.

Within the source package for slixmpp, the following documentation is
found in docs/howto/remove_process.rst:

At the end of this document are a few examples of how to migrate the
code.  I'll give them a try a hopefully submit a patch.

#1109729#10
Date:
2025-07-22 16:30:23 UTC
From:
To:
Attached patch gets the command working again (verified XMPP messages
are received), however it outputs some noise.  Maybe it needs a task
queue with a sleep.

  # painintheapt -t
  Using slower stringprep, consider using cargo to build the faster version in rust.
  Task was destroyed but it is pending!
  task: <Task pending name='Task-1' coro=<XMLStream.run_filters() done, defined at /usr/lib/python3/dist-packages/slixmpp/xmlstream/xmlstream.py:1265> wait_for=<Future cancelled>>

#1109729#17
Date:
2025-07-23 02:57:41 UTC
From:
To:
Another patch fixing the aforementioned warnings.  My guess is that
slixmpp has a task queue of filters, activated due to painintheapt's
enablement of pubsub and other XEP's.

Tested on both bookworm-backports and trixie.

#1109729#22
Date:
2025-07-23 08:21:20 UTC
From:
To:
Justification: "makes the package in question unusable by most users"

Dear Gerald,

many thanks for your patches!
I'll try to get the fix into trixie.

Cheers

#1109729#29
Date:
2025-07-24 21:20:50 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
painintheapt, 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 1109729@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin <debacle@debian.org> (supplier of updated painintheapt 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: Thu, 24 Jul 2025 20:39:48 +0000
Source: painintheapt
Architecture: source
Version: 0.20220226-4
Distribution: unstable
Urgency: medium
Maintainer: Debian XMPP Maintainers <pkg-xmpp-devel@lists.alioth.debian.org>
Changed-By: Martin <debacle@debian.org>
Closes: 1109729
Changes:
 painintheapt (0.20220226-4) unstable; urgency=medium
 .
   * Add patch by Gerald Turner <gturner@unzane.com> to fix compatibility
     with slixmpp 1.9.0 (Closes: #1109729)
Checksums-Sha1:
 420cb9f25c178043dbc2d32ab9e4c019bd44f733 2321 painintheapt_0.20220226-4.dsc
 abe1bed599f147a878894dfc012d5fc1b3dc19ad 13556 painintheapt_0.20220226-4.debian.tar.xz
 78c4d717a0bb4d7683b5db9e04063b1c48e508bf 65588 painintheapt_0.20220226-4.git.tar.xz
 c56dce53efa59484240cd13addd8a9d9831f86a0 18092 painintheapt_0.20220226-4_source.buildinfo
Checksums-Sha256:
 19af06ffa65437990eab80f354ba485f5747448c86f282ceeb2aec44095598d6 2321 painintheapt_0.20220226-4.dsc
 eb54bec989f8acd1d3da0e8961af385a6ea6f43b8fb04b3617bde1be8561eadc 13556 painintheapt_0.20220226-4.debian.tar.xz
 9ca533c84d560b27300f75e8967cae95d17fc7abe825fe5ec1ac10e0d01e8169 65588 painintheapt_0.20220226-4.git.tar.xz
 29baae58e10af6de7be70b6d12c884115073c9abfeb48e5ff4315169351736bf 18092 painintheapt_0.20220226-4_source.buildinfo
Files:
 9d275e222ea4fb6d37fe9d5bf5de9f59 2321 admin optional painintheapt_0.20220226-4.dsc
 1d9cdb15ef02b0a2842bf6b764480774 13556 admin optional painintheapt_0.20220226-4.debian.tar.xz
 82c014179ecd3ad15bb59519f7fe83ac 65588 admin optional painintheapt_0.20220226-4.git.tar.xz
 26856d89cec6f571baaf53a33377fcf0 18092 admin optional painintheapt_0.20220226-4_source.buildinfo
Git-Tag-Info: tag=1cd927e47ff18be1b66e5916ee1408e0bef00754 fp=9fdad37b09f913b996aa86adb490e3df337f3213
Git-Tag-Tagger: Martin <debacle@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmiCno0ACgkQYG0ITkaD
wHm5vg/+Jw1KBww0f/gj63DK9rhPOEkojtDtFitdLrXFC9muQTkrwXR+f3lVvgC4
XFE1FxX8V7k/AOjmnEoxyE/jtf7IhFeYd+V5+ASghYIrQfecQGkRadwpeLX2abOn
lfIeHjl6c4QnH2sPxEj5Ku2CE/UBjrN5YgmK3k7ruMX6dhtw3kaCifokRJ8U0RYz
WYdkkUD5z3EPI2ON0oMIUsKAiR0Jjtsd1c9UMiLQD9H57Z5ejDQ3RSOuG76Jcjr+
hcCMdJpNG/s+0gcFcFQmWTzqJAbxzDTPzwVi9Of533M/xZ5LnwDWUaCMAhcv4slW
yDkxyOyOT95b+3BD0SYk5u2oh8Xh9+NY3vvVqtCV618Y+IqmGaqJmVsQnjp+XbE7
nZZMEOROsvApHp4H7QafbwILmb9zb1ntouWFfXmsP3rMKSlv/J7es00mVUcHo7ps
/1PWG9k0BT0Ao0oLtF2uCm/M4UL7Ljk7l+tgWJh6GiMS1hXs84k/8d8UFsDay1R1
UidEPb41H9JvJ0ysVfBFos16lWVcHzJBeDpEZYpNA3E4IZoTF53KMTzGyRsdR2dr
5dPQgh72HOqznPvowH4Bi94ShCYm08B+sG97GbgLFSxfTNin92msMzUuLABs7c9o
RvlVqR7bCbmFTHTvCZklPEwhLrs3OznEweVWbaUluo17oZoYX9Q=
=8ko1
-----END PGP SIGNATURE-----