diff --git a/0001-glibc-hotpatch-test.patch b/0001-glibc-hotpatch-test.patch new file mode 100644 index 0000000000000000000000000000000000000000..faa7994d04258c6b0c27bc8f123a7beb5a52d321 --- /dev/null +++ b/0001-glibc-hotpatch-test.patch @@ -0,0 +1,32 @@ +From b7f44ef18e7e75428fe37c07987ca4fc205e2d32 Mon Sep 17 00:00:00 2001 +From: wang-guangge +Date: Thu, 29 Jun 2023 18:54:27 +0800 +Subject: [PATCH] glibc hotpatch test + +--- + time/ctime.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/time/ctime.c b/time/ctime.c +index 3810e035..19553378 100644 +--- a/time/ctime.c ++++ b/time/ctime.c +@@ -16,6 +16,7 @@ + . */ + + #include ++#include + + /* Return a string as returned by asctime which + is the representation of *T in that form. */ +@@ -24,6 +25,7 @@ __ctime64 (const __time64_t *t) + { + /* The C Standard says ctime (t) is equivalent to asctime (localtime (t)). + In particular, ctime and asctime must yield the same pointer. */ ++ printf("glibc syscare hotpatch test\n"); + return asctime (__localtime64 (t)); + } + +-- +2.33.0 + diff --git a/glibc.spec b/glibc.spec index 75c382e02daf7fad1b934c73dd0684fe9c2f72c0..9ac864a11a0bdb6f888934f43c106ebce4e3e416 100644 --- a/glibc.spec +++ b/glibc.spec @@ -66,7 +66,7 @@ ############################################################################## Name: glibc Version: 2.34 -Release: 122 +Release: 123 Summary: The GNU libc libraries License: %{all_license} URL: http://www.gnu.org/software/glibc/ @@ -308,6 +308,7 @@ Patch9037: elf-ld.so-add-MAP_NORESERVE-flag-for-the-first-mmap-2MB-contig.patch Patch9038: elf-ld.so-prohibit-multiple-i-options-and-do-not-allow-i-speci.patch Patch9039: elf-ld.so-Consider-maybe-existing-hole-between-PT_LO.patch Patch9040: add-GB18030-2022-charmap.patch +Patch9041: 0001-glibc-hotpatch-test.patch Provides: ldconfig rtld(GNU_HASH) bundled(gnulib)