Subject: pkg_create: can't stat errors when trying to install a package.
To: None <tech-pkg@netbsd.org>
From: Pritesh Shah <mail2pritesh@gmail.com>
List: tech-pkg
Date: 03/04/2005 17:22:40
Hi,

I'm using NetBSD 2.0 and I'm trying to build a package called gdal.
The configure and build process works fine, but the install process
reports the following error:

....
....
....
for f in data/*.* ; do ./install-sh -c -m 0644 $f /usr/pkg/share/gdal ; done
/bin/sh ./libtool --mode=finish --silent /usr/pkg/lib
`/usr/tmp/pkgsrc/wip/gdal/work.i386/.PLIST' is up to date.
===> [Automatic manual page handling]
===> Compressing manual pages for gdal-1.2.5
===> [Automatic ELF shared object handling]
ls: /usr/pkg/${PYSITELIB}/_gdalmodule.la: No such file or directory
ls: /usr/pkg/${PYSITELIB}/gdal.py: No such file or directory
ls: /usr/pkg/${PYSITELIB}/gdalconst.py: No such file or directory
ls: /usr/pkg/${PYSITELIB}/gdalnumeric.py: No such file or directory
ls: /usr/pkg/${PYSITELIB}/ogr.py: No such file or directory
ls: /usr/pkg/${PYSITELIB}/osr.py: No such file or directory
===> Registering installation for gdal-1.2.5
pkg_create: can't stat `/usr/pkg/${PYSITELIB}/_gdalmodule.la'
pkg_create: can't stat `/usr/pkg/${PYSITELIB}/gdal.py'
pkg_create: can't stat `/usr/pkg/${PYSITELIB}/gdalconst.py'
pkg_create: can't stat `/usr/pkg/${PYSITELIB}/gdalnumeric.py'
pkg_create: can't stat `/usr/pkg/${PYSITELIB}/ogr.py'
pkg_create: can't stat `/usr/pkg/${PYSITELIB}/osr.py'
gdal-1.2.5 requires installed package geos-2.0.0
gdal-1.2.5 requires installed package postgresql74-lib-7.4.7
gdal-1.2.5 requires installed package proj-4.4.7nb1
gdal-1.2.5 requires installed package python24-2.4nb5
gdal-1.2.5 requires installed package xerces-c-2.3.0nb2

I have python2.4 installed and I checked the variable PYSITELIB by :

# make -V PYSITELIB
lib/python2.4/site-packages

#more PLIST
@comment $NetBSD$
....
...
...
${PYSITELIB}/_gdalmodule.la
${PYSITELIB}/gdal.py
${PYSITELIB}/gdalconst.py
${PYSITELIB}/gdalnumeric.py
${PYSITELIB}/ogr.py
${PYSITELIB}/osr.py
...
...
...

Can somebody help me out with this? Thanks in advance.

Cheers,
Pritesh