Fix hidden dependencies for AMDuProfSys

It tries to dlopen libcrypt.so.1 and libstdc++.so.6, so we make sure
they are available by adding them to the runpath.

Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
Rodrigo Arias 2025-09-16 15:57:04 +02:00
parent cad88f92a8
commit 84830c66e6

View File

@ -16,6 +16,7 @@
, libGLU , libGLU
, dbus , dbus
, rocmPackages , rocmPackages
, libxcrypt-legacy
}: }:
let let
@ -52,6 +53,7 @@ in
glib glib
libGL libGL
libGLU libGLU
libxcrypt-legacy
xorg.libX11 xorg.libX11
xorg.libXext xorg.libXext
xorg.libXi xorg.libXi
@ -74,6 +76,7 @@ in
tar -x -v -C $out --strip-components=1 -f $src tar -x -v -C $out --strip-components=1 -f $src
rm $out/bin/AMDPowerProfilerDriverSource.tar.gz rm $out/bin/AMDPowerProfilerDriverSource.tar.gz
patchelf --replace-needed libroctracer64.so.1 libroctracer64.so $out/bin/ProfileAgents/x64/libAMDGpuAgent.so patchelf --replace-needed libroctracer64.so.1 libroctracer64.so $out/bin/ProfileAgents/x64/libAMDGpuAgent.so
patchelf --add-needed libcrypt.so.1 --add-needed libstdc++.so.6 $out/bin/AMDuProfSys
set +x set +x
''; '';
} }