delete useless patches in the source package.
(cherry picked from commit 9fde2c0b4b8b134c4027b107df4c661909aad0ed)
This commit is contained in:
parent
7da51eabb2
commit
cab7417374
36
glibc.spec
36
glibc.spec
@ -67,7 +67,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
Name: glibc
|
Name: glibc
|
||||||
Version: 2.38
|
Version: 2.38
|
||||||
Release: 45
|
Release: 46
|
||||||
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/
|
||||||
@ -262,9 +262,6 @@ Patch9006: fix-Segmentation-fault-in-nss-module.patch
|
|||||||
Patch9007: fix_nss_database_check_reload_and_get_memleak.patch
|
Patch9007: fix_nss_database_check_reload_and_get_memleak.patch
|
||||||
Patch9008: 0001-fix-glibc-build-error-on-x86.patch
|
Patch9008: 0001-fix-glibc-build-error-on-x86.patch
|
||||||
|
|
||||||
%if %{ENABLE_RELOC}
|
|
||||||
Patch9009: reserve-relocation-information-for-sysboost.patch
|
|
||||||
%endif
|
|
||||||
Patch9010: add-Wl-z-noseparate-code-for-so.patch
|
Patch9010: add-Wl-z-noseparate-code-for-so.patch
|
||||||
|
|
||||||
Provides: ldconfig rtld(GNU_HASH) bundled(gnulib)
|
Provides: ldconfig rtld(GNU_HASH) bundled(gnulib)
|
||||||
@ -537,19 +534,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
|
||||||
|
|
||||||
%if %{ENABLE_RELOC}
|
|
||||||
##############################################################################
|
|
||||||
# glibc reloc sub-package
|
|
||||||
##############################################################################
|
|
||||||
%package relocation
|
|
||||||
Summary: Relocations for %{name}
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
BuildRequires: native-turbo-tools
|
|
||||||
|
|
||||||
%description relocation
|
|
||||||
This package contains relocations for %{name}.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Prepare for the build.
|
# Prepare for the build.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -651,9 +635,6 @@ pushd $builddir
|
|||||||
{ cat config.log; false; }
|
{ cat config.log; false; }
|
||||||
|
|
||||||
make %{?_smp_mflags} -O -r %{glibc_make_flags}
|
make %{?_smp_mflags} -O -r %{glibc_make_flags}
|
||||||
%if %{ENABLE_RELOC}
|
|
||||||
objreloc libc.so.6
|
|
||||||
%endif
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -847,11 +828,6 @@ for i in $RPM_BUILD_ROOT%{_prefix}/bin/{xtrace,memusage}; do
|
|||||||
-i $i
|
-i $i
|
||||||
done
|
done
|
||||||
|
|
||||||
%if %{ENABLE_RELOC}
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/relocation/%{_libdir}
|
|
||||||
install -p ${RPM_BUILD_DIR}/%{name}-%{version}/build-%{target}/libc.so.6.relocation ${RPM_BUILD_ROOT}/usr/lib/relocation/%{_libdir}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
touch master.filelist
|
touch master.filelist
|
||||||
touch glibc.filelist
|
touch glibc.filelist
|
||||||
touch common.filelist
|
touch common.filelist
|
||||||
@ -1435,13 +1411,6 @@ fi
|
|||||||
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/services
|
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/services
|
||||||
%ghost %config(missingok,noreplace) /etc/sysconfig/nscd
|
%ghost %config(missingok,noreplace) /etc/sysconfig/nscd
|
||||||
|
|
||||||
%if %{ENABLE_RELOC}
|
|
||||||
%files relocation
|
|
||||||
%dir %attr(500, root, root) /usr/lib/relocation
|
|
||||||
%dir %attr(500, root, root) /usr/lib/relocation/%{_libdir}
|
|
||||||
%attr(400, root, root) /usr/lib/relocation/%{_libdir}/libc.so.6.relocation
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -f nss_modules.filelist -n nss_modules
|
%files -f nss_modules.filelist -n nss_modules
|
||||||
/var/db/Makefile
|
/var/db/Makefile
|
||||||
|
|
||||||
@ -1471,6 +1440,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 10 2024 shenzhongwei <shenzhongwei@kylinos.cn> - 2.38-46
|
||||||
|
- delete useless patches in the source package.
|
||||||
|
|
||||||
* Sat Dec 7 2024 Qingqing Li <liqingqing3@huawei.com> - 2.38-45
|
* Sat Dec 7 2024 Qingqing Li <liqingqing3@huawei.com> - 2.38-45
|
||||||
- nptl: initialize cpu_id_start prior to rseq registration
|
- nptl: initialize cpu_id_start prior to rseq registration
|
||||||
- nptl: initialize rseq area prior to registration
|
- nptl: initialize rseq area prior to registration
|
||||||
|
|||||||
@ -1,25 +0,0 @@
|
|||||||
From b44dbe791e801b4ef40352849b83264e8ad9415b Mon Sep 17 00:00:00 2001
|
|
||||||
From: lw <longwei27@huawei.com>
|
|
||||||
Date: Mon, 21 Aug 2023 15:28:09 +0800
|
|
||||||
Subject: [PATCH] reserve relocation information for sysboost
|
|
||||||
|
|
||||||
---
|
|
||||||
Makerules | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/Makerules b/Makerules
|
|
||||||
index 018780c8..a4603f68 100644
|
|
||||||
--- a/Makerules
|
|
||||||
+++ b/Makerules
|
|
||||||
@@ -534,7 +534,7 @@ lib%.so: lib%_pic.a $(+preinit) $(+postinit) $(link-libc-deps)
|
|
||||||
$(call after-link,$@)
|
|
||||||
|
|
||||||
define build-shlib-helper
|
|
||||||
-$(LINK.o) -shared -static-libgcc -Wl,-O1 $(sysdep-LDFLAGS) \
|
|
||||||
+$(LINK.o) -shared -static-libgcc -Wl,-O1 $(sysdep-LDFLAGS) -Wl,--emit-relocs \
|
|
||||||
$(if $($(@F)-no-z-defs)$(no-z-defs),,-Wl,-z,defs) $(rtld-LDFLAGS) \
|
|
||||||
$(if $($(@F)-no-dt-relr),$(no-dt-relr-ldflag),$(dt-relr-ldflag)) \
|
|
||||||
$(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user