Subject: pkg/34876: pkgsrc port pkgtools/digest doesn't install correctly on Darwin/MacOS X
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <u.hobelmann@web.de>
List: pkgsrc-bugs
Date: 10/22/2006 10:00:01
>Number: 34876
>Category: pkg
>Synopsis: pkgsrc port pkgtools/digest doesn't install correctly on Darwin/MacOS X
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 22 10:00:00 +0000 2006
>Originator: Ulrich Hobelmann
>Release: -
>Organization:
>Environment:
Darwin firebird.heh.uni-oldenburg.de 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
The pkgtools/digest port doesn't work on Darwin, as it uses a hardwired path to install itself.
I followed the instructions for Darwin to install pkgsrc into a UFS diskimage and set the path accordingly. Bootstrap worked fine.
The problem: digest doesn't install into the correct path, but into /usr/pkg/bin, where other ports or parts of the pkgsrc-make system don't find it (they look in the correct path).
>How-To-Repeat:
Install pkgsrc on a Mac into a non-obvious location, such as /Volumes/PKGSRC (according to instructions).
Install digest (which is AFAIK done automatically by audit-packages).
Try /your-path/pkg/sbin/download-vulnerability-list. It'll say:
/Volumes/PKGSRC/pkg/sbin/download-vulnerability-list: line 1: /Volumes/PKGSRC/pkg/bin/digest: No such file or directory
***WARNING*** Checksum mismatch - recorded SHA1 checksum "7baf0475d421a435a1852f8a62036aec0debf93b", calculated checksum ""
>Fix:
Don't know enough about the pkgsrc build system...
Digest should respect the global settings, and install into /my-path/pkg/bin, not into /usr/pkg/bin.