Re: git: 799245580a71 - main - graphics/mesa: Do not add USE_LDCONFIG for every mesa ports

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 10 Dec 2022 18:50:12 UTC
Jan Beich <jbeich@FreeBSD.org> writes:

> Emmanuel Vadot <manu@FreeBSD.org> writes:
>
>>     Not every mesa ports provides shared libraries intented for dynamic uses
>>     so stop running ldconfig script for those ports.
> [...]
>> diff --git a/graphics/mesa-dri/Makefile b/graphics/mesa-dri/Makefile
>> index ac87f4cef889..e4fe1b570261 100644
>> --- a/graphics/mesa-dri/Makefile
>> +++ b/graphics/mesa-dri/Makefile
>> @@ -26,6 +26,8 @@ ZSTD_DESC=		Use ZSTD for shader cache
>>  ZSTD_LIB_DEPENDS=	libzstd.so:archivers/zstd
>>  ZSTD_MESON_ENABLED=	zstd
>>  
>> +USE_LDCONFIG=		yes
>
> OpenGL drivers in mesa-dri lack headers, SONAME and cannot be used by ld(1)

Oops, ignore SONAME part. It's there but doesn't match filename e.g.,

$ readelf -d /usr/local/lib/dri/iris_dri.so | fgrep SONAME
 0x000000000000000e SONAME               Library soname: [libgallium_dri.so]
$ readelf -d /usr/local/lib/dri/radeonsi_dri.so | fgrep SONAME
 0x000000000000000e SONAME               Library soname: [libgallium_dri.so]

$ ls /usr/local/lib/libgallium_dri.so /usr/local/lib/dri/libgallium_dri.so
ls: /usr/local/lib/dri/libgallium_dri.so: No such file or directory
ls: /usr/local/lib/libgallium_dri.so: No such file or directory