| Summary: | pkg_version output was "?" only | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | NINOMIYA Hideyuki <NINOMIYA Hideyuki <nin> | ||||
| Component: | bin | Assignee: | Bruce A. Mah <bmah> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-bugs->bmah Over to maintainer. State Changed From-To: open->analyzed Committed to -CURRENT, thanks! I will merge this to 4-STABLE and close the PR in a few days. State Changed From-To: analyzed->closed I committed this to 4-STABLE but forgot to close the PR. Thanks! |
When ports tree was not in the default place. pkg_version does not work normally. $ pkg_version /foo/bar/ports/INDEX Output is ImageMagick ? ........ ? It seems to become the above. This is because pkg_version does not refer to environmenti variable ${PORTSDIR}. Fix: pkg_version gets possible to refer to ${PORTSDIR} with this patch and comes to turn over a right result even if I move with ports tree from the place of default. Furthermore, if INDEX is ${PORTSDIR}/INDEX, I do not need to give it as command line option. How-To-Repeat: $ mv /usr/ports /foo/bar/ports $ setenv PORTSDIR /foo/bar/ports $ pkg_version /foo/bar/ports/INDEX