Fixes of symlink and script
authorSlava Barinov <v.barinov@samsung.com>
Wed, 15 Feb 2023 09:54:29 +0000 (12:54 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 3 May 2023 11:12:15 +0000 (20:12 +0900)
Change-Id: I340e89ae96ce11c9a879432c814b1be9ba6b4991

packaging/glibc.spec

index 8e5f033..81fe03d 100644 (file)
@@ -616,6 +616,10 @@ mkdir -p %{buildroot}%{_datadir}/doc/glibc
 cp -p build/manual/libc/*.html %{buildroot}%{_datadir}/doc/glibc
 %endif
 
+# TODO: REMOVE ME AFTER ISSUE IS RESOLVED
+# Somehow there's no libpthread.so symlink
+ln -sf %{_libdir}/libpthread.so.0 %{buildroot}%{_libdir}/libpthread.so
+
 #
 # Create ld.so.conf
 #
@@ -705,8 +709,8 @@ done
 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz
 
 %post devel
-# REMOVE ME AFTER ISSUE IS IDENTIFIED
-sed -e 's/__glibc_has_include/__has_include/' -i $(/usr/bin/gcc -xc /dev/null -E -Wp,-v 2>&1 | sed -n 's,^ ,,p' | grep "include-fixed")/bits/statx.h
+# TODO: REMOVE ME AFTER ISSUE IS IDENTIFIED
+find %{_libdir}/gcc -name 'statx.h' -exec sed -e 's/__glibc_has_include/__has_include/' -i {} \;
 
 %files
 %manifest %{name}.manifest