public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
To: git-commits@fedoraproject.org
Subject: [rpms/inn] epel10: enable embedded python support
Date: Wed, 26 Aug 2026 08:07:11 GMT [thread overview]
Message-ID: <178773163176.1.13833272765534325420.rpms-inn-f177a59b8f94@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/inn
Branch : epel10
Commit : f177a59b8f943006b6d4cdc9caee0662c42ca742
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2020-09-11T18:36:27+02:00
Stats : +42/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/inn/c/f177a59b8f943006b6d4cdc9caee0662c42ca742?branch=epel10
Log:
enable embedded python support
drop unused variable causing GCC10 compilation error
---
diff --git a/inn-2.6.3-filterPath.patch b/inn-2.6.3-filterPath.patch
new file mode 100644
index 0000000..b628957
--- /dev/null
+++ b/inn-2.6.3-filterPath.patch
@@ -0,0 +1,36 @@
+diff -up inn-2.6.3/innd/art.c.fp inn-2.6.3/innd/art.c
+--- inn-2.6.3/innd/art.c.fp 2019-02-07 16:02:22.000000000 +0100
++++ inn-2.6.3/innd/art.c 2020-09-11 14:24:21.055208612 +0200
+@@ -77,10 +77,6 @@ static char ARTjnk[] = "junk";
+ static char hostcclass[256];
+ #define ARThostchar(c) ((hostcclass[(unsigned char)(c)]) != 0)
+
+-#if defined(DO_PERL) || defined(DO_PYTHON)
+-const char *filterPath;
+-#endif /* DO_PERL || DO_PYTHON */
+-
+ /* Prototypes. */
+ static void ARTerror(CHANNEL *cp, const char *format, ...)
+ __attribute__((__format__(printf, 2, 3)));
+@@ -2072,10 +2068,6 @@ ARTpost(CHANNEL *cp)
+ }
+ }
+
+-#if defined(DO_PERL) || defined(DO_PYTHON)
+- filterPath = HDR(HDR__PATH);
+-#endif /* DO_PERL || DO_PYHTON */
+-
+ #if defined(DO_PYTHON)
+ TMRstart(TMR_PYTHON);
+ filterrc = PYartfilter(data, article->data + data->Body,
+diff -up inn-2.6.3/innd/python.c.fp inn-2.6.3/innd/python.c
+--- inn-2.6.3/innd/python.c.fp 2019-02-07 16:02:22.000000000 +0100
++++ inn-2.6.3/innd/python.c 2020-09-11 14:23:46.143958961 +0200
+@@ -60,7 +60,6 @@
+ #include "innd.h"
+
+ bool PythonFilterActive;
+-char *filterPath; /* This gets set in art.c. */
+ PyObject *PYFilterObject = NULL;
+ PyObject *PYFilterModule = NULL;
+
diff --git a/inn.spec b/inn.spec
index ccd01b9..42a0490 100644
--- a/inn.spec
+++ b/inn.spec
@@ -22,6 +22,7 @@ Source24: innd-nntpsend.timer
Source25: innd-rnews.service
Source26: innd-rnews.timer
Patch1: inn-2.6.0-rh.patch
+Patch2: inn-2.6.3-filterPath.patch
Patch4: inn-2.6.0.pie.patch
Patch6: inn-2.5.2.posix.patch
Patch7: inn-2.4.3.warn.patch
@@ -43,7 +44,7 @@ BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::Embed)
BuildRequires: perl(GD)
BuildRequires: perl(MIME::Parser)
-BuildRequires: python3
+BuildRequires: python3-devel
BuildRequires: systemd
BuildRequires: wget
BuildRequires: %{_bindir}/gpgv2
@@ -114,6 +115,7 @@ This package contains dynamic libraries provided by INN project
gpgv2 --keyring %{S:3} %{S:1} %{S:0}
%setup -q -n inn-%{version}
%patch1 -p1 -b .rh
+%patch2 -p1 -b .gcc10
%patch4 -p1 -b .pie
%patch6 -p1 -b .posix
%patch7 -p1 -b .warn
@@ -137,6 +139,7 @@ gpgv2 --keyring %{S:3} %{S:1} %{S:0}
--with-openssl \
--with-perl \
--with-pic \
+ --with-python \
--with-run-dir=/run/news \
--with-sasl \
--with-sendmail=/usr/sbin/sendmail \
@@ -613,6 +616,8 @@ fi
%changelog
* Wed Sep 09 2020 Petr Viktorin <pviktori@redhat.com> - 2.6.3-9
- Switch BuildRequires to python3
+- enable embedded python support (Dominik Mierzejewski)
+- drop unused variable causing GCC10 compilation error (Dominik Mierzejewski)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
reply other threads:[~2026-08-26 8:07 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=178773163176.1.13833272765534325420.rpms-inn-f177a59b8f94@fedoraproject.org \
--to=dominik@greysector.net \
--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