Date: Tue, 10 Aug 2021 10:47:00 +0900 From: Tatsuki Makino <tatsuki_makino@hotmail.com> To: "freebsd-ports@FreeBSD.org" <freebsd-ports@freebsd.org>, "ports@FreeBSD.org" <ports@freebsd.org> Subject: Re: pkg check -ad, llvm10 is missing a required shared library Message-ID: <PSAPR03MB5639873CEAAD2E3F2345213DFAF79@PSAPR03MB5639.apcprd03.prod.outlook.com> In-Reply-To: <PSAPR03MB56395E4CAE820D36561DBD3EFAF69@PSAPR03MB5639.apcprd03.prod.outlook.com> References: <209be000-dfa5-0ccc-3125-51841cf1ccec@bluerosetech.com> <24a8af12-8df0-d4ae-deab-4da9e2fab053@smo.de> <3bda144b-f719-dea9-10fb-c7bfe72c7d2e@m5p.com> <PSAPR03MB56395E4CAE820D36561DBD3EFAF69@PSAPR03MB5639.apcprd03.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAPR03MB5639873CEAAD2E3F2345213DFAF79>