🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3346

Bug#1148089: arandr: FTBFS: AttributeError: 'build_trans' object has no attribute 'dry_run'

#3346
From: Bastian Germann
Date: Thu, 05 Nov 2026 17:00
97 lines
6401 bytes
--8XAzYUo+KHrjdQaa
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Control: tags -1 patch

I am forwarding the patch from the blocking RFS.

--8XAzYUo+KHrjdQaa
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=arandr_0.1.11-2.1.debdiff

diff -Nru arandr-0.1.11/debian/changelog arandr-0.1.11/debian/changelog
--- arandr-0.1.11/debian/changelog	2025-03-13 07:20:02.000000000 +0100
+++ arandr-0.1.11/debian/changelog	2026-09-24 08:43:55.000000000 +0200
@@ -1,3 +1,11 @@
+arandr (0.1.11-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix AttributeError on dry_run in setup.py for Python 3.14
+    compatibility. (Closes: #1148089)
+
+ -- Hannibal Herrera <herrera.hannibal84@gmail.com>  Wed, 23 Sep 2026 23:43:55 -0700
+
 arandr (0.1.11-2) unstable; urgency=medium
 
   * Declare build dependency on python3-setuptools (Closes: #1080542)
diff -Nru arandr-0.1.11/debian/patches/fix-setup-py-dry-run-compat.patch arandr-0.1.11/debian/patches/fix-setup-py-dry-run-compat.patch
--- arandr-0.1.11/debian/patches/fix-setup-py-dry-run-compat.patch	1970-01-01 01:00:00.000000000 +0100
+++ arandr-0.1.11/debian/patches/fix-setup-py-dry-run-compat.patch	2026-09-24 08:43:55.000000000 +0200
@@ -0,0 +1,59 @@
+Description: Fix AttributeError on dry_run in setup.py for Python 3.14 compatibility
+Author: Hannibal Herrera <herrera.hannibal84@gmail.com>
+Bug-Debian: https://bugs.debian.org/1148089
+Forwarded: no
+Last-Update: 2026-09-24
+
+Index: arandr/setup.py
+===================================================================
+--- arandr.orig/setup.py
++++ arandr/setup.py
+@@ -62,7 +62,7 @@ class update_pot(NoOptionCommand):
+     def run(self):
+         all_py_files = sorted(reduce(operator.add, [[os.path.join(dn, f) for f in fs if f.endswith('.py')] for (dn,ds,fs) in os.walk('.')])) # sort to make diffs easier
+         # not working around xgettext not substituting for PACKAGE everywhere in the header; it's just a template and usually worked on using tools that ignore much of it anyway
+-        if not self.dry_run:
++        if not getattr(self, "dry_run", False):
+             info('Creating %s' % POT_FILE)
+             subprocess.check_call(['xgettext', '-LPython', '-o', POT_FILE, '--copyright-holder', AUTHOR, '--package-name', PACKAGENAME, '--package-version', PACKAGEVERSION, '--msgid-bugs-address', AUTHOR_MAIL, '--add-comments=#'] + all_py_files)
+ 
+@@ -72,7 +72,7 @@ class update_po(NoOptionCommand):
+     def run(self):
+         # msgmerge data/po/da.po data/po/messages.pot -U
+         for po in glob.glob(os.path.join(PO_DIR, '*.po')):
+-            if not self.dry_run:
++            if not getattr(self, "dry_run", False):
+                 info('Updating %s' % po)
+                 subprocess.check_call(['msgmerge', '-U', po, POT_FILE])
+ 
+@@ -91,7 +91,7 @@ class build_trans(NoOptionCommand):
+             if newer(po, mo):
+                 cmd = ['msgfmt', '-o', mo, po]
+                 info('compiling %s -> %s' % (po, mo))
+-                if not self.dry_run:
++                if not getattr(self, "dry_run", False):
+                     subprocess.check_call(cmd)
+ 
+ class build_man(NoOptionCommand):
+@@ -110,7 +110,7 @@ class build_man(NoOptionCommand):
+                 manpage = docutils.core.publish_string(rst_source, writer=docutils.writers.manpage.Writer())
+                 info('compressing man page to %s', gzfile)
+ 
+-                if not self.dry_run:
++                if not getattr(self, "dry_run", False):
+                     compressed = gzip.open(gzfile, 'w', 9)
+                     compressed.write(manpage)
+                     compressed.close()
+@@ -221,10 +221,10 @@ class clean(_clean):
+             files = ['build/arandr.1.gz', 'build/unxrandr.1.gz']
+             for directory in dirs:
+                 if os.path.exists(directory):
+-                    remove_tree(directory, dry_run=self.dry_run)
++                    remove_tree(directory, dry_run=getattr(self, "dry_run", False))
+                 else:
+                     warn("%r does not exist -- can't clean it", directory)
+-            if not self.dry_run:
++            if not getattr(self, "dry_run", False):
+                 for file in files:
+                     if os.path.exists(file):
+                         os.unlink(file)
diff -Nru arandr-0.1.11/debian/patches/series arandr-0.1.11/debian/patches/series
--- arandr-0.1.11/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ arandr-0.1.11/debian/patches/series	2026-09-24 08:43:55.000000000 +0200
@@ -0,0 +1 @@
+fix-setup-py-dry-run-compat.patch

--8XAzYUo+KHrjdQaa--
Technical Details
Message-ID: <NW8YG-a1vE-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NE7HH-1Dt-23@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Bastian Germann <bage@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1148089: arandr: FTBFS: AttributeError: 'build_trans' object has no attribute 'dry_run'
Date: Thu, 05 Nov 2026 18:00:02 +0100
Message-ID: <NW8YG-a1vE-9@gated-at.bofh.it>
References: <NE7HH-1Dt-23@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Nov  5 16:55:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Bastian Germann <bage@debian.org>, 1148089@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: chrysn@fsfe.org
X-Debian-Pr-Message: followup 1148089
X-Debian-Pr-Package: src:arandr
X-Debian-Pr-Keywords: forky ftbfs sid
X-Debian-Pr-Source: arandr
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="8XAzYUo+KHrjdQaa"
Content-Disposition: inline
X-Debian-User: bage
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000832
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 97
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 5 Nov 2026 17:53:34 +0100
X-Original-Message-ID: <auy0jlrQvqf1yXno@duagon-BXN3S64.localdomain>
X-Original-References: <E1x6zPY-006r4B-1w@paradis.debian.org>