Overwrite target for x86_64_v2

Update patch-git.lua to handle AlmaLinux branches correctly
This commit is contained in:
Eduard Abdullin 2026-01-13 01:42:30 +00:00 committed by root
commit 6009e8f03b
4 changed files with 68 additions and 13 deletions

28
glibc-RHEL-119438-1.patch Normal file
View File

@ -0,0 +1,28 @@
commit 39183f47d8bc9eda711c9797b18d69d7a02af91c
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed Jan 8 16:55:31 2025 +0100
elf: Minimize library dependencies of tst-nolink-libc.c
On 32-bit Arm, -fasynchronous-unwind-tables creates a reference
to the symbol __aeabi_unwind_cpp_pr0. Compile the tests without
this flag even if it is passed as part of CC, to avoid linker
failures.
diff --git a/elf/Makefile b/elf/Makefile
index 576d28fdbe60e19b..13ef1205667abcd4 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -3275,8 +3275,10 @@ $(objpfx)tst-hash-collision3: $(objpfx)tst-hash-collision3-mod.so
# a port adds them to the tests variables. Neither test variant is
# linked against libc.so, but tst-nolink-libc-1 is linked against
# ld.so. The test is always run directly, not under the dynamic
-# linker.
-CFLAGS-tst-nolink-libc.c += $(no-stack-protector)
+# linker. It is necessary to minimize run-time dependencies, by
+# disabling stack protection and unwinding.
+CFLAGS-tst-nolink-libc.c += $(no-stack-protector) \
+ -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
$(objpfx)tst-nolink-libc-1: $(objpfx)tst-nolink-libc.o $(objpfx)ld.so
$(LINK.o) -nostdlib -nostartfiles -o $@ $< \
-Wl,--dynamic-linker=$(objpfx)ld.so,--no-as-needed $(objpfx)ld.so

27
glibc-RHEL-119438-2.patch Normal file
View File

@ -0,0 +1,27 @@
commit d30f41d2c9031b0540641af692e56002eab5599f
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Jun 26 11:38:00 2025 +0200
elf: Add missing DSO dependencies for tst-rtld-no-malloc-{audit,preload}
Fixes commit c1560f3f75c0e892b5522c16f91b4e303f677094
("elf: Switch to main malloc after final ld.so self-relocation").
Reviewed-by: Frédéric Bérat <fberat@redhat.com>
diff --git a/elf/Makefile b/elf/Makefile
index 13ef1205667abcd4..cf54ea084489b9cf 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -3245,9 +3245,11 @@ $(objpfx)tst-dlopen-auditdup.out: \
# Reuse an audit module which provides ample debug logging.
tst-rtld-no-malloc-audit-ENV = LD_AUDIT=$(objpfx)tst-auditmod1.so
+$(objpfx)tst-rtld-no-malloc-audit.out: $(objpfx)tst-auditmod1.so
# Any shared object should do.
tst-rtld-no-malloc-preload-ENV = LD_PRELOAD=$(objpfx)tst-auditmod1.so
+$(objpfx)tst-rtld-no-malloc-preload.out: $(objpfx)tst-auditmod1.so
LDFLAGS-tst-hash-collision1-mod.so = -Wl,--hash-style=both
$(objpfx)tst-hash-collision1: $(objpfx)tst-hash-collision1-mod.so

View File

@ -2357,7 +2357,7 @@ update_gconv_modules_cache ()
%endif
%changelog
* Thu Dec 18 2025 Eduard Abdullin <eabdullin@almalinux.org> - 2.39-107.alma.1
* Tue Jan 13 2026 Eduard Abdullin <eabdullin@almalinux.org> - 2.39-108.alma.1
- Overwrite target for x86_64_v2
- Update patch-git.lua to handle AlmaLinux branches correctly

View File

@ -660,7 +660,7 @@ local function parse_commits()
break
end
local l = string.match(line, remove_indent)
if not l then break
if not l then
-- No longer the commit message.
break
end
@ -1697,9 +1697,7 @@ local function parse_commit_messages()
-- A Patch-Git-Version commit on its own does not tell us how to
-- interpret previous history. The first commit setting version/release
-- must also set the patch-git version.
if patchgit_version
and patchgit_version and release_known and changelog_known
then
if patchgit_version and release_known and changelog_known then
start_commit = i
break
end
@ -1733,14 +1731,16 @@ do
Dec=12,
}
function git_date_to_rpm_date(s)
local wd, mon, d, y = string.match(
s, '^([A-z][a-z][a-z]) ([A-Z][a-z][a-z]) (%d+) %d%d:%d%d:%d%d (%d+)')
assert(y, s)
local m = assert(months[mon], s)
local rpmdate = string.format('%s %s %02d %04d', wd, mon, d, y)
local ymd = string.format('%04d-%02d-%02d', y, m, d)
return rpmdate, ymd
local wd, mon, d, y = string.match(
s, '^([A-Z][a-z][a-z]) ([A-Z][a-z][a-z]) (%d+) %d%d:%d%d:%d%d (%d+)')
assert(y, s)
local m = assert(months[mon], s)
local rpmdate = string.format('%s %s %02d %04d', wd, mon, d, y)
local ymd = string.format('%04d-%02d-%02d', y, m, d)
return rpmdate, ymd
end
assert_eq({git_date_to_rpm_date('Fri Dec 5 14:39:48 2025 +0100')},
{'Fri Dec 05 2025', '2025-12-05'})
end
-- Tests for git_date_to_rpm_date.
do
@ -2044,7 +2044,7 @@ else
print('FAIL: term=' .. term .. ', status=' .. status)
end
end
if fail then
if failure then
os.exit(1)
end
end