Re: pkg check -ad, llvm10 is missing a required shared library

From: Mel Pilgrim <list_freebsd_at_bluerosetech.com>
Date: Tue, 10 Aug 2021 05:58:05 UTC
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.