Verification done on Noble:

1) Package builds successfully

@ https://launchpad.net/ubuntu/+source/vanguards/0.3.1-2.3ubuntu0.1
Builds
Noble: [FULLYBUILT] amd64

2) Package content delta is as expected

$ debdiff vanguards_0.3.1-2.3_all.deb vanguards_0.3.1-2.3ubuntu0.1_all.deb
[The following lists of changes regard files as different if they have
different names, permissions or owners.]

Files in second .deb but not in first
-------------------------------------
-rw-r--r--  root/root   /usr/lib/systemd/system/vanguards.service

Files in first .deb but not in second
-------------------------------------
-rw-r--r--  root/root   /lib/systemd/system/vanguards.service

Control files: lines which differ (wdiff format)
------------------------------------------------
{+Breaks: python3-minimal (<< 3.12.3-0ubuntu2~)+}
Installed-Size: [-124-] {+123+}
Version: [-0.3.1-2.3-] {+0.3.1-2.3ubuntu0.1+}

$ ls -ld /lib
lrwxrwxrwx 1 root root 7 May  3  2021 /lib -> usr/lib

$ dpkg-deb -x vanguards_0.3.1-2.3_all.deb deb-old
$ dpkg-deb -x vanguards_0.3.1-2.3ubuntu0.1_all.deb deb-new

$ diff -ur deb-old/ deb-new/
Only in deb-old/: lib
diff -ur deb-old/usr/lib/python3/dist-packages/vanguards/config.py 
deb-new/usr/lib/python3/dist-packages/vanguards/config.py
--- deb-old/usr/lib/python3/dist-packages/vanguards/config.py   2019-04-10 
19:41:55.000000000 -0300
+++ deb-new/usr/lib/python3/dist-packages/vanguards/config.py   2024-08-25 
19:40:21.000000000 -0300
@@ -14,9 +14,12 @@
 from .logger import plog

 try:
-  from configparser import SafeConfigParser, Error
+  from configparser import ConfigParser, Error
 except ImportError:
   from ConfigParser import SafeConfigParser, Error
+  class ConfigParser(SafeConfigParser):
+      def read_file(self, f, source=None):
+          return self.readfp(f, source)

 ################# Global options ##################

@@ -176,7 +179,7 @@
       config.set(section, param, str(val))

 def generate_config():
-  config = SafeConfigParser(allow_no_value=True)
+  config = ConfigParser(allow_no_value=True)
   set_options_from_module(config, sys.modules[__name__], "Global")
   set_options_from_module(config, vanguards, "Vanguards")
   set_options_from_module(config, bandguards, "Bandguards")
@@ -185,9 +188,9 @@
   return config

 def apply_config(config_file):
-  config = SafeConfigParser(allow_no_value=True)
+  config = ConfigParser(allow_no_value=True)

-  config.readfp(open(config_file, "r"))
+  config.read_file(open(config_file, "r"))

   get_options_for_module(config, sys.modules[__name__], "Global")
   get_options_for_module(config, vanguards, "Vanguards")
diff -ur 
deb-old/usr/lib/python3/dist-packages/vanguards-0.3.1.egg-info/entry_points.txt 
deb-new/usr/lib/python3/dist-packages/vanguards-0.3.1.egg-info/entry_points.txt
--- 
deb-old/usr/lib/python3/dist-packages/vanguards-0.3.1.egg-info/entry_points.txt 
    2022-11-29 05:34:36.000000000 -0300
+++ 
deb-new/usr/lib/python3/dist-packages/vanguards-0.3.1.egg-info/entry_points.txt 
    2024-08-25 19:40:21.000000000 -0300
@@ -1,3 +1,2 @@
 [console_scripts]
 vanguards = vanguards.main:main
-
diff -ur 
deb-old/usr/lib/python3/dist-packages/vanguards-0.3.1.egg-info/PKG-INFO 
deb-new/usr/lib/python3/dist-packages/vanguards-0.3.1.egg-info/PKG-INFO
--- deb-old/usr/lib/python3/dist-packages/vanguards-0.3.1.egg-info/PKG-INFO     
2022-11-29 05:34:36.000000000 -0300
+++ deb-new/usr/lib/python3/dist-packages/vanguards-0.3.1.egg-info/PKG-INFO     
2024-08-25 19:40:21.000000000 -0300
@@ -6,7 +6,6 @@
 Author: Mike Perry
 License: MIT/Expat
 Keywords: tor
-Platform: UNKNOWN
 Classifier: Development Status :: 4 - Beta
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Programming Language :: Python :: 2
@@ -18,5 +17,3 @@

 For the full README and other project information, please see the
 `Vanguard project page on github 
<https://github.com/mikeperry-tor/vanguards>`_.
-
-
Only in deb-new/usr/lib: systemd
Binary files deb-old/usr/share/doc/vanguards/changelog.Debian.gz and 
deb-new/usr/share/doc/vanguards/changelog.Debian.gz differ


** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078742

Title:
  Fix FTBFS on python 3.12

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vanguards/+bug/2078742/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to