Bug 255071

Summary: ports-mgmt/pkg: search -Q required-by isn't working from what I can tell
Product: Ports & Packages Reporter: Henrik Hudson <ports>
Component: Individual Port(s)Assignee: freebsd-pkg (Nobody) <pkg>
Status: New ---    
Severity: Affects Many People CC: jamie, pkg
Priority: --- Flags: linimon: maintainer-feedback? (pkg)
Version: Latest   
Hardware: amd64   
OS: Any   

Description Henrik Hudson 2021-04-14 23:10:02 UTC
I'm trying to figure out why my poudriere build keeps building python27 and isn't removing it. I figured I could do:
   pkg search -Q required-by python27

It just returns python27 as such:
python27-2.7.18_1
Comment        : Interpreted object-oriented programming language



As an example of depends / required-by that I think should return something:
   pkg search -d py37-pip

returns:
py37-pip-20.2.3
Comment        : Tool for installing and managing Python packages
Depends on     :
  python37-3.7.10
  py37-setuptools-44.0.0



then doing:  pkg search -Q required-by python37

just returns:
python37-3.7.10
Comment        : Interpreted object-oriented programming language


Shouldn't this be returning at least py37-pip-20.2.3 ???