maintainer-feedback requested: [Bug 195790] www/mod_perl2: Leave httpd.conf unmolested when installing / uninstalling / upgrading mod_perl2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 7 23:57:27 UTC 2014


terry at tmk.com has reassigned Bugzilla Automation <bugzilla at FreeBSD.org>'s
request for maintainer-feedback to apache at 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 at FreeBSD.org> ---
Auto-assigned to maintainer apache at FreeBSD.org


More information about the freebsd-apache mailing list