Date: Mon, 9 Aug 2021 22:58:05 -0700 From: Mel Pilgrim <list_freebsd@bluerosetech.com> To: Tatsuki Makino <tatsuki_makino@hotmail.com>, "freebsd-ports@FreeBSD.org" <freebsd-ports@freebsd.org> Subject: Re: pkg check -ad, llvm10 is missing a required shared library Message-ID: <aa45a6ab-eebf-7280-661f-b19a00467b23@bluerosetech.com> In-Reply-To: <PSAPR03MB5639873CEAAD2E3F2345213DFAF79@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> <PSAPR03MB5639873CEAAD2E3F2345213DFAF79@PSAPR03MB5639.apcprd03.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-08-09 18:47, Tatsuki Makino wrote: > 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. :) Thanks for digging into this. btw, you're doubled-up on the list CC (both ports@ and freebsd-ports@), trimmed here.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aa45a6ab-eebf-7280-661f-b19a00467b23>