Subject: pkg/19093: www/apache package install appears to be broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <adrianp@stindustries.net>
List: netbsd-bugs
Date: 11/18/2002 00:00:52
>Number:         19093
>Category:       pkg
>Synopsis:       www/apache package install appears to be broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 18 00:02:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Portelli
>Release:        NetBSD 1.6 i386
>Organization:
STIndustries
>Environment:
NetBSD krusty.mdc.stindustries.net 1.6 NetBSD 1.6 (KRUSTY) #8: Sun Nov 17 21:38:49 EST 2002     root@krusty.mdc.stindustries.net:/usr/src/sys/arch/i386/compile/KRUSTY i386
>Description:
The apache package fails on installation.  I think the update from nb1 to nb2 broke it:

===================================================================
RCS file: /ftp/cvs/cvsroot/pkgsrc/www/apache/Makefile,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -p -r1.110 -r1.111
--- pkgsrc/www/apache/Makefile	2002/10/25 09:00:29	1.110
+++ pkgsrc/www/apache/Makefile	2002/11/15 09:08:06	1.111
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.110 2002/10/25 09:00:29 tron Exp $
+# $NetBSD: Makefile,v 1.111 2002/11/15 09:08:06 martti Exp $
 #
 # This pkg does not compile in mod_ssl, only the `mod_ssl EAPI' (a set of
 # code hooks that allow mod_ssl to be compiled separately later, if desired).
@@ -188,6 +188,7 @@ post-install:
 		${RM} -f ${PKG_SYSCONFDIR}/$${file}.default;		\
 	done
 	${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/httpd/htdocs
+	${CHMOD} 0 libexec/cgi-bin/printenv libexec/cgi-bin/test-cgi
 
 .include "../../devel/libmm/buildlink2.mk"
 .include "../../textproc/expat/buildlink2.mk"

>How-To-Repeat:
Do a "make install" for the www/apache package.
>Fix:
--- Makefile.orig       Mon Nov 18 18:57:18 2002
+++ Makefile    Mon Nov 18 18:50:14 2002
@@ -188,7 +188,7 @@
                ${RM} -f ${PKG_SYSCONFDIR}/$${file}.default;            \
        done
        ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/httpd/htdocs
-       ${CHMOD} 0 libexec/cgi-bin/printenv libexec/cgi-bin/test-cgi
+       ${CHMOD} 0 ${PREFIX}/libexec/cgi-bin/printenv ${PREFIX}/libexec/cgi-bin/test-cgi
 
 .include "../../devel/libmm/buildlink2.mk"
 .include "../../textproc/expat/buildlink2.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: