Subject: pkg/20153: apache2 pkg soens't install htdocs
To: None <email@example.com>
From: None <dieter@OpenSource.rave.org>
Date: 02/01/2003 12:23:35
>Synopsis: apache2 pkg soens't install htdocs
>Arrival-Date: Sat Feb 01 12:24:00 PST 2003
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
from the apache2 pkgsrc Makfile make sthe problem go away but I don't know if these lines are needed for something..