Hi,

This is good, we can go ahead with this NMU.

Thanks,
Julien Fortin
________________________________
From: Fabian Grünbichler <f.gruenbich...@proxmox.com>
Sent: Tuesday, March 11, 2025 1:11 PM
To: 1074...@bugs.debian.org <1074...@bugs.debian.org>
Subject: Bug#1074250: NMUed (Re: ifupdown2 not working with python3.12)

[You don't often get email from f.gruenbich...@proxmox.com. Learn why this is 
important at https://aka.ms/LearnAboutSenderIdentification ]

External email: Use caution opening links or attachments


Control: tags 1074250 + patch
Control: tags 1074250 + pending


Dear maintainer,

I've prepared an NMU for ifupdown2 (versioned as 3.0.0-1.3) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards.

diff -Nru ifupdown2-3.0.0/debian/changelog ifupdown2-3.0.0/debian/changelog
--- ifupdown2-3.0.0/debian/changelog    2024-07-08 01:02:35.000000000 +0200
+++ ifupdown2-3.0.0/debian/changelog    2025-03-11 12:51:10.000000000 +0100
@@ -1,3 +1,10 @@
+ifupdown2 (3.0.0-1.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * cherry-pick upstream fix for python 3.12 compat (Closes: #1074250)
+
+ -- Fabian Grünbichler <debian@fabian.gruenbichler.email>  Tue, 11 Mar 2025 
12:51:10 +0100
+
 ifupdown2 (3.0.0-1.2) unstable; urgency=medium

   * Non-maintainer upload.
diff -Nru ifupdown2-3.0.0/debian/patches/bug-296-python-3.12-compability.patch 
ifupdown2-3.0.0/debian/patches/bug-296-python-3.12-compability.patch
--- ifupdown2-3.0.0/debian/patches/bug-296-python-3.12-compability.patch        
1970-01-01 01:00:00.000000000 +0100
+++ ifupdown2-3.0.0/debian/patches/bug-296-python-3.12-compability.patch        
2025-03-11 12:51:10.000000000 +0100
@@ -0,0 +1,26 @@
+From: Jan Huijsmans <huysm...@koffie.nu>
+Date: Tue, 9 Jul 2024 09:03:25 +0200
+X-Dgit-Generated: 3.0.0-1.3 25127847996b30ded7825cb98247e54478bdd350
+Subject: Bug #296: python 3.12 compability
+
+Since python 3.2, readfp needs to be replaced by read_file.
+Python 3.12 dropped the readfp function.
+
+Patch provided as PR by me, as the original reporter failed to do
+so since 4-4-2024 and my systems break due to this issue.
+
+---
+
+diff --git a/ifupdown2/ifupdown/main.py b/ifupdown2/ifupdown/main.py
+index 5ab07fa..141a922 100644
+--- a/ifupdown2/ifupdown/main.py
++++ b/ifupdown2/ifupdown/main.py
+@@ -139,7 +139,7 @@ class Ifupdown2:
+         configStr = '[ifupdown2]\n' + config
+         configFP = io.StringIO(configStr)
+         parser = configparser.RawConfigParser()
+-        parser.readfp(configFP)
++        parser.read_file(configFP)
+         configmap_g = dict(parser.items('ifupdown2'))
+
+         # Preprocess config map
diff -Nru ifupdown2-3.0.0/debian/patches/series 
ifupdown2-3.0.0/debian/patches/series
--- ifupdown2-3.0.0/debian/patches/series       1970-01-01 01:00:00.000000000 
+0100
+++ ifupdown2-3.0.0/debian/patches/series       2025-03-11 12:51:10.000000000 
+0100
@@ -0,0 +1 @@
+bug-296-python-3.12-compability.patch

Reply via email to