Subject: pkg/36991: pkgfind hardcodes pkgsrc path
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 09/15/2007 09:05:00
>Number:         36991
>Category:       pkg
>Synopsis:       pkgfind hardcodes pkgsrc path
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 15 09:05:00 +0000 2007
>Originator:     Jan Danielsson
>Release:        NetBSD/amd64 4.0 RC1
Confuse A Cat Inc.
NetBSD 4.0_RC1 NetBSD 4.0_RC1 (ANCABOOT) #0: Thu Sep 13 22:40:06 CEST 2007 amd64

I have pkgsrc in /home/pkgsrc/pkgsrc, but I build binary packages in a pkg_comp chroot. I installed pkgfind (pkgtools/pkgfind) from my binary package built inside pkg_comp. The results are:

$ pkgfind wmnet
pkgfind: /usr/pkgsrc: No such file or directory

Isn't there a better way to determine where pkgsrc is during runtime?

Build pkgfind binary package in a chroot with a different pkgsrc path than outside the chroot. Install the binary package outside the chroot. Try to use the newly installed pkgfind.