How to find ports name from package that is a flavor?

cracauer@

Developer
Given (1) a ports tree and (2) the name of a package that is a non-default flavor of a differently named port, how do I find which port it is coming from?

E.g. qemu-guest-agent
 
Maybe make -n of the port that has flavors and grep out the dependency builds that it triggers with this flavor enabled, and hope you recognize the special case port?
 
Maybe make -n of the port that has flavors and grep out the dependency builds that it triggers with this flavor enabled, and hope you recognize the special case port?

But I don't know which directory to start `make -n` in.
 
But I don't know which directory to start `make -n` in.
In the port dir but all dependencies that are already installed will not show up anymore. It's a chain of if conditions that shows what would be done by make in the current situation. Something must differ if you add a FLAVOR= assignment to the make command that's recognized..
 
But there is no way to ask the ports tree for that info?
It might not be exactly what you were hoping for.
Code:
$ /usr/ports/Tools/scripts/portsearch qemu-guest-agent

Port:   qemu-guest-agent-11.1.0
Path:   /usr/ports/emulators/qemu
Info:   QEMU CPU Emulator (guest agent)
Maint:  bofh@FreeBSD.org
Index:  emulators
B-deps: ...
 
Back
Top