From 1b41cd0741a4a15bdf2a23f9a9f4313c7cc70d5d Mon Sep 17 00:00:00 2001 From: Gleb Fotengauer-Malinovskiy Date: Mon, 19 Dec 2016 16:55:27 +0300 Subject: [PATCH] Fix generation of verify-elf-non-lfs-funcs.list If there were both `func' and `func'64, `func' was considered non-LFS. Unfortunately, that approach missed functions like fts64_* and readdir64_r. --- rpm-4_0.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm-4_0.spec b/rpm-4_0.spec index ce39c32..c296f59 100644 --- a/rpm-4_0.spec +++ b/rpm-4_0.spec @@ -345,7 +345,7 @@ if [ -s /lib/libc.so.6 -a -s /lib/libz.so.1 -a -n "$(getconf LFS_CFLAGS)" ]; the sed -n 's/^[[:space:]]*[0-9]\+:[[:space:]]\+[0-9a-f]\+[[:space:]]\+[0-9]\+[[:space:]]\+FUNC[[:space:]]\+[^[:space:]]\+[[:space:]]\+DEFAULT[[:space:]]\+[0-9]\+[[:space:]]\+\([^@[:space:]]\+\)@\?.*/\1/p' | sort -u fi > all-funcs -sed -n 's/^\(.\+\)64$/\1/p' all-funcs | +sed -r -n 's/^(.+)64(_.*|$)/\1\2/p' all-funcs | sort -u | comm -12 - all-funcs | LC_ALL=C sort -u \