[Tizen] Create list dynamic dependencies of crossgen2 in RPM
authorj-h.choi <j-h.choi@samsung.com>
Mon, 10 Jan 2022 07:53:58 +0000 (16:53 +0900)
committerGleb Balykov <g.balykov@samsung.com>
Tue, 27 Sep 2022 12:50:22 +0000 (15:50 +0300)
packaging/coreclr.spec
packaging/crossgen2-mic.txt [deleted file]

index f89512bbaef860ffb0bbf47dd00eaf3b39aff896..0e2a07e7dd485b380e9d0e054851000cb0cb04f1 100755 (executable)
@@ -548,10 +548,11 @@ chmod +x %{buildroot}/%{fxtestdir}/runtest.sh
 
 # crossgen2-mic
 %ifarch x86_64
-cp %{_reldir_crossgen2_publish}/crossgen2                              %{buildroot}%{dotnetmicdir}
-cp %{_reldir_crossgen2_publish}/libjitinterface_x64.so                 %{buildroot}%{dotnetmicdir}
-cp %{_reldir_crossgen2_publish}/libclrjit_unix_armel_x64.so            %{buildroot}%{dotnetmicdir}
-cp %{_reldir_crossgen2_publish}/libclrjit_unix_arm64_x64.so            %{buildroot}%{dotnetmicdir}
+crossgen2_self_contained=("crossgen2" "libjitinterface_x64.so" "libclrjit_unix_armel_x64.so" "libclrjit_unix_arm64_x64.so")
+for name in "${crossgen2_self_contained[@]}";
+do
+  cp %{_reldir_crossgen2_publish}/$name    %{buildroot}%{dotnetmicdir}
+done
 
 result_list=("ld-linux-x86-64.so.2" "libssl.so.1.1")
 search_ldd() {
@@ -575,18 +576,21 @@ search_ldd() {
   fi
 }
 
-result_list+=$(search_ldd %{_reldir_crossgen2_publish}/crossgen2)
-result_list+=$(search_ldd %{_reldir_crossgen2_publish}/libclrjit_unix_armel_x64.so)
-result_list+=$(search_ldd %{_reldir_crossgen2_publish}/libclrjit_unix_arm64_x64.so)
-result_list+=$(search_ldd %{_reldir_crossgen2_publish}/libjitinterface_x64.so)
+for name in "${crossgen2_self_contained[@]}";
+do
+  result_list+=$(search_ldd %{_reldir_crossgen2_publish}/$name)
+  echo $name: | tee -a %{buildroot}%{dotnetmicdir}/crossgen2-mic.txt > /dev/null
+  /usr/bin/ldd %{_reldir_crossgen2_publish}/$name | tee -a %{buildroot}%{dotnetmicdir}/crossgen2-mic.txt > /dev/null
+done
 result_list+=$(search_ldd %{buildroot}/../../../../../lib64/libssl.so.1.1)
 
 unique_result=($(echo "${result_list[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))
 for name in "${unique_result[@]}";
 do
   cp %{buildroot}/../../../../../lib64/$name    %{buildroot}%{dotnetmicdir}/$name
+  echo $name: | tee -a %{buildroot}%{dotnetmicdir}/crossgen2-mic.txt > /dev/null
+  /usr/bin/ldd %{buildroot}/../../../../../lib64/$name | tee -a %{buildroot}%{dotnetmicdir}/crossgen2-mic.txt > /dev/null
 done
-cp %{_builddir}/%{name}-%{version}/packaging/crossgen2-mic.txt    %{buildroot}%{dotnetmicdir}
 %endif
 
 # coreclr-test
diff --git a/packaging/crossgen2-mic.txt b/packaging/crossgen2-mic.txt
deleted file mode 100644 (file)
index 4df9f60..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-crossgen2-mic.noarch.rpm
-
-crossgen2:
-       linux-vdso.so.1 (0x00007fff92ffe000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb96deb3000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb96dcaf000)
-       libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fb96da92000)
-       libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007fb96d847000)
-       librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb96d63f000)
-       libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb96d427000)
-       libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb96d09e000)
-       libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb96cd00000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb96c90f000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007fb96eb16000)
-       libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007fb96c639000)
-       libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007fb96c407000)
-       libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007fb96c203000)
-       libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007fb96bff8000)
-       libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007fb96bdf4000)
-       libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fb96bbda000)
-ld-linux-x86-64.so.2:
-       statically linked
-libc.so.6:
-       /lib64/ld-linux-x86-64.so.2 (0x00007fa968ad7000)
-       linux-vdso.so.1 (0x00007ffca4b95000)
-libclrjit_unix_arm64_x64.so:
-       linux-vdso.so.1 (0x00007ffe1ff18000)
-       libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa14ef5c000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa14ed3d000)
-       librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fa14eb35000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa14e931000)
-       libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fa14e5a8000)
-       libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa14e20a000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa14de19000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007fa14f3fa000)
-libclrjit_unix_armel_x64.so:
-       linux-vdso.so.1 (0x00007ffe682b0000)
-       libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff80126d000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff80104e000)
-       librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff800e46000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff800c42000)
-       libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff8008b9000)
-       libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff80051b000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff80012a000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007ff8016e3000)
-libcom_err.so.2:
-       linux-vdso.so.1 (0x00007ffd3a3b9000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5befd7f000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5bef98e000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f5beff9e000)
-libcrypto.so.1.1:
-       linux-vdso.so.1 (0x00007ffd56fb2000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f66ac703000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f66ac4e4000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f66ac0f3000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f66acb58000)
-libdl.so.2:
-       linux-vdso.so.1 (0x00007ffd27a9a000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa41c5ec000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007fa41c9dd000)
-libgcc_s.so.1:
-       linux-vdso.so.1 (0x00007ffcb63dc000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f028312f000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f0283520000)
-libgssapi_krb5.so.2:
-       linux-vdso.so.1 (0x00007fffda2cb000)
-       libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f6d736b2000)
-       libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f6d73480000)
-       libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f6d7327c000)
-       libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f6d73071000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6d72e6d000)
-       libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f6d72c69000)
-       libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f6d72a4f000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6d7265e000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6d7243f000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f6d73988000)
-libjitinterface_x64.so:
-       linux-vdso.so.1 (0x00007ffe315d0000)
-       libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007faac99fe000)
-       libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007faac9660000)
-       libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007faac9448000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faac9057000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007faac9d87000)
-libk5crypto.so.3:
-       linux-vdso.so.1 (0x00007ffda41a8000)
-       libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007fd64744f000)
-       libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007fd64724b000)
-       libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fd647031000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd646c40000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd646a3c000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007fd64765a000)
-libkeyutils.so.1:
-       linux-vdso.so.1 (0x00007ffd20929000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f39bc783000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f39bcb74000)
-libkrb5.so.3:
-       linux-vdso.so.1 (0x00007ffdc49a5000)
-       libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f7973cbe000)
-       libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f7973aba000)
-       libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f79738af000)
-       libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f79736ab000)
-       libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f7973491000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f79730a0000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7972e81000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f7973ef0000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7972c7d000)
-libkrb5support.so.0:
-       linux-vdso.so.1 (0x00007ffdcabf4000)
-       libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f1cc8339000)
-       libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f1cc811f000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1cc7f1b000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1cc7b2a000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f1cc853d000)
-libm.so.6:
-       linux-vdso.so.1 (0x00007ffe1d172000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc622c26000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007fc623017000)
-libpthread.so.0:
-       linux-vdso.so.1 (0x00007fff6b9c8000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f72a99e3000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f72a9dd4000)
-libresolv.so.2:
-       linux-vdso.so.1 (0x00007ffde7898000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb980132000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007fb980523000)
-librt.so.1:
-       linux-vdso.so.1 (0x00007fff3e9ae000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fac07686000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fac07295000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007fac078a5000)
-libssl.so.1.1:
-       linux-vdso.so.1 (0x00007ffe01dfc000)
-       libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f96677d9000)
-       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f96675ba000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f96671c9000)
-       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9666fc5000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f9667ca4000)
-libstdc++.so.6:
-       linux-vdso.so.1 (0x00007fff619e7000)
-       libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f34b807b000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f34b7c8a000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007f34b843a000)
-       libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f34b7a72000)
-libz.so.1:
-       linux-vdso.so.1 (0x00007ffdf43d8000)
-       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd91e302000)
-       /lib64/ld-linux-x86-64.so.2 (0x00007fd91e6f3000)
-