From nobody Wed Aug 3 23:11:49 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LyngL0MyQz4Y4jq for ; Wed, 3 Aug 2022 23:11:58 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn2047.outbound.protection.outlook.com [40.92.52.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LyngK11J4z3fSW for ; Wed, 3 Aug 2022 23:11:56 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n7rLLVDWgs+u3xO+Y6ntKf8PXqjLvm3IIqNJJBiv5UKJrD/lE/441AGgHrkj7hZC681IdJltQAMbeGYngIXORlPXBozwkVfV1juuhAEX+jecMI9/TmHIojlUWuNNj0uEePsHTRyN0SY1ggml7TA/NLo+Lc/DoNeUR4WChQVNBQli4Jvobi02Vm8b19fjD4B6Kr3198Lh9+y2roQZdafYVyKGVYGqI290H/Q61A0vf4CxWZBiE4YEfDew688CSITb/fjC2x5qoKr7OTijQK5/Q0Q4sAUnzIDYu899QOSNW6zwnEhGMcGq8LcHpuLu3fAc0YyODMr++tDLvVgYOIEGuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G4OVWGZuXynRVYq01zpDEAjySEnbAWxjTx9024IH2RQ=; b=OwLhdsIOpxK6h8s3b6lq5kW+ccPcvD0eJ/95aoPl2JJBj2rU5cuNLWI+D84pG2qXHntqYHakZtSyboaGEGaewy8tIrjhK6Ww51aQZXcvqGsf9hnhBTa+FfCbg9RAOrxroM13o62Mml0Xoj2JvJycbEqBPjcAhZPgxRws25AlLqSzsdeqwi9h2XqQEq9CnQArHAcbq1UfaooEG1f68I98GolWF2jOLCc7zD1dZCIgEYV2iz808jfBViy7GG+hri/q+W5EiO/xaHspRr5SWSIAfJ5FwAE9nkPTzmtjf0u0NcSHqOJpB9aPr235kzDgipxTGLIG7VMjRfjg2zrHl8dEqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G4OVWGZuXynRVYq01zpDEAjySEnbAWxjTx9024IH2RQ=; b=bYLGQPmmZBSwxPf53Mphcs6KmpjqpzZeHCWVS1Oa5gxU/fr8pfeC2PLWYvofTUsGxW1q+6910tqmauVoN+RouZWtfx2t4QHsQsaGdxkm8IRQvGu9aQJ27HwRJXN0kx1JGDYtYBjgeL8Krx4Tp8l/w4vJFROrLlH+h3cbaHMDy8BNzF9CWPkCbH7kN3qlqSqbib9vnt5WBWjQ4qnZqZWBH0QsTLC1HVRMEiZo1nxlfold5mggX4pCMm5APJY9XuTybqyeOMCenEAzd5JGZRCy0XpsMHePrPv84+HeShhzIRmUfmNX7DXDUpXNZufi/TCiWywGGz5hfJhonGKJA+Z7IQ== Received: from PSAPR03MB5639.apcprd03.prod.outlook.com (2603:1096:301:66::13) by KL1PR03MB4887.apcprd03.prod.outlook.com (2603:1096:820:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Wed, 3 Aug 2022 23:11:52 +0000 Received: from PSAPR03MB5639.apcprd03.prod.outlook.com ([fe80::41ce:b9b4:104b:69aa]) by PSAPR03MB5639.apcprd03.prod.outlook.com ([fe80::41ce:b9b4:104b:69aa%9]) with mapi id 15.20.5504.014; Wed, 3 Aug 2022 23:11:52 +0000 Subject: Re: ports-mgmt/pkg: pkg query -e %#r condition doesn't match properly , freebsd-ports@freebsd.org References: <202208031420.273EKIij052490@nuc.oldach.net> From: Tatsuki Makino Message-ID: Date: Thu, 4 Aug 2022 08:11:49 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: <202208031420.273EKIij052490@nuc.oldach.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [qhk7fr2DCvYyxFid2FZ+WzUeU416CUHq] X-ClientProxiedBy: TYCP286CA0137.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:31b::15) To PSAPR03MB5639.apcprd03.prod.outlook.com (2603:1096:301:66::13) X-Microsoft-Original-Message-ID: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b53606b8-e45c-48fd-83d6-08da75a58cef X-MS-Exchange-SLBlob-MailProps: LtmIgUwM0qQl1kbA3Kri4MR/Camn5lNpirsh297IMbLkaQs6wLn3o88jU29444jamj7ebbT3hYRh/4tRrrdDf6RpnEGS3hfYt4YQM3EsE0XnuV18WyDMTRbSEYm6GzULpZuDnYq+S6/ORLxSMVg0XRcP9XullLtRUAiyozPcm6BnMUXlS2ijT0qaOfWTUoU/qqPfNSmfgkO9SOt2WAZV2Z1VeR+rBYah/gUOHAvCTN0XMXtqr7I88fDgucfQfU7yvTBz7kAUVm2Boz5f1agixvH4ZfRFY3GCY6IE2cfDyry63e3jzXf4evStG5YNaXJcie8/5Ry5gGekE6sLZfHHloswzNBGISaiNh/7mL264tfoxwqjHkEiLjqVaz9i9qKD1NaWLZB4JwQFoRMiBrDuqRalthdyWttoh43YpwprtMci24mQ8AOkL6LFUgtUl846hJ6HRo0oJ4+WbPPs82YM+SQjrS7uOjVGESHNvKhIZ+dnDoV0r6eDUknrolK2JQgXThcfliLhYVim2llpuC4Jb7ianxpvSo2bS6b08uBPFph8vxndrfI+OaNBcdcRSTO2Xkks0Y/jLT++u06gvgeDumtG16zdPgkRw7YrvixkHWpzj/S+H6Xy7OB2U8+YlEi7xDls0rM+quqdK8AVfbS5b4T9IYXgx2maYDxxbX/3XHZ4rP2JgRuSwtEK44lzglGJrZEn1tMccY3pCU/n7ySrV28erIQkjcQGiEzFvHDXdSjbCbNs83sLyh3tZ/jYOHXws4inOqjKLVZJioTazvzjtA== X-MS-TrafficTypeDiagnostic: KL1PR03MB4887:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CNdyyzJklsj49Zp8qDQuyjK3TASeZFzlcGuagu0ekrvgVzuhQT9ZEtLDUTbLAKee+oCHf0QmUurccUoeVBskUDguNq1SY+9sv6xWwQcKEl+U53AJ/j1elYlHYfarety5UVNuMhpJ8Adl1cjPG0tpINCZGE9qCqL/A2o+uq5l/Xntb5HfmhQPnZTNuPSG2U+EWlqxcCvGahoFzoWR3FIKooNDGrj5ELyhvEMVYxn0Q17d2zN4JU5jICWa7ngSyiOrAtmVkpf0iKq3UaZylxPT2EjFl6W0c0ZRkejkuxFbqZyO9eyDWiIydLbOPz03WDAVkmxh3gsH9s+DYyBladPUvFp2qNz/scLYrW40PkuI/n7ssDcvhQS9pBAkZiW5mr9IUMOnqrI2ZeZJeWYcD5FQd2+nN/XAsEVglIbVh5WoEhN9O/dlYgCE/OsqkP9vWcAUeo7MQAwaypmWClccG6y4qAyYiw7VSbSLSZG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cvK09rdEtTYi9x?= =?utf-8?B?cVZDcXlMT0h6b29ZQ2QwU2NtN09LbUI5eUlFNktLMk5qNGdVejZXTk11TVRT?= =?utf-8?B?bjFsTEVUeWtpVW9rUWZLQ0psNnZQN2RocXZldkJReHRKM0tMM0o3aDlNdWdS?= =?utf-8?B?d2JSUmNCUUM4S0pHVjBpb00rWURKc2dSbHRFQUpZV1FXSStKVy9sWjZXdzJ6?= =?utf-8?Q?yndjzUTO2JALW3iybg=3D?= X-OriginatorOrg: sct-15-20-4734-24-msonline-outlook-c0b75.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: b53606b8-e45c-48fd-83d6-08da75a58cef X-MS-Exchange-CrossTenant-AuthSource: PSAPR03MB5639.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2022 23:11:52.4500 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB4887 X-Rspamd-Queue-Id: 4LyngK11J4z3fSW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=bYLGQPmm; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of tatsuki_makino@hotmail.com designates 40.92.52.47 as permitted sender) smtp.mailfrom=tatsuki_makino@hotmail.com X-Spamd-Result: default: False [-1.64 / 15.00]; FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-0.997]; NEURAL_HAM_SHORT(-0.97)[-0.973]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; NEURAL_HAM_MEDIUM(-0.17)[-0.171]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; RCVD_IN_DNSWL_NONE(0.00)[40.92.52.47:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.52.47:from]; DKIM_TRACE(0.00)[hotmail.com:+]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[hotmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N 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.