Fix file permissions before patching 48/244248/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.120514 accepted/tizen/6.0/unified/hotfix/20201103.052156 accepted/tizen/6.5/unified/20211028.101901 accepted/tizen/unified/20200917.055730 submit/tizen/20200916.234640 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 submit/tizen_6.5/20211028.162201 tizen_6.0.m2_release tizen_6.5.m2_release
authorSlava Barinov <v.barinov@samsung.com>
Wed, 16 Sep 2020 08:54:11 +0000 (11:54 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Wed, 16 Sep 2020 08:56:23 +0000 (11:56 +0300)
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>
packaging/dotnet-build-tools.spec

index 4cf4b70..764482d 100644 (file)
@@ -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