From owner-freebsd-apache@FreeBSD.ORG Sun Dec 7 23:57:27 2014 Return-Path: Delivered-To: apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C345D270 for ; Sun, 7 Dec 2014 23:57:27 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 90DBB6BB for ; Sun, 7 Dec 2014 23:57:27 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sB7NvRQc078974 for ; Sun, 7 Dec 2014 23:57:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: apache@FreeBSD.org Subject: [Bug 195790] New: www/mod_perl2: Leave httpd.conf unmolested when installing / uninstalling / upgrading mod_perl2 Date: Sun, 07 Dec 2014 23:57:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: terry@tmk.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2014 23:57:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195790 Bug ID: 195790 Summary: www/mod_perl2: Leave httpd.conf unmolested when installing / uninstalling / upgrading mod_perl2 Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: apache@FreeBSD.org Reporter: terry@tmk.com Assignee: apache@FreeBSD.org Flags: maintainer-feedback?(apache@FreeBSD.org) 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 --- Auto-assigned to maintainer apache@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.