Your message dated Sun, 27 Sep 2026 21:34:08 +0000
with message-id <[email protected]>
and subject line Bug#1148466: fixed in protobuf 3.21.12-17
has caused the Debian Bug report #1148466,
regarding protobuf: FTBFS due to the use of pkg_resources
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.)


-- 
1148466: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1148466
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:protobuf
Version: 3.21.12-16
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: serious

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that protobuf now fails to build from source due to
using pkg_resources [1].

I've used an upstream patch that relies on pkginfo and added patch that
uses packaging for parse_version. The last one should probably be
sent upstream.

I've applied the fix in the sandbox [2] to verify that it builds
successfully, please consider applying this patch together with the one
I reported in #1145000, to support the upcoming 3.15 version.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4341761/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
Description: Drop top-level pkg_resources import in setup.py
 In Python 3.15 / setuptools 84+, pkg_resources is no longer provided.
 Move the parse_version import inside the macOS-only branch where it is used
 and fall back to packaging.version.
Author: Maximiliano Curia <[email protected]>

Index: protobuf/python/setup.py
===================================================================
--- protobuf.orig/python/setup.py
+++ protobuf/python/setup.py
@@ -8,7 +8,6 @@ from distutils import util
 import fnmatch
 import glob
 import os
-import pkg_resources
 import re
 import subprocess
 import sys
