Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193492 - www-servers/apache-2.2.6-r1 is always compiled with maintainer-mode/exception-hook
Summary: www-servers/apache-2.2.6-r1 is always compiled with maintainer-mode/exception...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-23 09:56 UTC by Michael Sun
Modified: 2007-10-20 17:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to allow disabling exception-hook and maintainer-mode options (configure.in.patch,1.09 KB, patch)
2007-09-23 10:25 UTC, Michael Sun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Sun 2007-09-23 09:56:00 UTC
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 Jakub Moc (RETIRED) gentoo-dev 2007-09-23 10:05:43 UTC
Please, don't paste patches inline, it kills formatting. We have attachments feature for this.
Comment 2 Michael Sun 2007-09-23 10:25:11 UTC
Created attachment 131678 [details, diff]
patch to allow disabling exception-hook and maintainer-mode options
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2007-10-20 17:16:53 UTC
fixed in 2.2.6-r2