diff options
author | 2023-07-08 13:14:18 +0200 | |
---|---|---|
committer | 2023-07-10 06:30:16 +0100 | |
commit | 5e7d98bc4aa5f3ffcb0e2aa2c15b76f3e309ddd0 (patch) | |
tree | acd39703b7b88209cf7e8aa5ed238fffee349032 /net-libs/xdp-tools/files | |
parent | app-backup/btrbk: fix phase style (diff) | |
download | gentoo-5e7d98bc4aa5f3ffcb0e2aa2c15b76f3e309ddd0.tar.gz gentoo-5e7d98bc4aa5f3ffcb0e2aa2c15b76f3e309ddd0.tar.bz2 gentoo-5e7d98bc4aa5f3ffcb0e2aa2c15b76f3e309ddd0.zip |
net-libs/xdp-tools: bump to 1.4.0, add toolchain fixes
Bug: https://bugs.gentoo.org/899742
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/31801
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/xdp-tools/files')
-rw-r--r-- | net-libs/xdp-tools/files/1.4.0-toolchain.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/net-libs/xdp-tools/files/1.4.0-toolchain.patch b/net-libs/xdp-tools/files/1.4.0-toolchain.patch new file mode 100644 index 000000000000..d4bcb511310f --- /dev/null +++ b/net-libs/xdp-tools/files/1.4.0-toolchain.patch @@ -0,0 +1,57 @@ + +Patch from: https://github.com/xdp-project/xdp-tools/pull/341 + +From b1377b35cd05daf4d3afc3d59839e9889a642ffb Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <holger@applied-asynchrony.com> +Date: Sat, 8 Jul 2023 12:34:20 +0200 +Subject: [PATCH] libxdp: don't use direct call to readelf for symbol table + comparison +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Gentoo CI previously reported symbol mismatches in libxdp +(see #302 and https://bugs.gentoo.org/899742). This was +caused by a direct call to 'readelf' instead of using the +command injected by the environment/toolchain. +The fix is simple: use $(READELF). + +Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> +--- + lib/libxdp/Makefile | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/lib/libxdp/Makefile b/lib/libxdp/Makefile +index 43de3e8a..532e0687 100644 +--- a/lib/libxdp/Makefile ++++ b/lib/libxdp/Makefile +@@ -93,12 +93,12 @@ $(SHARED_OBJDIR)/%.o: %.c $(EXTRA_LIB_DEPS) | $(SHARED_OBJDIR) + + XDP_IN_SHARED := $(SHARED_OBJDIR)/libxdp.o $(SHARED_OBJDIR)/xsk.o + +-GLOBAL_SYM_COUNT = $(shell readelf -s --wide $(XDP_IN_SHARED) | \ ++GLOBAL_SYM_COUNT = $(shell $(READELF) -s --wide $(XDP_IN_SHARED) | \ + cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \ + sed 's/\[.*\]//' | \ + awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}' | \ + sort -u | wc -l) +-VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OBJDIR)/libxdp.so | \ ++VERSIONED_SYM_COUNT = $(shell $(READELF) --dyn-syms --wide $(OBJDIR)/libxdp.so | \ + grep -Eo '[^ ]+@LIBXDP_' | cut -d@ -f1 | sort -u | wc -l) + + check: $(CHECK_RULES) +@@ -110,12 +110,12 @@ check_abi: $(OBJDIR)/libxdp.so + "versioned symbols in $^ ($(VERSIONED_SYM_COUNT))." \ + "Please make sure all symbols are" \ + "versioned in $(VERSION_SCRIPT)." >&2; \ +- readelf -s --wide $(XDP_IN_SHARED) | \ ++ $(READELF) -s --wide $(XDP_IN_SHARED) | \ + cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \ + sed 's/\[.*\]//' | \ + awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}'| \ + sort -u > $(OUTPUT)libxdp_global_syms.tmp; \ +- readelf --dyn-syms --wide $(OUTPUT)libxdp.so | \ ++ $(READELF) --dyn-syms --wide $(OUTPUT)libxdp.so | \ + grep -Eo '[^ ]+@LIBXDP_' | cut -d@ -f1 | \ + sort -u > $(OUTPUT)libxdp_versioned_syms.tmp; \ + diff -u $(OUTPUT)libxdp_global_syms.tmp \ |