<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>193492</bug_id>
          
          <creation_ts>2007-09-23 09:56 0000</creation_ts>
          <short_desc>www-servers/apache-2.2.6-r1 is always compiled with maintainer-mode/exception-hook</short_desc>
          <delta_ts>2007-10-20 17:16:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mike@emobilenetworks.com</reporter>
          <assigned_to>apache-bugs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>mike@emobilenetworks.com</who>
            <bug_when>2007-09-23 09:56:00 0000</bug_when>
            <thetext>www-servers/apache-2.2.6-r1 is always compiled with maintainer-mode/exception-hook  options even though I do not have &apos;debug&apos; 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 &quot;$enable_exception_hook&quot; = &quot;yes&quot;; 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 &quot;$enable_maintainer_mode&quot; = &quot;yes&quot;; 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))</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-09-23 10:05:43 0000</bug_when>
            <thetext>Please, don&apos;t paste patches inline, it kills formatting. We have attachments feature for this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mike@emobilenetworks.com</who>
            <bug_when>2007-09-23 10:25:11 0000</bug_when>
            <thetext>Created an attachment (id=131678)
patch to allow disabling exception-hook and maintainer-mode options

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2007-10-20 17:16:53 0000</bug_when>
            <thetext>fixed in 2.2.6-r2</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>131678</attachid>
            <date>2007-09-23 10:25 0000</date>
            <desc>patch to allow disabling exception-hook and maintainer-mode options</desc>
            <filename>configure.in.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGh0dHBkLTIuMi42L2NvbmZpZ3VyZS5pbi5vcmlnCTIwMDctMDktMjMgMDM6MTA6MjEuMDAw
MDAwMDAwIC0wNzAwCisrKyBodHRwZC0yLjIuNi9jb25maWd1cmUuaW4JMjAwNy0wOS0yMyAwMzox
MzowMy4wMDAwMDAwMDAgLTA3MDAK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