Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Bastian Germann
Thu, 05 Nov 2026 17:00
Bug#1148089: arandr: FTBFS: AttributeError: 'build_trans' object has no attribute 'dry_run'
Author: Bastian Germann
Date: Thu, 05 Nov 2026 17:00
Date: Thu, 05 Nov 2026 17:00
97 lines
6401 bytes
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--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads