Some .so files had wrong permissions which leads to error
patchelf: open: Permission denied
Change-Id: Ib683455a7694779be6516dd8fd8385150b11eeb9
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
%ifnarch x86_64
for file in $( find ./dotnet -name "dotnet" -type f )
do
+ chmod 0755 ${file}
patchelf --set-interpreter %{SDK_PATH}/deps/ld-linux-x86-64.so.2 ${file}
patchelf --set-rpath %{SDK_PATH}/deps/ ${file}
done
for file in $( find ./dotnet -type f \( -name "*.so" -or -name "*.so.*" \) -not -name "*.dbg" -not -name "ld-*.so*" )
do
+ chmod 0755 ${file}
patchelf --set-rpath %{SDK_PATH}/deps/ ${file}
done
%endif