Revert "!589 Generate available relocations for sysboost"
This reverts commit d2186f2cd7ca09f9ee1688b58214d49594ce7ccd, reversing changes made to 8892758dbf0f6c8ee597af204f109068cd4e8de1.
This commit is contained in:
parent
06da24306c
commit
bf65691800
34
glibc.spec
34
glibc.spec
@ -66,7 +66,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
Name: glibc
|
Name: glibc
|
||||||
Version: 2.34
|
Version: 2.34
|
||||||
Release: 120
|
Release: 119
|
||||||
Summary: The GNU libc libraries
|
Summary: The GNU libc libraries
|
||||||
License: %{all_license}
|
License: %{all_license}
|
||||||
URL: http://www.gnu.org/software/glibc/
|
URL: http://www.gnu.org/software/glibc/
|
||||||
@ -573,17 +573,6 @@ Currently, provide pthread_condition function.
|
|||||||
To keep older applications compatible, glibc-compat-2.17 provides libpthread_nonshared.a
|
To keep older applications compatible, glibc-compat-2.17 provides libpthread_nonshared.a
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# glibc reloc sub-package
|
|
||||||
##############################################################################
|
|
||||||
%package reloc
|
|
||||||
Summary: Relocations for %{name}
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
BuildRequires: sysboost-devel
|
|
||||||
|
|
||||||
%description reloc
|
|
||||||
This package contains relocations for %{name}.
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Prepare for the build.
|
# Prepare for the build.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -648,7 +637,7 @@ builddir=build-%{target}
|
|||||||
rm -rf $builddir
|
rm -rf $builddir
|
||||||
mkdir $builddir
|
mkdir $builddir
|
||||||
pushd $builddir
|
pushd $builddir
|
||||||
../configure CC="%GCC" CXX="%GXX" CFLAGS="$BuildFlags" LDFLAGS="-Wl,--emit-relocs" \
|
../configure CC="%GCC" CXX="%GXX" CFLAGS="$BuildFlags" \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--with-headers=%{_prefix}/include $EnableKernel \
|
--with-headers=%{_prefix}/include $EnableKernel \
|
||||||
--with-nonshared-cflags=-Wp,-D_FORTIFY_SOURCE=2 \
|
--with-nonshared-cflags=-Wp,-D_FORTIFY_SOURCE=2 \
|
||||||
@ -1062,13 +1051,6 @@ echo "%{_prefix}/libexec/glibc-benchtests/validate_benchout.py*" >> benchtests.f
|
|||||||
echo "%{_libdir}/libpthread_nonshared.a" >> compat-2.17.filelist
|
echo "%{_libdir}/libpthread_nonshared.a" >> compat-2.17.filelist
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
pushd build-%{target}
|
|
||||||
objreloc ./libc.so
|
|
||||||
objreloc ./elf/ld.so
|
|
||||||
install -p -m 755 ./libc.so.relocation $RPM_BUILD_ROOT%{_libdir}
|
|
||||||
install -p -m 755 ./elf/ld.so.relocation $RPM_BUILD_ROOT%{_libdir}
|
|
||||||
popd
|
|
||||||
|
|
||||||
reliantlib=""
|
reliantlib=""
|
||||||
|
|
||||||
function findReliantLib()
|
function findReliantLib()
|
||||||
@ -1411,8 +1393,6 @@ fi
|
|||||||
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/gai.conf
|
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/gai.conf
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license COPYING COPYING.LIB LICENSES
|
%license COPYING COPYING.LIB LICENSES
|
||||||
%exclude %{_libdir}/libc.so.relocation
|
|
||||||
%exclude %{_libdir}/ld.so.relocation
|
|
||||||
|
|
||||||
%files -f common.filelist common
|
%files -f common.filelist common
|
||||||
%dir %{_prefix}/lib/locale
|
%dir %{_prefix}/lib/locale
|
||||||
@ -1437,8 +1417,6 @@ fi
|
|||||||
%attr(0644,root,root) %{_prefix}/lib/locale/locale-archive.update
|
%attr(0644,root,root) %{_prefix}/lib/locale/locale-archive.update
|
||||||
|
|
||||||
%files -f devel.filelist devel
|
%files -f devel.filelist devel
|
||||||
%exclude %{_libdir}/libc.so.relocation
|
|
||||||
%exclude %{_libdir}/ld.so.relocation
|
|
||||||
|
|
||||||
%files -f nscd.filelist -n nscd
|
%files -f nscd.filelist -n nscd
|
||||||
%config(noreplace) /etc/nscd.conf
|
%config(noreplace) /etc/nscd.conf
|
||||||
@ -1488,15 +1466,7 @@ fi
|
|||||||
%files -f compat-2.17.filelist compat-2.17
|
%files -f compat-2.17.filelist compat-2.17
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files reloc
|
|
||||||
%{_libdir}/libc.so.relocation
|
|
||||||
%{_libdir}/ld.so.relocation
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon May 8 2023 liutie <liutie4@huawei.com> - 2.34-120
|
|
||||||
- malloc: libc.so: create reloc for sysboost
|
|
||||||
- malloc: elf/ld.so: create reloc for sysboost
|
|
||||||
|
|
||||||
* Mon May 08 2023 laokz <zhangkai@iscas.ac.cn> - 2.34-119
|
* Mon May 08 2023 laokz <zhangkai@iscas.ac.cn> - 2.34-119
|
||||||
- Backport RISC-V patches:
|
- Backport RISC-V patches:
|
||||||
- Align stack in clone (from v2.35)
|
- Align stack in clone (from v2.35)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user