From nobody Tue Aug 10 01:47:00 2021 X-Original-To: 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 8BB51174A04F; Tue, 10 Aug 2021 01:47:14 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-PU1-obe.outbound.protection.outlook.com (mail-pu1apc01olkn0819.outbound.protection.outlook.com [IPv6:2a01:111:f400:febe::819]) (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 4GkG693Plsz4km0; Tue, 10 Aug 2021 01:47:13 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=esq9Cre3ouwn9bCnEl7M/sVXk5CO5JXX8934W1vZ590TmJh5yQJ/jyl0HrAX8LeCRmQ3bYaLLsSMxIwUI8Yc0CwnW6Yt1k7Y9GBdEci8pppwVKHPH1pdb1USX528poIdE+wNQvpNyYSgYKtuAcH2sjrUnhupqUUHHBFywR1gkiFBZOqrzn1TOJWvR76UQiu9FSg5pboKySp9jYZxnnz/9baTuY0qy2rVoJ5p1mIYVG/BaZmmwhVKs49BICXMQgPlI3KmponGGp6i17rwxE/nLr8brjLfQavu38KGx5Wt1fRfHucP8q/mzJ3Hbv0DN/TaJI7mvDCwT6hxFWDjvyMWpA== 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-SenderADCheck; bh=F+Yr460rZhp+m8tSmN5g2AZY6ued3FvrbiJLTHpvRVg=; b=aIvIX4w5JTelzQ2fLCEVDVs2LPi46sWkIBvboK7LI9JVlmFNeRv7dzLg82TzVtmhdjowqaRsQovV0xCGeYfbT81OSokk+EkMLjimZsflksAb0h4ImNwDEH9AzFkwvN8toEFCaEkHkq9uQArIjDYi2VYgC7a35VeI32sJI4ztl3j/5sdpDSPKlU7C2lwaTEjTTprYjHe7iLEkl8opuctCOZ4bIUg7UJzCx3PBHGPMhw4C6TNAGmUQTUG2fVJe9T/P2DF9mU6NiSXXxjkXb2L+HZaRnVH1IWJy2u1L0CDt0HmorO5R5hjeelDVGlYqPxJAKPaE+Sl/pa8J+KCj3w4+Aw== 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=F+Yr460rZhp+m8tSmN5g2AZY6ued3FvrbiJLTHpvRVg=; b=NPz3Ocsxnbrgr1M8DdWuCwHWRtSE27ImfVGHxUy9eNafmcol5/pRf8Hj+JsrYjCMFZyVyKwKcvKVTv/ALSJJ1LB3ZDKf9mJYA3D4Wqf7nazZcOIXxg4vtVFsaqtmfvq5TvcjBsVVdtBRuSHGsOdt39Oh7GuwJlIQ8aHBAVdQhmlXeZ9IEL2KAFaIQALRky6RQu2VS8E4esjeOu+1o+nv5riy658vvNPNWVYZ87rjWOCHvJbFRx6cEk8UgTV4ApwBaa1Zdia2SbHb2KJuQE6+2dDkMKrKVA/EuYWl2MUx3W+WxyPmcpu1400OOZ/2vHXlFDxaWz+EP5J03NhNphbBOg== Received: from PSAPR03MB5639.apcprd03.prod.outlook.com (2603:1096:301:66::13) by PSAPR03MB5671.apcprd03.prod.outlook.com (2603:1096:301:8a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.10; Tue, 10 Aug 2021 01:47:02 +0000 Received: from PSAPR03MB5639.apcprd03.prod.outlook.com ([fe80::8493:3be8:5755:904b]) by PSAPR03MB5639.apcprd03.prod.outlook.com ([fe80::8493:3be8:5755:904b%6]) with mapi id 15.20.4415.013; Tue, 10 Aug 2021 01:47:02 +0000 Subject: Re: pkg check -ad, llvm10 is missing a required shared library From: Tatsuki Makino To: "freebsd-ports@FreeBSD.org" , "ports@FreeBSD.org" References: <209be000-dfa5-0ccc-3125-51841cf1ccec@bluerosetech.com> <24a8af12-8df0-d4ae-deab-4da9e2fab053@smo.de> <3bda144b-f719-dea9-10fb-c7bfe72c7d2e@m5p.com> Message-ID: Date: Tue, 10 Aug 2021 10:47:00 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [WAYNnlUe1JH9y6aUsUMrpdG1nd/cZerb] X-ClientProxiedBy: TYAPR01CA0031.jpnprd01.prod.outlook.com (2603:1096:404:28::19) 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 Received: from T4.test (121.95.67.74) by TYAPR01CA0031.jpnprd01.prod.outlook.com (2603:1096:404:28::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Tue, 10 Aug 2021 01:47:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 18ded212-7594-472c-e674-08d95ba0c01e X-MS-Exchange-SLBlob-MailProps: 7MJMDUNTCtzfBKSLy8jAGQ244NZ42uN8zVI3msVLYA3jVR3utyqlw2ttp+GZw2951uh9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ipzNLg+tgOFtiyfJujY/uXQCCJSB8b8UJ1WTqHd2N1WU8AiHWTtIpyJR53bDKqZH6vOt08Pk0xi+Rv2ady10zaaskQJ3rZEhAwUgGkgZmKS3QUooimPF1NijNPgUkJjN2pvGKT0KY X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VTpDoEdfcoXz4xkUAQKhXhYLw1jzuPFfXiWo218YYhyhmBk1/zpmNDitZk56+y++l6nRMavLY0R/bONbxyYt5Doszgd5DVzJSxqfxhfXFO4wvCxvfxNn2o7YxQtzIeHzlhn8XPqdZiz0N73nh535hw== X-OriginatorOrg: sct-15-20-3174-8-msonline-outlook-792b7.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 18ded212-7594-472c-e674-08d95ba0c01e X-MS-Exchange-CrossTenant-AuthSource: PSAPR03MB5639.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2021 01:47:02.8808 (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: PSAPR03MB5671 X-Rspamd-Queue-Id: 4GkG693Plsz4km0 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=NPz3Ocsx; 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 2a01:111:f400:febe::819 as permitted sender) smtp.mailfrom=tatsuki_makino@hotmail.com X-Spamd-Result: default: False [-2.50 / 15.00]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN(2.50)[]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f400::/48]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[4]; RBL_AMI_RCVD_FAIL(0.00)[121.95.67.74:server fail,2603:1096:301:66::13:server fail]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a01:111:f400:febe::819:from]; NEURAL_HAM_SHORT(-1.00)[-0.999]; TO_DN_EQ_ADDR_ALL(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; RCVD_TLS_LAST(0.00)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1] X-ThisMailContainsUnwantedMimeParts: N Tatsuki Makino wrote on 2021/08/10 07:48: > pkg-1.17.1/libpkg/pkg_elf.c has function filter_system_shlibs. > However, that function is a static function. > Since pkg-check doesn't seem to pass any other such function, pkg check -B will add the system library to the database. > This is probably a mistake. readelf -d /usr/local/llvm10/lib/liblldb.so.10.0.1 returns the following RUNPATH. 0x000000000000001d RUNPATH Library runpath: [$ORIGIN/../lib:$ORIGIN/../../../../lib:/usr/local/lib] I think it's used to create a value that requires /usr/local/llvm10/../../../../lib/libc.so.7 instead of /lib/libc.so.7 when the shlib_list_from_rpath function in pkg-1.17.1/libpkg/elfhints.c is executed. It seems that /usr/local/llvm10/../../../../lib is not a target of filter_system_shlibs. This is also still my prediction. :)