Subject: pkg/19095: www/apache broken Makefile
To: None <gnats-bugs@gnats.netbsd.org>
From: Oliver Tonnhofer <olt@bogosoft.com>
List: netbsd-bugs
Date: 11/18/2002 10:14:43
>Number:         19095
>Category:       pkg
>Synopsis:       missing ${PREFIX} in apache Makefile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 18 01:15:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Tonnhofer
>Release:        NetBSD 1.6
>Organization:
none
>Environment:
	
	
System: NetBSD fud.local 1.6 NetBSD 1.6 (MYKERNEL) #0: Mon Sep 16 20:43:29 CEST 2002 olt@fud.local:/usr/src/sys/arch/i386/compile/MYKERNEL i386
Architecture: i386
Machine: i386
>Description:
chmod command in post-install needs ${PREFIX}
${CHMOD} 0 libexec/cgi-bin/printenv libexec/cgi-bin/test-cgi
	
>How-To-Repeat:
$ cd /usr/pkgsrc/www/apache
$ make install
[snip]
/bin/chmod 0 libexec/cgi-bin/printenv libexec/cgi-bin/test-cgi
chmod: libexec/cgi-bin/printenv: No such file or directory
chmod: libexec/cgi-bin/test-cgi: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache
	
>Fix:
===================================================================
RCS file: /cvsroot/pkgsrc/www/apache/Makefile,v
retrieving revision 1.112
diff -u -r1.112 Makefile
--- Makefile    2002/11/15 10:40:26     1.112
+++ Makefile    2002/11/18 09:13:35
@@ -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: