Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2022 08:11:49 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        Helge Oldach <freebsd@oldach.net>, freebsd-ports@freebsd.org
Subject:   Re: ports-mgmt/pkg: pkg query -e %#r condition doesn't match properly <PSAPR03MB5639FB7587281A570DE507F9FA9C9@PSAPR03MB5639.apcprd03
Message-ID:  <PSAPR03MB56391BF9DDCAC869E85B64FCFA9C9@PSAPR03MB5639.apcprd03.prod.outlook.com>
In-Reply-To: <202208031420.273EKIij052490@nuc.oldach.net>
References:  <202208031420.273EKIij052490@nuc.oldach.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Helge Oldach wrote on 2022/08/03 23:20:
> Maybe a port with multiple flavors just counts as a single dependency
> %#r? Just a wild guess though.
> 

This is probably because they only check origin matches.
I see such SQL when I run it with pkg -dddddddddddddddddddddddd query.

DBG(4)[70361]> Pkgdb: running 'WITH flavors AS   (SELECT package_id, value.annotation ... WHERE ((SELECT COUNT(*) FROM deps AS d WHERE d.origin=p.origin)!=1) ORDER BY ...

For example, in my environment, I get the following results.

> pkg query -e "%#r > 7" "%n:%#r" | grep xephyr\\\|xorg-
xephyr:0
xorg-nestserver:0
xorg-server:8

The following changes will prevent matching all at the same time.

> pkg query -e "%#r > 8" "%n:%#r" | grep xephyr\\\|xorg-

Regards.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAPR03MB56391BF9DDCAC869E85B64FCFA9C9>