Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2009 23:45:57 GMT
From:      Manolis Kiagias <manolis@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/130993: pkg_add -n falsely reports present local packages as missing
Message-ID:  <200901252345.n0PNjvrR059720@www.freebsd.org>
Resent-Message-ID: <200901252350.n0PNo1P0074504@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         130993
>Category:       bin
>Synopsis:       pkg_add -n falsely reports present local packages as missing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 25 23:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Manolis Kiagias
>Release:        7.1-RELEASE
>Organization:
>Environment:
FreeBSD aquarius.dyndns.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
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,

pkg_add package-x.y_z.tbz 

would work without any problems, using the packages reported as missing by -n
>How-To-Repeat:
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
>Fix:
None. The packages can still be installed by a plain pkg_add, but using -n can lead to misleading results.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901252345.n0PNjvrR059720>