From: Slava Barinov Date: Wed, 16 Sep 2020 08:54:11 +0000 (+0300) Subject: Fix file permissions before patching X-Git-Tag: accepted/tizen/6.0/unified/20201030.120514^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F244248%2F1;p=platform%2Fcore%2Fdotnet%2Fbuild-tools.git 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 --- 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