public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ganglia] rawhide: Support Python 3.16
@ 2026-11-21 10:32 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-21 10:32 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ganglia
Branch : rawhide
Commit : 13b1b876da28e4780d2fbbac80f78ab45a891ab8
Author : Terje Røsten <terjeros@gmail.com>
Date   : 2026-11-21T10:31:42+00:00
Stats  : +24/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ganglia/c/13b1b876da28e4780d2fbbac80f78ab45a891ab8?branch=rawhide

Log:
Support Python 3.16

---
diff --git a/ganglia-3.7.2-py316.patch b/ganglia-3.7.2-py316.patch
new file mode 100644
index 0000000..d2595c5
--- /dev/null
+++ b/ganglia-3.7.2-py316.patch
@@ -0,0 +1,12 @@
+diff --git a/gmond/modules/python/mod_python.c b/gmond/modules/python/mod_python.c
+index ed5a401..438b6e3 100644
+--- a/gmond/modules/python/mod_python.c
++++ b/gmond/modules/python/mod_python.c
+@@ -590,7 +590,6 @@ static int pyth_metric_init (apr_pool_t *p)
+     PyObject *addpath = PyString_FromString(path);
+     PyList_Append(sys_path, addpath);
+ 
+-    PyEval_InitThreads();
+     gtstate = PyEval_SaveThread();
+ 
+     /* Initialize each python module */

diff --git a/ganglia.spec b/ganglia.spec
index 329c903..c7636e1 100644
--- a/ganglia.spec
+++ b/ganglia.spec
@@ -31,10 +31,14 @@
 %global httpd24         1
 %endif
 
+%if 0%{?fedora} > 44
+%global py316           1
+%endif
+
 Summary:            Distributed Monitoring System
 Name:               ganglia
 Version:            %{gangver}
-Release:            67%{?dist}
+Release:            68%{?dist}
 # Automatically converted from old format: BSD - review is highly recommended.
 License:            LicenseRef-Callaway-BSD
 URL:                https://github.com/ganglia
@@ -62,6 +66,7 @@ Patch34:            0005-First-loop-might-contain-non-integer-input.patch
 Patch35:            0001-Fix-return-value-from-mod_python-init.patch
 Patch40:            ganglia-3.7.2-autoconf-python3.patch
 Patch50:            ganglia-3.7.2-pcre2.patch
+Patch51:            ganglia-3.7.2-py316.patch
 %if 0%{?systemd}
 BuildRequires:      systemd
 %endif
@@ -211,6 +216,9 @@ programmers can use to build scalable cluster or grid applications
 %if 0%{?pcre2}
 %patch -P 50 -p1
 %endif
+%if 0%{?py316}
+%patch -P 51 -p1
+%endif
 # fix broken systemd support
 install -m 0644 %{SOURCE2} gmond/gmond.service.in
 install -m 0644 %{SOURCE3} gmetad/gmetad.service.in
@@ -501,6 +509,9 @@ end
 %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled
 
 %changelog
+* Sat Nov 21 2026 Terje Røsten <terjeros@gmail.com> - 3.7.2-68
+- Support Python 3.16
+
 * Mon Jul 27 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 3.7.2-67
 - Use sysusers on RHEL 11
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-21 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21 10:32 [rpms/ganglia] rawhide: Support Python 3.16 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox