public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/httpd] f43: disable worker mpm for Fedora > 43
@ 2026-10-01 16:46 Joe Orton
  0 siblings, 0 replies; only message in thread
From: Joe Orton @ 2026-10-01 16:46 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/httpd
Branch : f43
Commit : 8aa4a0173f1253ee27c4faa6e201a3f69b11c009
Author : Joe Orton <jorton@redhat.com>
Date   : 2026-01-27T14:26:20+00:00
Stats  : +25/-8 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/httpd/c/8aa4a0173f1253ee27c4faa6e201a3f69b11c009?branch=f43

Log:
disable worker mpm for Fedora > 43

---
diff --git a/httpd.spec b/httpd.spec
index 5fc7d87..257e965 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -14,6 +14,13 @@
 %bcond pcre2 %[0%{?fedora} > 35 || 0%{?rhel} > 9]
 %bcond pcre %{without pcre2}
 %bcond engine %[0%{?fedora} < 41 && 0%{?rhel} < 10]
+%bcond worker %[0%{?fedora} < 44 && 0%{?rhel} < 11]
+
+%if %{with worker}
+%global mpms event prefork worker
+%else
+%global mpms event prefork
+%endif
 
 # Similar issue to https://bugzilla.redhat.com/show_bug.cgi?id=2043092
 %undefine _package_note_flags
@@ -301,8 +308,17 @@ s|@BUG_REPORT_URL@|%{bugurl}|g
    xmlto man ${f}.xml
 done
 
+sed '/^#LoadModule mpm_%{mpm}_module /s/^#//' > 00-mpm.conf < \
+    $RPM_SOURCE_DIR/00-mpm.conf
+# Remove worker MPM LoadModule from 00-mpm.conf if not built
+if echo %{mpms} | grep -q -v worker; then
+    sed -i '/^. worker MPM/,/LoadModule mpm_worker/d' 00-mpm.conf
+fi
+touch -r $RPM_SOURCE_DIR/00-mpm.conf 00-mpm.conf
+
 : Building with MMN %{mmn}, MMN-ISA %{mmnisa}
-: Default MPM is %{mpm}, vendor string is '%{vstring}'
+: Default MPM is %{mpm}, MPM list: %{mpms}
+: Vendor string is '%{vstring}'
 : Regex Engine: PCRE=%{with pcre} PCRE2=%{with pcre2}
 : mod_ssl ENGINE support: %{with engine}
 
@@ -333,7 +349,7 @@ autoheader && autoconf || exit 1
         --datadir=%{contentdir} \
         --enable-layout=Fedora \
         --with-installbuilddir=%{_libdir}/httpd/build \
-        --enable-mpms-shared=all \
+        --enable-mpms-shared="%{mpms}" \
         --with-apr=%{_prefix} --with-apr-util=%{_prefix} \
         --enable-suexec --with-suexec \
         --enable-suexec-capabilities \
@@ -402,10 +418,8 @@ for f in 00-base.conf 00-mpm.conf 00-lua.conf 01-cgi.conf 00-dav.conf \
         $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/$f
 done
 
-sed -i '/^#LoadModule mpm_%{mpm}_module /s/^#//' \
-     $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/00-mpm.conf
-touch -r $RPM_SOURCE_DIR/00-mpm.conf \
-     $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/00-mpm.conf
+install -m 644 -p 00-mpm.conf \
+        $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/00-mpm.conf
 
 # install systemd override drop directory
 # Web application packages can drop snippets into this location if
@@ -660,8 +674,8 @@ for f in $RPM_BUILD_ROOT%{_libdir}/httpd/modules/*.so; do
     echo PASS: Module $m is configured and loaded.
   fi
 done
-# Ensure every loaded mod_* is actually built
-mods=`grep -h ^LoadModule $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/*.conf | sed 's,.*modules/,,'`
+# Ensure every mod_* referenced from a LoadModule is actually built
+mods=`grep -Eh '^.?LoadModule' $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/*.conf | sed 's,.*modules/,,'`
 for m in $mods; do
   f=$RPM_BUILD_ROOT%{_libdir}/httpd/modules/${m}
   if ! test -x $f; then
@@ -836,6 +850,9 @@ exit $rv
 %{_rpmconfigdir}/macros.d/macros.httpd
 
 %changelog
+* Tue Jan 27 2026 Joe Orton  <jorton@redhat.com> - 2.4.66-2
+- disable worker mpm for Fedora > 43
+
 * Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.66-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

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

only message in thread, other threads:[~2026-10-01 16:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 16:46 [rpms/httpd] f43: disable worker mpm for Fedora > 43 Joe Orton

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