Bug 230770 - ports-mgmt/pkg pkg rquery %M does not return messages
Summary: ports-mgmt/pkg pkg rquery %M does not return messages
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Baptiste Daroussin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-20 11:31 UTC by Graham Perrin
Modified: 2022-12-10 13:42 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (pkg)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2018-08-20 11:31:59 UTC
With www/firefox as an example: 

$ pkg query %M firefox | grep Always
Always:
$ pkg rquery %M firefox

$ pkg rquery -r FreeBSD %M firefox 

$ date ; uname -v
Mon 20 Aug 2018 12:30:41 BST
FreeBSD 12.0-ALPHA2 #2 r337986: Fri Aug 17 22:01:23 BST 2018     root@momh167-gjp4-hpelitebook8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG 
$ pkg --version
1.10.5
$ pkg info pkg
pkg-1.10.5_1
Name           : pkg
Version        : 1.10.5_1
Installed on   : Mon Jul  2 20:10:09 2018 BST
Origin         : ports-mgmt/pkg
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : pkg@FreeBSD.org
WWW            : https://wiki.freebsd.org/pkgng
Comment        : Package manager
Shared Libs provided:
        libpkg.so.4
Annotations    :
        FreeBSD_version: 1200069
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 12.2MiB
Description    :
Package management tool

WWW: https://wiki.freebsd.org/pkgng
$ sudo pkg check -d -a
Checking all packages: 100%
libxul is missing a required shared library: libicuuc.so.61
libxul is missing a required shared library: libicui18n.so.61
$
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2018-08-20 11:40:05 UTC
The same symptom with rquery with FreeBSD 11.1-RELEASE-p12 (tested: GhostBSD in a VirtualBox guest).
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2019-01-09 06:19:24 UTC
A recent use case, from <https://forums.freebsd.org/threads/beginners-guide-how-to-set-up-a-freebsd-desktop-from-scratch.61659/page-2#post-412992> under 'Beginners Guide - How To Set Up A FreeBSD Desktop From Scratch': 

grahamperrin@momh167-gjp4-8570p:~ % pkg rquery %M | grep operator
grahamperrin@momh167-gjp4-8570p:~ %
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2019-04-19 14:19:33 UTC
yes the messages are not included withing repository metadata, that said in this case rquery should not allow %M
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2019-08-14 20:56:04 UTC
> the messages are not included withing repository metadata

Please, what is the logic for omitting the required information?