Welcome to CRUX bug tracking.
FS#407 - prt-get fails to find package when exporting a PKGMK_PACKAGE_DIR in pkgmk.conf
Attached to Project:
CRUX
Opened by Johannes Winkelmann (jw) - Tuesday, 30 December 2008, 16:42 GMT+2
Opened by Johannes Winkelmann (jw) - Tuesday, 30 December 2008, 16:42 GMT+2
|
DetailsIt appears that adding 'export PKGMK_PACKAGE_DIR="/usr/ports/pkg"' is not understood orrectly by prt-get; removing the 'export' fixes this
|
This task depends upon
could you paste a better example about how prt-get fails to find a package?
It occurs when another directory is used for "PKGMK_PACKAGE_DIR." An example, if I have package#1.0.pkg.tar.gz sitting in my package directory (/usr/ports/packages/), but run "prt-get install package" , pkgmk will un-necessary compile the package. However, if the package exists in the default "/usr/ports/opt/package/package#1.0.pkg.tar.gz, prt-get will simply install the package.
[...]
630 if (StringHelper::startsWith(s, "PKGMK_PACKAGE_DIR=")) {
631 candidate = s;
632 }
[...]
The 'getPkgDestFromFile' function gets the PKGMK_PACKAGE_DIR value only when the line from pkgmk.conf starts with that word, so that could be the reason for what removing the 'export' fixes it.