public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/buildbot] epel10.2: Upstream patch for Python 3.13
@ 2026-10-09 14:34 Gwyn Ciesla
0 siblings, 0 replies; only message in thread
From: Gwyn Ciesla @ 2026-10-09 14:34 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/buildbot
Branch : epel10.2
Commit : 186f0a5c097367fbdb68e28530748b11a860bfa0
Author : Gwyn Ciesla <gwync@protonmail.com>
Date : 2024-09-18T16:23:53-05:00
Stats : +55/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/buildbot/c/186f0a5c097367fbdb68e28530748b11a860bfa0?branch=epel10.2
Log:
Upstream patch for Python 3.13
---
diff --git a/73cb7a9170e33c55855b150a101a41ff6cd7c59f.patch b/73cb7a9170e33c55855b150a101a41ff6cd7c59f.patch
new file mode 100644
index 0000000..a288f60
--- /dev/null
+++ b/73cb7a9170e33c55855b150a101a41ff6cd7c59f.patch
@@ -0,0 +1,47 @@
+diff --git a/worker/buildbot_worker/runprocess.py b/worker/buildbot_worker/runprocess.py
+index 392fd7fee99..acb3361cdb8 100644
+--- a/worker/buildbot_worker/runprocess.py
++++ b/worker/buildbot_worker/runprocess.py
+@@ -20,6 +20,7 @@
+ import os
+ import pprint
+ import re
++import shlex
+ import signal
+ import stat
+ import subprocess
+@@ -65,13 +66,10 @@ def escape_arg(arg):
+
+ def shell_quote(cmd_list, unicode_encoding='utf-8'):
+ # attempt to quote cmd_list such that a shell will properly re-interpret
+- # it. The pipes module is only available on UNIX; also, the quote
+- # function is undocumented (although it looks like it will be documented
+- # soon: http://bugs.python.org/issue9723). Finally, it has a nasty bug
+- # in some versions where an empty string is not quoted.
++ # it. The shlex module is only designed for UNIX;
+ #
+ # So:
+- # - use pipes.quote on UNIX, handling '' as a special case
++ # - use shlex.quote on UNIX, handling '' as a special case
+ # - use our own custom function on Windows
+ if isinstance(cmd_list, bytes):
+ cmd_list = bytes2unicode(cmd_list, unicode_encoding)
+@@ -79,16 +77,13 @@ def shell_quote(cmd_list, unicode_encoding='utf-8'):
+ if runtime.platformType == 'win32':
+ return win32_batch_quote(cmd_list, unicode_encoding)
+
+- # only available on unix
+- import pipes # pylint: disable=import-outside-toplevel
+-
+ def quote(e):
+ if not e:
+ return '""'
+ e = bytes2unicode(e, unicode_encoding)
+- return pipes.quote(e)
++ return shlex.quote(e)
+
+- return " ".join([quote(e) for e in cmd_list])
++ return " ".join(quote(e) for e in cmd_list)
+
+
+ class LogFileWatcher(object):
diff --git a/buildbot.spec b/buildbot.spec
index b6341c5..8e16463 100644
--- a/buildbot.spec
+++ b/buildbot.spec
@@ -21,7 +21,7 @@
Name: buildbot
Version: 4.0.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Build/test automation system
License: GPL-2.0-only
@@ -41,6 +41,8 @@ Source8: %{pypi_source buildbot_pkg}
Source10: buildbot-master@.service
Source11: buildbot-worker@.service
+Patch0: 73cb7a9170e33c55855b150a101a41ff6cd7c59f.patch
+
BuildArch: noarch
BuildRequires: python3-devel
@@ -329,6 +331,8 @@ Summary: Buildbot documentation
%prep
%setup -q -b0 -b1 -b2 -b3 -b4 -b5 -b6 -b7 -b8
cd ..
+cd buildbot_worker-%{version}
+%patch -P 0 -p2
%build
%py3_build
@@ -405,6 +409,9 @@ trial buildbot.test
%endif
%changelog
+* Wed Sep 18 2024 Gwyn Ciesla <gwync@protonmail.com> - 4.0.2-2
+- Worker patch for Python 3.13
+
* Fri Aug 02 2024 Gwyn Ciesla <gwync@protonmail.com> - 4.0.2-1
- 4.0.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 14:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 14:34 [rpms/buildbot] epel10.2: Upstream patch for Python 3.13 Gwyn Ciesla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox