Your message dated Wed, 30 Sep 2026 08:11:25 +0000
with message-id <[email protected]>
and subject line Bug#1148466: fixed in protobuf 36.2-1
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: 36.2-1
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 23:09:53 +0200
Source: protobuf
Binary: elpa-protobuf-mode libprotobuf-dev libprotobuf-java libprotobuf-lite36 
libprotobuf-lite36-dbgsym libprotobuf36 libprotobuf36-dbgsym libprotoc-dev 
libprotoc36 libprotoc36-dbgsym php-google-protobuf protobuf-compiler 
protobuf-compiler-dbgsym python3-protobuf ruby-google-protobuf 
ruby-google-protobuf-dbgsym
Architecture: source all amd64
Version: 36.2-1
Distribution: experimental
Urgency: medium
Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
Changed-By: Laszlo Boszormenyi (GCS) <[email protected]>
Description:
 elpa-protobuf-mode - Emacs addon for editing protocol buffers
 libprotobuf-dev - protocol buffers C++ library (development files) and proto 
files
 libprotobuf-java - Java bindings for protocol buffers
 libprotobuf-lite36 - protocol buffers C++ library (lite version)
 libprotobuf36 - protocol buffers C++ library
 libprotoc-dev - protocol buffers compiler library (development files)
 libprotoc36 - protocol buffers compiler library
 php-google-protobuf - PHP bindings for protocol buffers
 protobuf-compiler - compiler for protocol buffer definition files
 python3-protobuf - Python 3 bindings for protocol buffers
 ruby-google-protobuf - Protocol Buffers
