Subject: pkg/20153: apache2 pkg soens't install htdocs
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/01/2003 12:23:35
>Number:         20153
>Category:       pkg
>Synopsis:       apache2 pkg soens't install htdocs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 01 12:24:00 PST 2003
>Originator:     dieter
>Release:        1.6
NetBSD r2d2 1.6 NetBSD 1.6 (R2D2) #0: Sat Sep 14 15:45:04 CEST 2002     root@r2d2:/usr/src/sys/arch/i386/compile/R2D2 i386
Whe building and installing apache2 from pkgsrc, it doesn't install the htdocs in share/httpd/htdocs. the installation ends with
===> [Automatic ELF shared object handling]
ls: /usr/pkg/share/httpd/htdocs/apache_pb.gif: No such file or directory
ls: /usr/pkg/share/httpd/htdocs/apache_pb.png: No such file or directory
ls: /usr/pkg/share/httpd/htdocs/index.html.zh: No such file or directory
===> Registering installation for apache-2.0.44
pkg_create: can't stat `/usr/pkg/share/httpd/htdocs/apache_pb.gif'
pkg_create: can't stat `/usr/pkg/share/httpd/htdocs/apache_pb.png'

The reason why this happens is that the apache2 Makefile checks if the htdocs already exists and if so wants to preserve it. This directory is created by the pkgsrc pre-install script.

Apparently this is caused by recent changes to the pkg build system.
install apache2 from a recent pkgsrc tree
Removing the lines
MAKE_DIRS=              ${PREFIX}/share/httpd
MAKE_DIRS+=             ${PREFIX}/share/httpd/htdocs
from the apache2 pkgsrc Makfile make sthe problem go away but I don't know if these lines are needed for something..