public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gwyn Ciesla <gwync@protonmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/buildbot] epel10.2: Upstream patch for Python 3.13
Date: Fri, 09 Oct 2026 14:34:50 GMT [thread overview]
Message-ID: <179155649074.1.12989263807311375887.rpms-buildbot-186f0a5c0973@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-09 14:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179155649074.1.12989263807311375887.rpms-buildbot-186f0a5c0973@fedoraproject.org \
--to=gwync@protonmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox