Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Dec 2014 23:57:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        apache@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 195790] www/mod_perl2: Leave httpd.conf unmolested when installing / uninstalling / upgrading mod_perl2
Message-ID:  <bug-195790-16115-k9lewJyykN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-195790-16115@https.bugs.freebsd.org/bugzilla/>
References:  <bug-195790-16115@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
terry@tmk.com has reassigned Bugzilla Automation <bugzilla@FreeBSD.org>'s
request for maintainer-feedback to apache@FreeBSD.org:
Bug 195790: www/mod_perl2: Leave httpd.conf unmolested when installing /
uninstalling / upgrading mod_perl2
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195790



--- Description ---
Created attachment 150327
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150327&action=edit
Log showing the problem

When portupgrade installs a new version of this port, the "LoadModule
perl_module" in /usr/local/etc/apache*/httpd.conf is unconditionally replaced
with a commented-out version. This can causes subsequent reloads/restarts of
Apache to fail due to other Perl directives in the Apache configuration file,
or (worse) to reload/restart without warning but produce a broken server due to
the lack of mod_perl.

This is particularly tricky because "/usr/local/etc/rc.d/apache22 configtest"
will NOT detect the second of these conditions.

There is some partial handling of this issue in mod_perl2's pkg_plist, which
removes the LoadModule directive but then says "Don't forget to remove all
mod_perl2-related directives in your httpd.conf".

It would be better to leave httpd.conf alone and just tell the user to remove
the LoadModule and other mod_perl2 directives manually. Hopefully the
TestConfig* pieces of the package (upstream) that modify httpd.conf to insert
the LoadModule line will leave httpd.conf alone if the line is already present.
If not, we may need patches for that as well.

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer apache@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195790-16115-k9lewJyykN>