Bug 193492 - www-servers/apache-2.2.6-r1 is always compiled with maintainer-mode/exception-hook
Bug#: 193492 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: apache-bugs@gentoo.org Reported By: mike@emobilenetworks.com
Component: Ebuilds
URL: 
Summary: www-servers/apache-2.2.6-r1 is always compiled with maintainer-mode/exception-hook
Keywords:  
Status Whiteboard: 
Opened: 2007-09-23 09:56 0000
Description:   Opened: 2007-09-23 09:56 0000
www-servers/apache-2.2.6-r1 is always compiled with
maintainer-mode/exception-hook  options even though I do not have 'debug' in
USE flag.


Reproducible: Always




It seems that --disable-exception-hook and --disbale-maintainer-mode does not
work as expect.  After I patched the configure.in, this problem is fixed.

--- configure.in.orig   2007-07-17 07:48:25.000000000 -0700
+++ configure.in        2007-09-16 15:31:09.000000000 -0700
@@ -456,16 +456,16 @@
               [Allow IPv4 connections on IPv6 listening sockets])
 fi

-AC_ARG_ENABLE(exception-hook,APACHE_HELP_STRING(--enable-exception-hook,Enable
fatal exception hook),
-[
+AC_ARG_ENABLE(exception-hook,APACHE_HELP_STRING(--enable-exception-hook,Enable
fatal exception hook))
+if test "$enable_exception_hook" = "yes"; then
     AC_DEFINE(AP_ENABLE_EXCEPTION_HOOK, 1,
               [Allow modules to run hook after a fatal exception])
-])dnl
+fi

-AC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn
on debugging and compile time warnings),
-[
+AC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn
on debugging and compile time warnings))
+if test "$enable_maintainer_mode" = "yes"; then
   APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
-])dnl
+fi

 dnl Conditionally enable PIE support for GNU toolchains.
 AC_ARG_ENABLE(pie,APACHE_HELP_STRING(--enable-pie,Build httpd as a Position
Independent Executable))

------- Comment #1 From Jakub Moc (RETIRED) 2007-09-23 10:05:43 0000 -------
Please, don't paste patches inline, it kills formatting. We have attachments
feature for this.

------- Comment #2 From Michael Sun 2007-09-23 10:25:11 0000 -------
Created an attachment (id=131678) [details]
patch to allow disabling exception-hook and maintainer-mode options

------- Comment #3 From Benedikt Böhm 2007-10-20 17:16:53 0000 -------
fixed in 2.2.6-r2