From nobody Sat Nov 11 05:51:40 2023 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 4SS4Zp5dMtz4yxXv for ; Sat, 11 Nov 2023 05:52:02 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01acsn20804.outbound.protection.outlook.com [IPv6:2a01:111:f400:feab::804]) (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 4SS4Zn6kytz3VNm for ; Sat, 11 Nov 2023 05:52:01 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bC666S8+B3ozv16BMHJnMqa5Yc5gAO/sdrLztfBR3AS/H4qBrRg5o5ZCUHtXINrOta1Axv2qC8PLdDabnellFZRIkOzet3PZdSYbGUTvg3logZVrZxA0ByHmS3jXH2GfDcK/ejC38qaG0Ye0rn+r1BZg0oVzMG8KkqFUMov8RCsBxU8LoVlGYJeEuVRpoJfIY37F3y/B9ZdPqGCTbwBmWYmcffoQYyNEnNqBA9UGn4oyfcxHUT5LvcHkCcEz3TCWXsT/aiOmKzaQDw2G7SsEWZOVhLWQYtlo4zbNicn5Tpni0iU5aBdrjXbA8J6lasBP2HISLrL59tg/ikMGF+CU8A== 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=NGrscIBWLbRg/UKsWJGznJzYG0SV8UnzgP3heZKfQfY=; b=ZMZACB+NAxGe5/RifJ3Il06nCqbKZc9qYzYNnsUmyHaJ9Wfcb1w6v3FBXByBvdac0agGRXP9AQJb3ONPoSXGcpBat4EYiwtdiPmT5+4EB0fELtkp8fHvI1wavLPD5sDErjAzbPs/QnJ8Jc75zwsm3fD1nb7NXr4QvqTKAHn/9tuQjGO4FIyHwCrCeOHl8qECWzrO+vh3Q03iCyVgDj8WtAKqYiiF1XTCCYAjjqmw4jjZ1lFZw2VRVHLAksY9oPEXHpnDeNWoXDXXOLsjLQJtgcFa2EbpyhuARxSYG3U0o46Pl/dooQJZsa0Jk0mXHEzLVZNyRACmuOtvzX6QuZFUwA== 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=NGrscIBWLbRg/UKsWJGznJzYG0SV8UnzgP3heZKfQfY=; b=BcUAcAXQlTKinjKTOJFm3kPctP0UdeIgfBQS3kf5lZWLpJcvECWBIrW3hY9nkAx910ctAr631n1XzxpvNzhIiTThqrpazHcBSbVv3v4jwQkWvSODwPrsP7LMchHItkpSUTPATAx837bLBzAQT4syNl8kz/sgUnf12JMQnWW8sreDtl8Amnt7DGP5RjuY0yrVbMezVBDmW6o+76hyCxKkoP+uAB7egGAERANo1OQQ/jKyHbxzt0tD/6db+eC2w1VZ0V/Uiuh/FIyMAcKMqZyFxVp9Bq8+7pUv9/vqi2IlwoOtkdydAFjm/O80JGiQNJoFnABFvuft+wcqt9Lpul1q5Q== Received: from TYZPR01MB5037.apcprd01.prod.exchangelabs.com (2603:1096:400:25d::14) by OSQPR01MB6572.apcprd01.prod.exchangelabs.com (2603:1096:604:278::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.21; Sat, 11 Nov 2023 05:51:53 +0000 Received: from TYZPR01MB5037.apcprd01.prod.exchangelabs.com ([fe80::24e2:c7f:95c5:e070]) by TYZPR01MB5037.apcprd01.prod.exchangelabs.com ([fe80::24e2:c7f:95c5:e070%6]) with mapi id 15.20.6977.018; Sat, 11 Nov 2023 05:51:53 +0000 Subject: Re: pkg check -B tcpdump: libcap_dns.so.2 not found To: "John W. O'Brien" , FreeBSD Ports References: <1271b099-2709-4c18-ad3d-d0475ed4c05f@radioprosciutto.org> From: Tatsuki Makino Message-ID: Date: Sat, 11 Nov 2023 14:51:40 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: <1271b099-2709-4c18-ad3d-d0475ed4c05f@radioprosciutto.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [n5W2Q9kfzpWHr7VtjchQhBUQ4L0QKnZh] X-ClientProxiedBy: SG2PR06CA0237.apcprd06.prod.outlook.com (2603:1096:4:ac::21) To TYZPR01MB5037.apcprd01.prod.exchangelabs.com (2603:1096:400:25d::14) X-Microsoft-Original-Message-ID: <07329fca-98f9-9eaf-96c5-0f581ee96003@hotmail.com> 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-TrafficTypeDiagnostic: TYZPR01MB5037:EE_|OSQPR01MB6572:EE_ X-MS-Office365-Filtering-Correlation-Id: b3c3ed23-1c75-43f6-fd4e-08dbe27a49f9 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 80PHVMRv2wX3GKnFIouLI6/Zj1U1SkUmJtKDY3G3OkoU5ax58I2RqcCnvEGhxF+88om8R+oDfyRZG9USgbICRdokn/rN3YdSNLJVN/AZsVZlpte5MnoGd86xUTnvtrYuxtGh79A5uAionRYNvHAdNS4kcn3Mjx9XF6KCAvSADNHu9l03xJ25vd1oIAADhvA1HRxjbrIJXmZaRRMrCk1gBUmTwccsQkol+2hYPfTEI12HujUyo+lFb0MpoOjyYGSk9+GzPUsrg+efrT5/E8AOADpDD9dgPaCIQv40kpJapldtOj/Jrkn7F76hm5ppb12I6G+6devOLODOTnNH9Sng+RscOdO+uKOhhc3wsA0Zi7oodh9EStW50M7ETbBDETV0RyRDzw45B0gs4wVlm1AnTAJmxR9fymGoohV/UMybUKlBFxuCtjTts8u+xax5vaQGKyYRKvNtWEO0GSD/KQMCvsP346uMJd7OClEyGtu+z0j8QMwrHJM2O3jJ6CAH94ukywSfsrlaNI54YO1qIh/M3uOG8GoP+3xaECEmlW23vzPUN0u1T6ADanmK9FeMoq/ziVNPWer15qceipmdvCS8mR6TyWgbpq2W2I9CdOuNVyUmXOmqNYci/QWcX0VMvJFW X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N1R4My85WWw3OHhtQVFteE5oNmZObC9QVUZqZFhZKzBsSjRnVmliRVV6UFdM?= =?utf-8?B?dE53RXlUc21mUnlSNnorVFFtcmYzOEJlM2V0Q3J3VlpYK281VUtlNW1WcFRz?= =?utf-8?B?TnJZbTRoNlNrdlVtbTNxbDVIdEhwTWw1RGVuNUhKTkVzdmF6ZzBVdU13Z1No?= =?utf-8?B?NnRtTllpcG80NlpWN3hCRW9MbkdvVDhvTFhsTFlwV2FnT1VpMUNOcjNlNG9k?= =?utf-8?B?bWYrSHlDNWowMndYVU9NMzBrQUVuZllEVlN2aFUrMTE0aVZ4bk1kclRIbTJJ?= =?utf-8?B?c1c4L01tWUxVN2ExOVRndC9lNTZLOUFhVXNHTHNRLzQvSVJ4T0Z0L0pzTG1R?= =?utf-8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elBUUnBr?= =?utf-8?B?ZE9NQzUwZmROVi95YjJBaXlxaDVBYlNlTWQ2TTloUUhvd2JZaU0rZ3hPUFVW?= =?utf-8?B?ZWdJWERRUFROa3d6a1N4dUtPd3dyYmxzSHNRQTNaRVYxVkYwTVpxUWlZZUlZ?= =?utf-8?B?NmJLdCtHN1ZEY1JVUGNpdWQyQ3VHSm1VOXF3MGYrK3JsYzd2S0JKYm5WRzdT?= =?utf-8?B?L0JGNlR0N1pZdlZ4ZkdnMjc3KzFaSkZleWdKWjA5a0lodncrb1g3bHRyYXRy?= =?utf-8?B?UmNTcmVPY20weEhLTDlza05UWFhkQnplRHlVVWVUUS9DRVFpSG5VZE5XUy9S?= =?utf-8?B?YjJVSHlYWGJ6cmxXaGVna080aG5rU3U0eldiTVpQZHZ4TmVMbEt6am40UlpZ?= =?utf-8?Q?jH0IsSYwWnr0gvgFK3VzoNOPJypVwa70iIUuGz/BenXE=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-d8e84.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: b3c3ed23-1c75-43f6-fd4e-08dbe27a49f9 X-MS-Exchange-CrossTenant-AuthSource: TYZPR01MB5037.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2023 05:51:53.6386 (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: OSQPR01MB6572 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US] X-Rspamd-Queue-Id: 4SS4Zn6kytz3VNm John W. O'Brien wrote on 2023/11/11 11:25: > On 11/10/23 16:26, Tatsuki Makino wrote: >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261550 > > I can reproduce the example you cite in comment 8, and yet "-d" and "-B" output cover disjoint packages on this system. > That is, it seems like bug 261550 is about shlibs that are provided by base ending up being recorded in the local package database as if they are provided by packages. Something about how the llvm15 package is produced and/or how its metadata is ingested into the local package database results in required/provided data that is invalid. > That is, it seems like the tcpdump anomaly is fundamentally different than the llvm15 example from bug 261550. I checked. This is a different problem than bug 261550. And it is presumed that this does not occur at 15?-CURRENT. My 12.x-STABLE still has the cause of this problem. Here is how I looked into it. cd /tmp/ echo 'int main() { return 0; }' > /tmp/test.c clang -shared -Wl,--soname,libaaaaa.so -o /tmp/libaaaaa.so /tmp/test.c clang /tmp/test.c -L/tmp -laaaaa truss -o /tmp/truss.log ./a.out grep -e ^openat.\*libaaaaa /tmp/truss.log The result of the last grep is the following. openat(AT_FDCWD,"/lib/libaaaaa.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file or directory' openat(AT_FDCWD,"/usr/lib/libaaaaa.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file or directory' openat(AT_FDCWD,"/usr/lib/compat/libaaaaa.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file or directory' openat(AT_FDCWD,"/usr/local/lib/libaaaaa.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file or directory' openat(AT_FDCWD,"/usr/local/lib/compat/pkg/libaaaaa.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file or directory' openat(AT_FDCWD,"/lib/casper/libaaaaa.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file or directory' openat(AT_FDCWD,"/lib/libaaaaa.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file or directory' openat(AT_FDCWD,"/usr/lib/libaaaaa.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) ERR#2 'No such file or directory' I can understand it because it is related to ldconfig up to /usr/local/lib/compat/pkg, but then it jumps to /lib/casper. This is due to the following. https://cgit.freebsd.org/src/tree/libexec/rtld-elf/paths.h?h=stable/12#n59 This allows tcpdump to load libcap_dns.so.2. However, pkg does not seem to treat that directory as a base library directory. It is presumed that the main branch will not have this problem because it has already been moved from /lib/casper to /lib. > Would freebsd-pkg@ be a better forum for this discussion? I do not subscribe, so please take this :) Regards.