[packages/apache-mod_proctitle] Rel 11. Honor ProctitleEnable Off, drop unpackaged .la/.a.

arekm arekm at pld-linux.org
Fri Nov 6 07:07:56 CET 2026


commit 002257ec37f5720cc2799f57aa458d4dd230d574
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 6 07:07:33 2026 +0100

    Rel 11. Honor ProctitleEnable Off, drop unpackaged .la/.a.

 apache-mod_proctitle.spec | 15 +++++++++++----
 enable-directive.patch    | 24 ++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 4 deletions(-)
---
diff --git a/apache-mod_proctitle.spec b/apache-mod_proctitle.spec
index 131a45a..f6c5120 100644
--- a/apache-mod_proctitle.spec
+++ b/apache-mod_proctitle.spec
@@ -1,17 +1,21 @@
 %define		mod_name	proctitle
 %define 	apxs		/usr/sbin/apxs
-Summary:	Apache module: set process name to currently serverd virtual host
+Summary:	Apache module: set process name to currently served virtual host
 Name:		apache-mod_%{mod_name}
 Version:	0.4
-Release:	10
+Release:	11
 License:	BSD
 Group:		Networking/Daemons/HTTP
 Source0:	https://github.com/stass/mod_proctitle/archive/0.4.tar.gz
 # Source0-md5:	83043432da02f0ebf6de4badbe404dcd
 Patch0:		setproctitle.patch
+Patch1:		enable-directive.patch
 URL:		https://github.com/stass/mod_proctitle
 BuildRequires:	%{apxs}
 BuildRequires:	apache-devel >= 2.0
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake
+BuildRequires:	libtool
 BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	setproctitle-devel
 Requires:	apache(modules-api) = %apache_modules_api
@@ -27,6 +31,7 @@ changes process name to currently served virtual host.
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__libtoolize}
@@ -36,7 +41,8 @@ changes process name to currently served virtual host.
 %{__automake}
 
 APXS="%{apxs}" \
-%configure
+%configure \
+	--disable-static
 %{__make}
 
 %install
@@ -46,10 +52,11 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/*.la
+
 cat > $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf << 'EOF'
 LoadModule %{mod_name}_module modules/mod_%{mod_name}.so
 ProctitleEnable On
-# ProctitleUriSep ::
 EOF
 
 %clean
diff --git a/enable-directive.patch b/enable-directive.patch
new file mode 100644
index 0000000..d80e01e
--- /dev/null
+++ b/enable-directive.patch
@@ -0,0 +1,24 @@
+ProctitleEnable stores its flag but proctitle_fixup never reads it, so
+"ProctitleEnable Off" has no effect.
+
+--- mod_proctitle-0.4.org/src/mod_proctitle.c	2026-11-06 07:05:04.992578703 +0100
++++ mod_proctitle-0.4/src/mod_proctitle.c	2026-11-06 07:05:12.219123906 +0100
+@@ -68,7 +68,7 @@
+ /* Forward */
+ module AP_MODULE_DECLARE_DATA proctitle_module;
+ 
+-unsigned int enabled;	/* enable/disable */
++static int enabled = 1;	/* enable/disable */
+ 
+ /*
+  * Set process titles according to urls they're processing
+@@ -77,6 +77,9 @@
+ proctitle_fixup(request_rec *r) {
+ 	const char *name;
+ 
++	if (!enabled)
++		return DECLINED;
++
+ 	name = ap_get_server_name(r);
+ 	if (name != NULL && r->uri != NULL)
+ 		setproctitle("-%s::%s", name, r->uri);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_proctitle.git/commitdiff/002257ec37f5720cc2799f57aa458d4dd230d574



More information about the pld-cvs-commit mailing list