Subject: Re: pkg_create: can't stat errors when trying to install a package.
To: Pritesh Shah <mail2pritesh@gmail.com>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-pkg
Date: 03/05/2005 22:57:04
On Fri, 4 Mar 2005, Pritesh Shah wrote:
> 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.

Not really - the question is if the files are actually there.
The error from pkg_create indicates they're not, but as the PYSITELIB 
variable is not expanded properly, that may be the root of the problem.


  - Hubert

-- 
NetBSD - Free AND Open!      (And of course secure, portable, yadda yadda)