Created attachment 197060 [details]
qa.sh: use package name instead of port origin
qa.sh uses `pkg annotate -q -S $origin flavor` to get the flavor of file's package. However, if there are multiple flavors of a port origin installed then things brake:
# pkg info -E multimedia/phonon
# pkg annotate -q -S multimedia/phonon flavor
The attached patch ensures ensures the full package name is used, instead of the origin.
Could you provide a port that is broken, to test this?
Or a port that can be broken to test it?
If you have both versions of phonon installed then audio/soundkonverter will fail stage-qa.
Any objections against committing this patch?
A commit references this bug:
Date: Fri Jan 11 12:50:52 UTC 2019
New revision: 489958
Fix proxydeps QA check when multiple flavor of a package are installed.
Previously it would do this:
$ pkg which -q -o /usr/local/lib/libphonon4qt5.so
$ pkg pkg annotate -q -S multimedia/phonon flavor
And that would break things in an interesting way.
This changes makes it use the package name of the required file, which
Note that this problem would probably only ever happen on a live system.
I was not able to find a single port that would trigger this it in a
clean environment (poudriere testport).
Submitted by: dbn