Bug 178604 - pkg_info(1): pkg_info -g reports symlinks as missing when ther _are_ there
Summary: pkg_info(1): pkg_info -g reports symlinks as missing when ther _are_ there
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-14 00:20 UTC by Ronald F. Guilmette
Modified: 2016-12-10 15:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald F. Guilmette 2013-05-14 00:18:16 UTC
>Number:         178604
>Category:       bin
>Synopsis:       pkg_info -g reports symlinks as missing when ther _are_ there
>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 May 13 23:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Ronald F. Guilmette
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
entr0py
>Environment:

System: FreeBSD 9.1-RELEASE amd64

>Description:

If the "pkg_info -g" command is executed for a package/port whose
installation included the creation of a symlink pointing to a non-
existant file, then pkg_info will generate and print a misleading
and incorrect error message saying that the (symlink) file in question
"doesn't exist".

This is misleading and incorrect.

>How-To-Repeat:

portsintstall ghostscript9-9.06_1
pkg_info -g ghostscript9-9.06_1

the result printed will include:

pkg_info: /usr/local/share/ghostscript/9.06/Resource/CIDFont/fonts doesn't exist

>Fix:

Left as an exercise for the reader.
 
But seriously folks, a proper fix should be fairly trivial.  I will cook
up patches, if requested.
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
Comment 1 Ronald F. Guilmette 2013-05-14 00:20:01 UTC
If the "pkg_info -g" command is executed for a package/port whose
installation included the creation of a symlink pointing to a non-
existant file, then pkg_info will generate and print a misleading
and incorrect error message saying that the (symlink) file in question
"doesn't exist".

This is misleading and incorrect.

Fix: 

Left as an exercise for the reader.
 
But seriously folks, a proper fix should be fairly trivial.  I will cook
up patches, if requested.
How-To-Repeat: 
portsintstall ghostscript9-9.06_1
pkg_info -g ghostscript9-9.06_1

the result printed will include:

pkg_info: /usr/local/share/ghostscript/9.06/Resource/CIDFont/fonts doesn't exist