public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Joe Orton <jorton@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/httpd] f43: disable worker mpm for Fedora > 43
Date: Thu, 01 Oct 2026 16:46:17 GMT	[thread overview]
Message-ID: <179087317796.1.13297749709490394522.rpms-httpd-8aa4a0173f12@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-10-01 16:46 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=179087317796.1.13297749709490394522.rpms-httpd-8aa4a0173f12@fedoraproject.org \
    --to=jorton@redhat.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