Closes: 1145000 1148466
Changes:
 protobuf (36.2-1) experimental; urgency=medium
 .
   * New major upstream release:
     - no longer uses deprecated enum-enum conversion (closes: #1145000),
     - no longer uses deprecated pkg_resources (closes: #1148466).
Checksums-Sha1:
 2928b6f605b3c775326cf8cffae347ad6d2f59b2 3097 protobuf_36.2-1.dsc
 038b2f5052459e9525f7910d1cc938abc74c1811 7349015 protobuf_36.2.orig.tar.gz
 65578e9d4b5b964b20e4f606da1494bb64ce2a2c 39176 protobuf_36.2-1.debian.tar.xz
 9c607c509a3ae77be4826654ee5c0f735dc7f595 9144 elpa-protobuf-mode_36.2-1_all.deb
 76a1f505d2a7668aad7c3c0f73102f8ccdccd205 2640348 
libprotobuf-dev_36.2-1_amd64.deb
 e7a3a51b8cb49e20818b2a6eb04e7506cb4c8e18 1234944 
libprotobuf-java_4.36.2-1_all.deb
 e4c6d5911798795147fa17b5aff5bfd03466dc8e 4092240 
libprotobuf-lite36-dbgsym_36.2-1_amd64.deb
 9c04a74481f1fa68b05462b1f8253100e3eafb9e 309720 
libprotobuf-lite36_36.2-1_amd64.deb
 4820246c22056d8ac1af5f5cc482d5132cbfa095 25868060 
libprotobuf36-dbgsym_36.2-1_amd64.deb
 4f88cd4b69ee2cf1eb09bcc1f9f78cc209449706 1402704 libprotobuf36_36.2-1_amd64.deb
 8ae369dc84ce49f93cc34e4a695e6d23d0f7ddc5 2471796 libprotoc-dev_36.2-1_amd64.deb
 de7295b78689365c37bae173a4c184735526b795 57876472 
libprotoc36-dbgsym_36.2-1_amd64.deb
 45005dd3388364f88e8f833f299d1ae62d73f5eb 1707872 libprotoc36_36.2-1_amd64.deb
 4a4212b75a6784edfab27af5424a13bd44245d83 81476 
php-google-protobuf_5.36.2-1_all.deb
 75278736c0e3e2ce44ebcbb291363bbe72b23a44 8040356 
protobuf-compiler-dbgsym_36.2-1_amd64.deb
 dc92cd17bcbb6d0ddf436d5637ed0bee11be8ff8 328672 
protobuf-compiler_36.2-1_amd64.deb
 5cd6039cbdf107f45dbd5e896edfe3273924802b 21301 protobuf_36.2-1_amd64.buildinfo
 864d60218ff49e6fd79f42ca7827d14036e33d62 121936 
python3-protobuf_7.36.2-1_amd64.deb
 d4fee688de785cf52ae31577c17550aedf3c24f3 881324 
ruby-google-protobuf-dbgsym_4.36.2-1_amd64.deb
 3ac203a262f8c6cffb32879e6cd6ee27e8632044 180388 
ruby-google-protobuf_4.36.2-1_amd64.deb
Checksums-Sha256:
 e548a3f9b303b3680aa08d1fc48313ea9d2beb546536899ec41167dd45bae68f 3097 
protobuf_36.2-1.dsc
 7e7eaf580ec77f1a392ff1ab1013c13d3b04a6716f002f697f67f3c1113f0530 7349015 
protobuf_36.2.orig.tar.gz
 31657c938a688c28f572029d445c275faa2ccea4a36f2ccbe8cf1b1976c79902 39176 
protobuf_36.2-1.debian.tar.xz
 8485af234c668485d1b9a57d0390d797a093b1d42fad1daeee7aa0f56c955de1 9144 
elpa-protobuf-mode_36.2-1_all.deb
 48bc9e93073d93956f5d0ce62c21f5340edf39e7cb91161099774230462a3cb7 2640348 
libprotobuf-dev_36.2-1_amd64.deb
 0d0827ad59f9f78ca7a2bb265ebdc3af32f796a40ce9e8b39de224edd314c945 1234944 
libprotobuf-java_4.36.2-1_all.deb
 1449563768c2af49e7fd6cb7c1723f214c20271c48644768c3200303eaba69fb 4092240 
libprotobuf-lite36-dbgsym_36.2-1_amd64.deb
 133135f7095afe2b930a856cfe9c01e40e1886d45c3a55c9c8745ec75acda250 309720 
libprotobuf-lite36_36.2-1_amd64.deb
 1d516a14e95b3b8f38c2d01f7c2f3b4bbb34af7d464fd9524cb3eacbff0e48aa 25868060 
libprotobuf36-dbgsym_36.2-1_amd64.deb
 92fba6d338da86f31f980199293ccab50db9f099d4cb85635c76afb83eab7011 1402704 
libprotobuf36_36.2-1_amd64.deb
 9415f32e780d93edba5956a050f946f616146168d1371bb30e73b274d278f406 2471796 
libprotoc-dev_36.2-1_amd64.deb
 f3e1aebabdb2876de99744fc14f268d98531940cacf12bfe12adf79e5cfbe7c1 57876472 
libprotoc36-dbgsym_36.2-1_amd64.deb
 1c0ba011931e54ea54a5137e242c9fcb09a959030455a5444f9165ba6832d966 1707872 
libprotoc36_36.2-1_amd64.deb
 4f5f82eda5787857da5a379f9e0654d13f844156e561baaef31e9eb039442b54 81476 
php-google-protobuf_5.36.2-1_all.deb
 b7f1e86ea156c196958319bdf7b05d89b55f24acf68200faa6fce94c7e23e7bf 8040356 
protobuf-compiler-dbgsym_36.2-1_amd64.deb
 da2ef12d66d7a973826e9d3bb75d812a7c6a8f86ac44da6b304aca033a723849 328672 
protobuf-compiler_36.2-1_amd64.deb
 fbdc839ce708ca50371ff9b09ab32b71589ae20bfb2ffff20c2815b486aa7ef1 21301 
protobuf_36.2-1_amd64.buildinfo
 a706ae4ae6b96eb7a519c687148f1c353b9328cfbc839c30f6844d004b1326a5 121936 
python3-protobuf_7.36.2-1_amd64.deb
 12e8a549dd056e50ff316a1acd79fd1e80956d991d157bb2c9f8d1adb79b6c23 881324 
ruby-google-protobuf-dbgsym_4.36.2-1_amd64.deb
 c0fa41da21959d17f43b78654e68ff554a794828b6304594c2f622e503d7d5f5 180388 
ruby-google-protobuf_4.36.2-1_amd64.deb
Files:
 280dff58970d6a40cde8943dfdfd5b34 3097 devel optional protobuf_36.2-1.dsc
 c55d81e36f6825a5c1e338b8a0383dfc 7349015 devel optional 
protobuf_36.2.orig.tar.gz
 0b76aa9dc7be977c03acbef22bc683a1 39176 devel optional 
protobuf_36.2-1.debian.tar.xz
 42b1fa52e6530b28503c42e7b2766d8f 9144 editors optional 
elpa-protobuf-mode_36.2-1_all.deb
 4f83b2924ac0db69affe1973a062491f 2640348 libdevel optional 
libprotobuf-dev_36.2-1_amd64.deb
 9a0285d3c0a77dc71806cb2473edd799 1234944 java optional 
libprotobuf-java_4.36.2-1_all.deb
 6596f812729b2dabc0a24d5f7a067caa 4092240 debug optional 
libprotobuf-lite36-dbgsym_36.2-1_amd64.deb
 58716b8c8b24f7d1dbd35bb90cb51049 309720 libs optional 
libprotobuf-lite36_36.2-1_amd64.deb
 3ddc9ab48e9835017c824da301c6f0c7 25868060 debug optional 
libprotobuf36-dbgsym_36.2-1_amd64.deb
 d744aa45a84db11926292cc23867e8d7 1402704 libs optional 
libprotobuf36_36.2-1_amd64.deb
 734e90b31741b95ec9f601d73553226d 2471796 libdevel optional 
libprotoc-dev_36.2-1_amd64.deb
 0119ab5f86a4853288950df75165b898 57876472 debug optional 
libprotoc36-dbgsym_36.2-1_amd64.deb
 b192683ce99c88a19d4003fd96338508 1707872 libs optional 
libprotoc36_36.2-1_amd64.deb
 a6a7679b8690d9621c6d3a8bd90450d5 81476 php optional 
php-google-protobuf_5.36.2-1_all.deb
 6b9fa18ef028ca11668a65ce602153f6 8040356 debug optional 
protobuf-compiler-dbgsym_36.2-1_amd64.deb
 1182e741c504044ebcbb25796daf73bb 328672 devel optional 
protobuf-compiler_36.2-1_amd64.deb
 13b212138958eca88f50856b7f35991d 21301 devel optional 
protobuf_36.2-1_amd64.buildinfo
 e5914bb12b9269d4f4f2e2d078e93448 121936 python optional 
python3-protobuf_7.36.2-1_amd64.deb
 e9464edbf8117b56dd3e77395a4868eb 881324 debug optional 
ruby-google-protobuf-dbgsym_4.36.2-1_amd64.deb
 e445adcfc80c06511d695af7ee326150 180388 ruby optional 
ruby-google-protobuf_4.36.2-1_amd64.deb

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

iQIzBAEBCgAdFiEEfYh9yLp7u6e4NeO63OMQ54ZMyL8FAmq5+v0ACgkQ3OMQ54ZM
yL/jtQ//WiqbHSbZK9NE60kIOGZZQjR0Dh2eK6VhKXlcgzP8nAW4aalzbFfPucB7
/gJJfwX6fiGsLBu3NT33aJuGsyroQHWw7AoCHngnXhW3Z3KE1jwTnh/+rLX93AAu
NfsBAHeRn4jRatd7WQqfVpQPLCvBnTxxfmNDBLtCj4OliY89MQm4/0qkNcZOlxGc
n0Q1Srvg9iyJOM22FVTtb/BoPpjLIHDkH3GARInMRnRSHyn9nh4gk5F9VJkcQETM
V8dZicPX3jDJ1EyWSIslK2ePreECV/ALVPmVZ7ZnI9O1VqvytaZo7Vi9yHtDXJoh
41OI+5F8GiBOMdyXb9D/3+3cIHMcM5WfQ14YxhG/pS17AKBZqIGsl3Ae0q+iIvIG
jqpH+4KcVoYMcUUZv6Ytlh9Op39QGMsp4nEib+D+F2JOc7NZqCBp8GUd+4WRBsmk
tXyx1KokEQCFQ8hSt8WIFzs7AXp1njZEq8sQyXsrCiEnv/bSLiJqsMAMbtp/quHx
ue4bHH1QAgkj8EAmGSs7MODWYY6p6Dz6C6yD+OjN/ZUxPbX8LUG2IMTsC+UGMBd4
iHEmplwdKjsVCjqmy3PSlp4Qxqs7eIeZ2Jw/ZGDO5sMqtqmvKOe0VfsqCVrsgDLc
AihZu+42vfU7klk9dAlMBgh3gXDa5qtOWmiUduhbsZKWtQsAS28=
=2wgm
-----END PGP SIGNATURE-----

Attachment: pgpBqRJJvpbz1.pgp
Description: PGP signature


--- End Message ---

Reply via email to