misc/155548: pkg_info -g mistakenly adds $PREFIX to global paths

Max Shonichev mshonich at yandex.ru
Mon Mar 14 11:10:14 UTC 2011


>Number:         155548
>Category:       misc
>Synopsis:       pkg_info -g mistakenly adds $PREFIX to global paths
>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:   Mon Mar 14 11:10:13 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Max Shonichev
>Release:        8.1-RELEASE
>Organization:
private software company
>Environment:
FreeBSD freebsd81 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
rrdtool was built from ports tree with following make.conf options recommended to disable man files creation:

freebsd81# cat /etc/make.conf
NOMANPAGES=1
NOPORTDOCS=1
NODOCS=1
MANPREFIX=/tmp/

freebsd81# pkg_info -v -x rrdtool | grep File | head
File: lib/python2.6/site-packages/py_rrdtool-0.2.1-py2.6.egg-info
File: /tmp//man/man1/bin_dec_hex.1.gz
File: /tmp//man/man1/cdeftutorial.1.gz

next, pkg_info -g 
freebsd81# pkg_info -g -x rrdtool
Information for rrdtool-1.4.5:

Mismatched Checksums:
pkg_info: /usr/local//tmp//man/man1/bin_dec_hex.1.gz doesn't exist
pkg_info: /usr/local//tmp//man/man1/cdeftutorial.1.gz doesn't exist
pkg_info: /usr/local//tmp//man/man1/rpntutorial.1.gz doesn't exist
pkg_info: /usr/local//tmp//man/man1/rrd-beginners.1.gz doesn't exist

as you can see, pkg_info -v shows correct paths of 'installed' man files (e.g. /tmp/), but pkg_info -g thinks that local user prefix (/usr/local/) should be added (note the double slash) to them as well, which is wrong. 

I guess proper digging through sources could help find similar issues more critical than this one.
>How-To-Repeat:
just follow the established procedures
>Fix:
dont' bother

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


More information about the freebsd-bugs mailing list