NetBSD Problem Report #29300

From martin@aprisoft.de  Wed Feb  9 08:12:29 2005
Return-Path: <martin@aprisoft.de>
Received: from mail.duskware.de (mail.duskware.de [213.146.108.170])
	by narn.netbsd.org (Postfix) with ESMTP id 9071A63B400
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  9 Feb 2005 08:12:23 +0000 (UTC)
Message-Id: <20050209081219.3D6DC739C0C@emmas.aprisoft.de>
Date: Wed,  9 Feb 2005 09:12:19 +0100 (CET)
From: martin@aprisoft.de
Reply-To: martin@aprisoft.de
To: gnats-bugs@netbsd.org
Subject: some stupid pkg tweaks my httpd.conf
X-Send-Pr-Version: 3.95

>Number:         29300
>Category:       pkg
>Synopsis:       some stupid pkg tweaks my httpd.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 09 08:13:00 +0000 2005
>Closed-Date:    Sat Oct 07 21:03:36 +0000 2006
>Last-Modified:  Sat Oct 07 21:05:01 +0000 2006
>Originator:     Martin Husemann
>Release:        NetBSD 2.0_STABLE
>Organization:
>Environment:
System: NetBSD emmas.aprisoft.de 2.0_STABLE NetBSD 2.0_STABLE (EMMAS) #0: Tue Feb 8 11:15:06 CET 2005 martin@emmas.aprisoft.de:/usr/src/sys/arch/i386/compile/EMMAS i386
Architecture: i386
Machine: i386
>Description:

I did a "make update" in devel/apr, which removed and later rebuild some pkgs:

===> Cleaning for apache-2.0.52nb9
===> Cleaning for ap-php-4.3.10
===> Cleaning for ap2-py23-python-3.1.3nb1
===> Cleaning for subversion-base-1.1.3
===> Cleaning for ap2-subversion-1.1.3
===> Cleaning for p5-subversion-1.1.3
===> Cleaning for py23-subversion-1.1.3
===> Cleaning for subversion-1.1.3
===> Cleaning for apr-0.9.5.2.0.52nb1

That worked fine, and I restarted apache:

# /etc/rc.d/apache restart
Restarting apache.
Syntax error on line 1213 of /usr/pkg/etc/httpd/httpd.conf:
Invalid command 'PythonPath', perhaps mis-spelled or defined by a module not included in the server configuration

This happens, because some realy lame install/deinstall script took the freedom
to mess with *my* httpd.conf file:

# Subversion Part

LoadModule dav_svn_module lib/httpd/mod_dav_svn.so
#LoadModule python_module      lib/httpd/mod_python.so

I suppose deinstallation commented out the module, and later installation did
not remove the comment. Neither of this is acceptable!

>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/29300: some stupid pkg tweaks my httpd.conf
Date: Wed, 16 Feb 2005 15:20:38 +0100

 Thanks to Jeremy Reed I found the culprit:

 [/usr/pkgsrc/www/ap2-python] martin@nelly > fgrep apxs PLIST 
 @exec %D/sbin/apxs -e -a -n python %f
 @unexec %D/sbin/apxs -e -A -n python %f

 Starting with a line like this in httpd.conf:

 LoadModule python_module      lib/httpd/mod_python.so

 a "make update" in www/ap2-python will leave you with 

 # LoadModule python_module      lib/httpd/mod_python.so

 Martin

 N.B.: The message in the build log,
  " Executing `/usr/pkg/sbin/apxs -e -A -n python mod_python.so' "
 was very helpfull to track this down.

State-Changed-From-To: open->closed
State-Changed-By: reed@netbsd.org
State-Changed-When: Sat, 07 Oct 2006 21:03:36 +0000
State-Changed-Why:
I fixed the problem apache module package. It doesn't do the apxs to edit
now. (If needed you must do manually.)


From: "Jeremy C. Reed" <reed@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/29300 CVS commit: pkgsrc/www/ap2-python
Date: Sat,  7 Oct 2006 21:01:16 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	reed
 Date:		Sat Oct  7 21:01:16 UTC 2006

 Modified Files:
 	pkgsrc/www/ap2-python: Makefile PLIST

 Log Message:
 Remove the @exec apxs lines. Don't let this package
 modify Apache's config.

 If someone wants to add a MESSAGE they may.

 This was discussed in May and June.

 This is to close PR #29300.


 To generate a diff of this commit:
 cvs rdiff -r1.17 -r1.18 pkgsrc/www/ap2-python/Makefile
 cvs rdiff -r1.2 -r1.3 pkgsrc/www/ap2-python/PLIST

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.