@@ -270,8 +269,12 @@ if __name__ == '__main__':
     # deployment target of macOS 10.9 or later, or iOS 7 or later.
     if sys.platform == 'darwin':
       mac_target = str(sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET'))
-      if mac_target and (pkg_resources.parse_version(mac_target) <
-                         pkg_resources.parse_version('10.9.0')):
+      try:
+        from packaging.version import parse as parse_version
+      except ImportError:
+        from pkg_resources import parse_version
+      if mac_target and (parse_version(mac_target) <
+                         parse_version('10.9.0')):
         os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9'
         os.environ['_PYTHON_HOST_PLATFORM'] = re.sub(
             r'macosx-[0-9]+\.[0-9]+-(.+)', r'macosx-10.9-\1',
From 8351926380c7cc91aae6df5695c91426e209f958 Mon Sep 17 00:00:00 2001
From: Ge Yunxi <[email protected]>
Date: Fri, 11 Jul 2025 11:04:58 -0700
Subject: drop-deprecated-pkg-resources-declare (#22442)

# Description
As of setuptools 81, pkg_resources.declare_namespace has been marked as deprecated (scheduled to be removed after 2025-11-30) so I remove it from init.py

# Environment:
a virtual machine of arch riscv64

# procedure
I got this problem when running a test that applied this package.
```
src/certbot_dns_google/_internal/tests/dns_google_test.py:9: in <module>
    from google.auth import exceptions as googleauth_exceptions
/usr/lib/python3.13/site-packages/google/__init__.py:2: in <module>
    __import__('pkg_resources').declare_namespace(__name__)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/site-packages/pkg_resources/__init__.py:98: in <module>
    warnings.warn(
E   UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
```
[certbot-dns-google-4.1.1-1-riscv64-check.log](https://github.com/user-attachments/files/20976539/certbot-dns-google-4.1.1-1-riscv64-check.log)

Closes #22442

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/22442 from gyx47:patch-1 6aef5c9df150cce444910d224fe90b2a514c7868
PiperOrigin-RevId: 782041935
---
 python/google/__init__.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/python/google/__init__.py b/python/google/__init__.py
index 5585614122..b36383a610 100644
--- a/python/google/__init__.py
+++ b/python/google/__init__.py
@@ -1,4 +1,3 @@
-try:
-  __import__('pkg_resources').declare_namespace(__name__)
-except ImportError:
-  __path__ = __import__('pkgutil').extend_path(__path__, __name__)
+from pkgutil import extend_path
+
+__path__ = extend_path(__path__, __name__)
-- 

--- End Message ---
--- Begin Message ---
Source: protobuf
Source-Version: 3.21.12-17
Done: Laszlo Boszormenyi (GCS) <[email protected]>

We believe that the bug you reported is fixed in the latest version of
protobuf, 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.
Laszlo Boszormenyi (GCS) <[email protected]> (supplier of updated protobuf 
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: SHA512

Format: 1.8
Date: Sun, 27 Sep 2026 21:51:43 +0200
Source: protobuf
Architecture: source
Version: 3.21.12-17
Distribution: unstable
Urgency: medium
Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
Changed-By: Laszlo Boszormenyi (GCS) <[email protected]>
Closes: 1145000 1148466
Changes:
 protobuf (3.21.12-17) unstable; urgency=medium
 .
   [ Maximiliano Curia <[email protected]> ]
   * Fix FTBFS due to deprecated enum-enum conversion (closes: #1145000).
   * Fix FTBFS due to the use of pkg_resources (closes: #1148466).
Checksums-Sha1:
 7a43368f4d9b10c84c34e325e75f8b74de83ba4a 3070 protobuf_3.21.12-17.dsc
 e9cc6d087edcdf8e3f5d82367d0ed9b14941b60b 51120 
protobuf_3.21.12-17.debian.tar.xz
Checksums-Sha256:
 e1db40b3f3653e8538b65e67d8fcc2d3767eaf717d269cdc071a5d0d1cfd8a8d 3070 
protobuf_3.21.12-17.dsc
 e8f376db8113b7ccc3d66f8352ac3627ad8eba544876eb3158bbb87c7b6842b4 51120 
protobuf_3.21.12-17.debian.tar.xz
Files:
 98d26125159810ead1f51938f128e814 3070 devel optional protobuf_3.21.12-17.dsc
 e0b7626fe3c0c20ff347db49a2fddac3 51120 devel optional 
protobuf_3.21.12-17.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfYh9yLp7u6e4NeO63OMQ54ZMyL8FAmq5iRgACgkQ3OMQ54ZM
yL+pdA//amMFUQJpctlWiDS1r69KXIF6IlykkyfazJ5CEyFFDL5d6/58yR0U5use
rI/vXW6Lj08rR3i4+8dAhfaBucDNhO3pHpWi7C+wWRzYAfG4HIxOoDSIYXhil5fp
zR5zX7TKyBmVd8aIl/nOiNvDSrGjbQ3LeLNqeRpb/bJNtviVUzd0dDaFecsDKEuv
bm5ER2JWbu77+lURR1C6391poV2DKgqHWRsBq/4QQSF66Zze+VjTEb3/Qq4MNKgh
gR6WYQxHx6IXHOXXiSk7PVwP5ErpFejRpF9PdncQQoypXqiZNCIB6ESDqOaxEXfb
3Z787sMNy4pTnNepemqG+GDBFYre5cod0eXsOqIL/hUXt2mxztik1lC5wnTs3bKL
JLP9cZcCaUSMg/dC8G3KGEl3YDThb1pG+MniCSPZC2A0V0qIz2rebTiHzLbEAC+9
ztT/BshaVIIqEXhr41HVKe8XM1zEbMeq9ftibN/iMGNwfcgP8bsxoUO46nnAeyVz
TQRryNWmp0XUtvjNjA72HCQBmALk9hfzOqpRCfTYKX2L7m1SEpVKczZor7DzWXqj
3nOCxnf9eMBuRbE04HzUt4PazZITSSgi6wKSGF8IOcikGWU7dvltEd5u/AWtpfOo
D5lkJU3K8g4wEwcYxLa4+hGPBnygYsilduvVQJAzyYLzKcVHhtY=
=JuUG
-----END PGP SIGNATURE-----

Attachment: pgpWjl99A2iAM.pgp
Description: PGP signature


--- End Message ---

Reply via email to