Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-setproctitle for
openSUSE:Factory checked in at 2026-09-02 17:02:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-setproctitle (Old)
and /work/SRC/openSUSE:Factory/.python-setproctitle.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-setproctitle"
Wed Sep 2 17:02:53 2026 rev:38 rq:1375267 version:1.3.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-setproctitle/python-setproctitle.changes
2025-09-22 19:30:11.368153734 +0200
+++
/work/SRC/openSUSE:Factory/.python-setproctitle.new.1265/python-setproctitle.changes
2026-09-02 17:03:02.500939643 +0200
@@ -1,0 +2,6 @@
+Wed Sep 2 05:56:46 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-python315.patch:
+ * Do not segfault if environ is NULL.
+
+-------------------------------------------------------------------
New:
----
support-python315.patch
----------(New B)----------
New:
- Add patch support-python315.patch:
* Do not segfault if environ is NULL.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-setproctitle.spec ++++++
--- /var/tmp/diff_new_pack.BpI3qW/_old 2026-09-02 17:03:03.998991635 +0200
+++ /var/tmp/diff_new_pack.BpI3qW/_new 2026-09-02 17:03:04.004991843 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-setproctitle
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,8 @@
License: BSD-3-Clause
URL: https://github.com/dvarrazzo/py-setproctitle/
Source:
https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
-BuildRequires: %{python_module base >= 3.7}
+# PATCH-FIX-UPSTREAM gh#dvarrazzo/py-setproctitle#158
+Patch0: support-python315.patch
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@@ -42,7 +43,7 @@
the OpenSSH Server for example.
%prep
-%setup -q -n setproctitle-%{version}
+%autosetup -p1 -n setproctitle-%{version}
%build
export CFLAGS="%{optflags}"
++++++ support-python315.patch ++++++
>From 68125abf821ee6ebfb4a4eb86ffe655a4c072c9e Mon Sep 17 00:00:00 2001
From: Victor Stinner <[email protected]>
Date: Thu, 30 Oct 2025 15:12:24 +0100
Subject: [PATCH] fix: fix segfault after clearenv() on Python 3.15
Fix find_argv_from_env() if clearenv() has been called. Python 3.15
implements os.environ.clear() as clearenv().
Co-Authored-By: Karolina Surma <[email protected]>
---
src/spt_setup.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/spt_setup.c b/src/spt_setup.c
index ba7a7a6..4078d36 100644
--- a/src/spt_setup.c
+++ b/src/spt_setup.c
@@ -139,6 +139,13 @@ find_argv_from_env(int argc, char *arg0)
}
buf[argc] = NULL;
+ /* environ can be NULL if clearenv() has been called.
+ * Python 3.15 implements os.environ.clear() as clearenv(). */
+ if (!environ) {
+ spt_debug("environ pointer is NULL");
+ goto exit;
+ }
+
/* Walk back from environ until you find argc-1 null-terminated strings.
* Don't look for argv[0] as it's probably not preceded by 0. */
ptr = environ[0];