Bug 213910

Summary: ports-mgmt/pkg: pkq query %q evaluates abi instead of arch
Product: Ports & Packages Reporter: Stefan Ehmann <shoesoft>
Component: Individual Port(s)Assignee: Walter Schwarzenfeld <w.schwarzenfeld>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: bapt, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (pkg)
Version: Latest   
Hardware: Any   
OS: Any   

Description Stefan Ehmann 2016-10-30 08:27:20 UTC
PKG-QUERY(8) says in EVALUATION FORMAT/Variables:
%q Architecture of the package (type string)

Actually abi seems to be used instead of arch

$ pkg -v
1.9.2

$ pkg info -R adns | egrep "abi|arch"
abi = "FreeBSD:11:amd64";
arch = "freebsd:11:x86:64";

$ pkg query -e '%q = freebsd:11:x86:64' '%o: %q'
<no results>

$ pkg query -e '%q = FreeBSD:11:amd64' '%o: %q' | grep adns
dns/adns: freebsd:11:x86:64
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-13 06:45:15 UTC
Maintainer feedback?
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-08-26 15:29:28 UTC
Seem solved:

pkg query -e '%q = FreeBSD:11:amd64' '%o: %q' | grep adns
dns/adns: FreeBSD:11:amd64