bin/130993: pkg_add -n falsely reports present local packages as
manolis at FreeBSD.org
Sun Jan 25 15:50:02 PST 2009
>Synopsis: pkg_add -n falsely reports present local packages as missing
>Arrival-Date: Sun Jan 25 23:50:01 UTC 2009
>Originator: Manolis Kiagias
FreeBSD aquarius.dyndns.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Using -n to perform a "dry run" test installing packages from i.e. a local directory does not yield the expected results.
Example: Assume a package with all its dependencies is stored in a local directory. Then:
pkg_add -n package-x.y_z.tbz will report:
Package dependency package1-x.y_z for package-x.y_z.tbz not found!
Package dependency package2-x.y_z for package-x.y_z.tbz not found!
and so on, while package1, package2 etc are also present in the same directory. In fact,
would work without any problems, using the packages reported as missing by -n
Using ports, build any package with dependencies on a FreeBSD system. Then create a binary package for it, using pkg_create -Rb
pkg_create -Rb package_name-x.y_z
Copy the resulting package files to another machine. Then run:
pkg_add -n package_name-x.y_z.tbz
Watch -n reporting the present dependencies as missing
Running without -n will install the packages normally.
The above behaviour does not seem to be affected by PKG_PATH values
None. The packages can still be installed by a plain pkg_add, but using -n can lead to misleading results.
More information about the freebsd-bugs