[Tizen] Fix patchelf skipping (#369) accepted/tizen/unified/20231219.160330
author이형주/MDE Lab(SR)/삼성전자 <leee.lee@samsung.com>
Mon, 18 Dec 2023 21:24:50 +0000 (06:24 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 18 Dec 2023 21:24:50 +0000 (06:24 +0900)
packaging/coreclr.spec

index e180c77..ef5da87 100755 (executable)
@@ -218,8 +218,9 @@ cp %{SOURCE1} .
 LD_INTERPRETER=$(patchelf --print-interpreter /emul/usr/bin/gcc)
 LD_LOCAL_INTERPRETER=$(patchelf --print-interpreter ./.dotnet/dotnet)
 
-%if "%{?LD_INTERPRETER}" == "%{?LD_LOCAL_INTERPRETER}"
-%else
+if [ "$LD_INTERPRETER" == "$LD_LOCAL_INTERPRETER" ]; then
+       echo "Skip patchelf"
+else
 LD_RPATH=$(patchelf --print-rpath /emul/usr/bin/gcc)
 for file in $( find ./.dotnet ./.packages -name "dotnet" -type f -o -name "ilasm" -type f)
 do
@@ -230,7 +231,7 @@ for file in $( find ./.dotnet ./.packages ./libicu-57.1 -iname "*.so" -or -iname
 do
     patchelf --set-rpath ${LD_RPATH}:%{_builddir}/%{name}-%{version}/libicu-57.1/ ${file}
 done
-%endif
+fi
 %endif
 
 %ifarch %{ix86}