From 49fba0b5891ad4b7ca51210a22af13fa6b639718 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Wed, 16 Sep 2020 11:54:11 +0300 Subject: [PATCH] Fix file permissions before patching Some .so files had wrong permissions which leads to error patchelf: open: Permission denied Change-Id: Ib683455a7694779be6516dd8fd8385150b11eeb9 Signed-off-by: Slava Barinov --- packaging/dotnet-build-tools.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/dotnet-build-tools.spec b/packaging/dotnet-build-tools.spec index 4cf4b70..764482d 100644 --- a/packaging/dotnet-build-tools.spec +++ b/packaging/dotnet-build-tools.spec @@ -41,11 +41,13 @@ tar xvfz %{SOURCE22} -C dotnet/deps %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 -- 2.7.4