107 Commits

Author SHA1 Message Date
li-miaomiao_zhr
eec5557670 processing of annotated patch files in spec files 2023-06-05 09:35:43 +08:00
lijianglin
e7ee63f9a8 add GB18030-2022 charmap 2023-05-27 08:08:40 +08:00
laokz
ee4fac7086 backport RISC-V patches
"stdlib strfrom Add copysign to fix NAN issue on riscv" fix
incomformity of strform with C99. (from v2.37)

"Assume only FLAG_ELF_LIBC6 support" deprecated all other
FLAG_ELFs which actually deprecated long ago for all arches.
(from v2.37)

"Restore ldconfig libc6 implicit soname logic" fix mistaken
of the above patch. (from v2.38)
2023-05-08 10:37:42 +08:00
liqingqing_1229
ec518045c7 gmon: Fix allocated buffer overflow (bug 29444) 2023-02-24 10:19:30 +08:00
Yang Yanchao
9ff1b7c97c add pthread_cond_clockwait@GLIBC_2_28
Since the pthread_cond_clockwait@GLIBC_2_28 is introduced in earlier
versions, this symbol is required to keep the previous items compatible.

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2023-02-01 11:24:47 +08:00
liqingqing_1229
ffd6e0f422 Makerules: fix MAKEFLAGS assignment for upcoming make-4.4 2023-01-12 17:27:18 +08:00
buque
deda2869b7 Subject: [PATCH] syslog: Remove extra whitespace between timestamp and message
(BZ#29544)

The rfc3164 clear states that a single space character must follow
the timestamp field.

Checked on x86_64-linux-gnu.
2022-09-24 15:26:13 +08:00
buque
bb63f941fd gconv: Use 64-bit interfaces in gconv_parseconfdir (bug 29583)
It's possible that inode numbers are outside the 32-bit range.
    The existing code only handles the in-libc case correctly, and
    still uses the legacy interfaces when building iconv.
2022-09-23 18:46:31 +08:00
SuperHugePan
80e03554ca linux: Do not skip d_ino==0 entries in readdir, readdir64(bug 12165) 2022-09-20 10:29:38 +08:00
liqingqing_1229
af2f5586c3 add requires between glibc-info and glibc 2022-09-08 14:28:26 +08:00
liqingqing_1229
95e0f7d98c syslog:Fix large messages (BZ#29536/CVE-2022-39046) 2022-09-01 08:54:31 +08:00
liqingqing
c6d65682ba linux: Fix enum fsconfig_command detection in <sys/mount.h> 2022-08-16 20:24:11 +08:00
liqingqing
6ae77472bf linux: Fix sys/mount.h usage with kernel headers 2022-08-15 21:50:01 +08:00
liqingqing_1229
14beed93c9 refactoring testsuite whitelist 2022-08-15 14:57:16 +08:00
liqingqing_1229
eb2c7a9ee8 aarch64: strcmp delete align for better unixbench performance 2022-08-10 16:11:17 +08:00
liqingqing_1229
d678c72e75 upgrade to glibc 2.36 2022-08-02 15:14:41 +08:00
liqingqing_1229
993fcab1f9 optimize Obsoletes version 2022-07-28 16:13:41 +08:00
liqingqing_1229
a27663f288 enable -werror by default 2022-07-06 15:32:10 +08:00
Yang Yanchao
6a37fb636d add libpthread_nonshared.a in glibc-compat-2.17 for old applications
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-07-05 17:17:18 +08:00
liqingqing_1229
71de1929dd aarch64: add -mno-outline-atomics to prevent mallocT2_xx performance regression 2022-06-28 16:33:17 +08:00
liqingqing_1229
00ea1ee896 x86: use total l3cache size for non_temporal_threshold 2022-06-27 19:16:46 +08:00
Yang Yanchao
750d623f7c Use Lua to compile the installation scripts of glibc-common and glibc-locale-archive.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-06-14 19:35:07 +08:00
liqingqing_1229
65b9b97a46 use locale-archive to prevent basic command performance regression
all the basic command like chgrp/chmod/chown/mkdir/touch
will first search /use/lib/locale/locale-archive. if failed,
then search the exact locale like /usr/lib/locale/zh_CN.
right now we don't have locale-archive and this will cause the
basic command's performance regression, so add it.
2022-06-01 15:21:30 +08:00
jiangheng
ecb0d526a0 restore nscd 2022-05-12 22:07:50 +08:00
Yang Yanchao
908728e05c delete the BuildRequires:gcc_secure.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-03-31 21:08:01 +08:00
Yang Yanchao
c0a3ae8ca6 mv libc.info.gz* to the package glibc-help
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-03-30 14:39:53 +08:00
liqingqing_1229
2c74ab717a malloc: use __get_nprocs replace __get_nprocs_sched 2022-03-12 17:52:37 +08:00
liqingqing_1229
0997054034 add chrpath to build requires for removing RPATH/RUNPATH 2022-03-02 15:48:47 +08:00
liqingqing_1229
a95455ac97 remove shared library's RPATH/RUNPATH for security 2022-03-01 15:21:45 +08:00
liqingqing_1229
a80f91c2ed tzselect: use region to select timezone 2022-02-22 15:30:25 +08:00
shirely16
82785a936c remove nscd 2022-02-11 10:23:26 +08:00
liqingqing_1229
87f8bf9cd5 upgrade to 2.35 2022-02-09 09:23:31 +08:00
Yang Yanchao
128404983f sync spec code form 22.03-LTS
https://gitee.com/src-openeuler/glibc/pulls/334/files

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-02-08 15:30:50 +08:00
Yang Yanchao
a24aecade4 testsuit: delete check-installed-headers-c and check-installed-headers-cxx
which are checked in CI to improves the compilation speed.
testsuit: delete glibc-benchtest

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-01-11 17:16:36 +08:00
liusirui
38869172b4 ld.so: Don't fill the DT_DEBUG entry in ld.so [BZ #28129]
Signed-off-by: liusirui <liusirui@huawei.com>
2021-12-25 17:31:02 +08:00
liqingqing_1229
cc054c6ba0 do not define tgmath.h fmaxmag, fminmag macros for C2X (BZ #28397) 2021-12-24 16:33:10 +08:00
liqingqing_1229
83668a2e5d io: Fix ftw internal realloc buffer (BZ #28126) 2021-12-24 15:09:14 +08:00
liqingqing_1229
c66918bc60 fix glibc upstream bug BZ#28260 and nss/tst-nss-files-hosts-long and nptl/tst-create1 2021-12-22 17:31:47 +08:00
liqingqing_1229
4405c42868 pthread/tst-cancel28: Fix barrier re-init race condition 2021-12-15 19:33:12 +08:00
Yang Yanchao
91e26f23d2 Deleted some unnecessary command when make master.filelist
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-09 21:50:16 +08:00
Yang Yanchao
f5e24fbbc9 support all Chinese and English by default
add zh_* and en_* to glibc-common
the size of glibc-common is increased from 1.8MB to 3.5MB

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-09 20:03:45 +08:00
Yang Yanchao
6495a142f4 turn the default value of x86_rep_stosb_threshold from 2k to 1M
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-03 12:13:47 +08:00
liqingqing_1229
0057d144a9 revert the use of sched_getaffinity [BZ #28310] 2021-12-02 21:02:21 +08:00
Bin Wang
b91290ce41 Linux: Simplify __opensock and fix race condition [BZ #28353]
AF_NETLINK support is not quite optional on modern Linux systems
anymore, so it is likely that the first attempt will always succeed.
Consequently, there is no need to cache the result.  Keep AF_UNIX
and the Internet address families as a fallback, for the rare case
that AF_NETLINK is missing.  The other address families previously
probed are totally obsolete be now, so remove them.

Use this simplified version as the generic implementation, disabling
Netlink support as needed.

Signed-off-by: Bin Wang <wangbin224@huawei.com>
2021-11-30 10:15:28 +08:00
Yang Yanchao
8615244aa3 Refactor the libpthread-2.17.so code and pass all test cases.
delete libpthread-2.17.so from glibc-devel
2021-11-24 18:19:16 +08:00
liqingqing_1229
1feba0288f revert supress -Wcast-qual warnings in bsearch 2021-11-19 09:51:27 +08:00
liqingqing_1229
05f7be5273 fix attribute access mode on getcwd [BZ #27476], supress -Wcast-qual warnings in bsearch 2021-11-15 21:38:26 +08:00
liqingqing_1229
35e1891d71 elf: fix ld.so crash while loading a DSO with a read-only dynamic section 2021-11-15 19:32:05 +08:00
liqingqing_1229
3ab2b7b71b gconv: Do not emit spurious NUL character in ISO-2022-JP-3, this also fix CVE-2021-43396. 2021-11-10 20:49:28 +08:00
liqingqing_1229
2b77a61d3e iconvconfig: Fix behaviour with --prefix 2021-11-09 15:28:35 +08:00