1 |
# <epoch>:<version>-<release> tags for glibc main package |
# <epoch>:<version>-<release> tags for glibc main package |
2 |
%define glibcversion 2.32_tmb_NO_2.33_or_selinux_allowed_yet |
%define glibcversion 2.33 |
3 |
%define __glibcrelease 14 |
%define __glibcrelease 1 |
4 |
%define glibcepoch 6 |
%define glibcepoch 6 |
5 |
|
|
6 |
%define source_package glibc-%{glibcversion} |
%define source_package glibc-%{glibcversion} |
171 |
%endif |
%endif |
172 |
# (tmb) force new gcc 10.2 |
# (tmb) force new gcc 10.2 |
173 |
BuildRequires: %{cross_prefix}gcc >= 10.2.1-0.20210130.1 |
BuildRequires: %{cross_prefix}gcc >= 10.2.1-0.20210130.1 |
174 |
# (tmb) force latest binutils for aarch64 STO_AARCH64_VARIANT_PCS |
# (tmb) force latest binutils |
175 |
BuildRequires: %{cross_prefix}binutils >= 1:2.35.2-1 |
BuildRequires: %{cross_prefix}binutils >= 1:2.36.1-1 |
176 |
# we need the static dash |
# we need the static dash |
177 |
%define ash_bin /usr/bin/dash.static |
%define ash_bin /usr/bin/dash.static |
178 |
Requires(post): dash-static |
Requires(post): dash-static |
197 |
BuildRequires: spec-helper >= 0.31.2 |
BuildRequires: spec-helper >= 0.31.2 |
198 |
|
|
199 |
### |
### |
200 |
### upstream release/2.32/master branch |
### upstream release/2.33/master branch |
201 |
### git format-patch --start-number 200 glibc-2.32..origin/release/2.32/master |
### git format-patch --start-number 200 glibc-2.33..origin/release/2.33/master |
202 |
### |
### |
203 |
Patch200: 0200-x86-64-Fix-FMA4-detection-in-ifunc-BZ-26534.patch |
Patch200: 0200-nsswitch-return-result-when-nss-database-is-locked-B.patch |
204 |
Patch201: 0201-NEWS-Update-for-BZ-26534-fix.patch |
Patch201: 0201-tunables-Simplify-TUNABLE_SET-interface.patch |
205 |
Patch202: 0202-intl-Handle-translation-output-codesets-with-suffixe.patch |
Patch202: 0202-x86-Use-SIZE_MAX-instead-of-long-int-1-for-tunable-r.patch |
206 |
Patch203: 0203-string-Fix-strerrorname_np-return-value-BZ-26555.patch |
Patch203: 0203-tunables-Disallow-negative-values-for-some-tunables.patch |
207 |
Patch204: 0204-Set-version.h-RELEASE-to-stable-Bug-26700.patch |
Patch204: 0204-S390-Add-new-hwcap-values.patch |
208 |
Patch205: 0205-AArch64-Improve-backwards-memmove-performance.patch |
Patch205: 0205-string-Work-around-GCC-PR-98512-in-rawmemchr.patch |
|
Patch206: 0206-AArch64-Use-__memcpy_simd-on-Neoverse-N2-V1.patch |
|
|
Patch207: 0207-sysvipc-Fix-SEM_STAT_ANY-kernel-argument-pass-BZ-266.patch |
|
|
Patch208: 0208-sysvipc-Fix-IPC_INFO-and-MSG_INFO-handling-BZ-26639.patch |
|
|
Patch209: 0209-sysvipc-Fix-IPC_INFO-and-SHM_INFO-handling-BZ-26636.patch |
|
|
Patch210: 0210-Reversing-calculation-of-__x86_shared_non_temporal_t.patch |
|
|
Patch211: 0211-x86-Optimizing-memcpy-for-AMD-Zen-architecture.patch |
|
|
Patch212: 0212-aarch64-Fix-DT_AARCH64_VARIANT_PCS-handling-BZ-26798.patch |
|
|
Patch213: 0213-aarch64-Add-unwind-information-to-_start-bug-26853.patch |
|
|
Patch214: 0214-Remove-__warn_memset_zero_len-BZ-25399.patch |
|
|
Patch215: 0215-Remove-__warndecl.patch |
|
|
Patch216: 0216-support-Provide-a-way-to-reorder-responses-within-th.patch |
|
|
Patch217: 0217-support-Provide-a-way-to-clear-the-RA-bit-in-DNS-ser.patch |
|
|
Patch218: 0218-resolv-Handle-transaction-ID-collisions-in-parallel-.patch |
|
|
Patch219: 0219-resolv-Serialize-processing-in-resolv-tst-resolv-txn.patch |
|
|
Patch220: 0220-struct-_Unwind_Exception-alignment-should-not-depend.patch |
|
|
Patch221: 0221-sh-Add-sh4-fpu-Implies-folder.patch |
|
|
# CVE-2020-27618 |
|
|
Patch222: 0222-iconv-Accept-redundant-shift-sequences-in-IBM1364-BZ.patch |
|
|
Patch223: 0223-tests-mcheck-New-variable-to-run-tests-with-MALLOC_C.patch |
|
|
Patch224: 0224-Fix-buffer-overrun-in-EUC-KR-conversion-module-bz-24.patch |
|
|
Patch225: 0225-x86-64-Avoid-rep-movsb-with-short-distance-BZ-27130.patch |
|
|
Patch226: 0226-Update-for-BZ-27130-fix.patch |
|
|
Patch227: 0227-x86-Set-header.feature_1-in-TCB-for-always-on-CET-BZ.patch |
|
|
Patch228: 0228-x86-Check-IFUNC-definition-in-unrelocated-executable.patch |
|
|
Patch229: 0229-aarch64-Fix-missing-BTI-protection-from-dependencies.patch |
|
|
Patch230: 0230-aarch64-align-address-for-BTI-protection-BZ-26988.patch |
|
|
Patch231: 0231-elf-Move-note-processing-after-l_phdr-is-updated.patch |
|
|
Patch232: 0232-elf-Pass-the-fd-to-note-processing.patch |
|
|
Patch233: 0233-aarch64-Use-mmap-to-add-PROT_BTI-instead-of-mprotect.patch |
|
|
Patch234: 0234-__vfscanf_internal-fix-aliasing-violation-bug-26690.patch |
|
|
Patch235: 0235-aarch64-fix-static-PIE-start-code-for-BTI-BZ-27068.patch |
|
|
Patch236: 0236-gconv-Fix-assertion-failure-in-ISO-2022-JP-3-module-.patch |
|
209 |
|
|
210 |
### |
### |
211 |
### upstream master branch |
### upstream master branch |
212 |
### starts from number 300 |
### starts from number 300 |
213 |
### |
### |
|
Patch300: 0300-Use-O_CLOEXEC-in-sysconf-BZ-26791.patch |
|
|
Patch301: 0301-linux-Allow-adjtime-with-NULL-argument-BZ-26833.patch |
|
|
# CVE-2020-29562 |
|
|
Patch302: 0302-iconv-Fix-incorrect-UCS4-inner-loop-bounds-BZ-26923.patch |
|
|
Patch303: 0303-Add-NEWS-entry-for-CVE-2020-29562-BZ-26923.patch |
|
|
Patch304: 0304-Fix-parsing-of-sys-devices-system-cpu-online-bug-258.patch |
|
|
Patch305: 0305-Handle-out-of-memory-case-in-svc_tcp.c-svc_unix.c-re.patch |
|
|
Patch306: 0306-malloc-Detect-infinite-loop-in-_int_free-when-freein.patch |
|
|
Patch308: 0308-aarch64-fix-stack-missing-after-sp-is-updated.patch |
|
|
|
|
|
### |
|
|
### syscall list update |
|
|
### |
|
|
Patch500: 0500-Update-syscall-lists-for-Linux-5.8.patch |
|
|
Patch501: 0501-Update-syscall-lists-for-Linux-5.9.patch |
|
|
Patch502: 0502-Update-syscall-lists-for-Linux-5.10.patch |
|
214 |
|
|
215 |
### |
### |
216 |
### Mageia patches |
### Mageia patches |
222 |
|
|
223 |
# various path fix, according to usrmove |
# various path fix, according to usrmove |
224 |
Patch01: glibc-2.17-fhs-usrmove.patch |
Patch01: glibc-2.17-fhs-usrmove.patch |
|
# try to fallback on loading /lib/libnss_*.so.X.Y when the loading |
|
|
# of /lib/libnss_*.so.X failed. Should be dropped, IMHO. |
|
|
Patch04: glibc-2.17-nss-upgrade.patch |
|
225 |
|
|
226 |
Patch06: glibc-2.26-share-locale.patch |
Patch06: glibc-2.26-share-locale.patch |
227 |
# use xvt instead of xterm in xtrace.sh |
# use xvt instead of xterm in xtrace.sh |
245 |
Patch23: glibc-2.3.4-timezone.patch |
Patch23: glibc-2.3.4-timezone.patch |
246 |
Patch24: glibc-2.10.1-biarch-cpp-defines.patch |
Patch24: glibc-2.10.1-biarch-cpp-defines.patch |
247 |
|
|
|
# fix a typo, safe to send upstream |
|
|
Patch27: glibc-2.32-ENOTTY-fr-translation.patch |
|
248 |
Patch29: glibc-2.3.5-biarch-utils.patch |
Patch29: glibc-2.3.5-biarch-utils.patch |
249 |
|
|
|
# remove multiarch header, Ma* specific patch |
|
|
# check if still needed or if the work was finished |
|
|
Patch30: glibc-2.26-multiarch.patch |
|
|
|
|
250 |
# translation fixes, need to be checked with some i18n team member |
# translation fixes, need to be checked with some i18n team member |
251 |
# should be safe to send upstream once checked |
# should be safe to send upstream once checked |
252 |
Patch35: glibc-2.16.0-force-gb18030-for-zh_CN.patch |
Patch35: glibc-2.16.0-force-gb18030-for-zh_CN.patch |
1006 |
|
|
1007 |
%if !%{build_timezone} |
%if !%{build_timezone} |
1008 |
rm -f %{buildroot}%{_sysconfdir}/localtime |
rm -f %{buildroot}%{_sysconfdir}/localtime |
1009 |
rm -f %{buildroot}%{_sbindir}/zdump |
rm -f %{buildroot}%{_bindir}/zdump |
1010 |
rm -f %{buildroot}%{_sbindir}/zic |
rm -f %{buildroot}%{_sbindir}/zic |
1011 |
rm -rf %{buildroot}%{_datadir}/zoneinfo |
rm -rf %{buildroot}%{_datadir}/zoneinfo |
1012 |
%endif |
%endif |
1124 |
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/ld.so.conf |
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/ld.so.conf |
1125 |
%dir %{_sysconfdir}/ld.so.conf.d |
%dir %{_sysconfdir}/ld.so.conf.d |
1126 |
%config(noreplace) %{_sysconfdir}/rpc |
%config(noreplace) %{_sysconfdir}/rpc |
1127 |
%doc nis/nss |
#doc nis/nss |
1128 |
%doc posix/gai.conf |
%doc posix/gai.conf |
1129 |
%{_datadir}/locale/locale.alias |
%{_datadir}/locale/locale.alias |
1130 |
/sbin/sln |
/sbin/sln |