openwrt-6.x/tools
Robert Marko 00ff73ec6e tools/elfutils: remove dirname
In the 0.191 update dirname was used instead of <libgen.h> to fix the
poisoned basename error:
/usr/include/libgen.h:35:9: error: attempt to use poisoned "basename"
       35 | #define basename        __xpg_basename

However, doing this has lead to libelf.a pulling in xmalloc, xstrdup and
friends and statically linking them thus leading to a symbol name conflict
with FRR host build and anything else that links against libelf and uses
xmalloc and friends.

Well, it turns out that upstream has added a helper[1] for basename so it
can compile with musl 1.2.5 which dropped the basename declaration, but it
also means that we must NOT include <libgen.h> and that poisoned error is
intentional and added to prevent duplicate basename definitions.
This also means that for macOS we dont need to do any additional header
inclusions as the new helper takes care of basename.

So, to fix the symbol conflict we can simply drop the <dirname.h> inclusion
and build from elfutils.

Tested on Fedora 40 as well as macOS 14.4.1.

[1] https://sourceware.org/git/?p=elfutils.git;a=commit;h=a2194f6b305bf0d0b9dd49dccd0a5c21994c8eea

Fixes: #24030
Fixes: b6f025b424 ("tools/elfutils: update to 1.91")

Link: https://github.com/openwrt/openwrt/pull/15337
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-04-30 13:37:59 +02:00
..
7z tools: assign PKG_CPE_ID 2023-09-19 20:21:33 +02:00
autoconf tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
autoconf-archive tools/autoconf-archive: bump to 2023.02.20 2023-03-20 23:43:28 +01:00
automake tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
b43-tools treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
bash tools/bash: update to 5.2.21 2023-12-08 16:28:40 +01:00
bc
bison tools/bison: hardcode path to m4 with STAGING_DIR_HOST 2024-04-25 21:33:51 +02:00
bzip2 tools/bzip2: switch to cmake 2024-04-03 18:56:58 +02:00
cbootimage treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
cbootimage-configs treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ccache tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
cmake tools/cmake: disable xcode generator 2024-03-29 15:40:25 +01:00
coreutils tools/coreutils: update to 9.5 2024-04-25 21:33:51 +02:00
cpio tools/cpio: update to 2.15 2024-01-25 16:06:49 +01:00
dosfstools
dwarves tools/dwarves: add myself as PKG_MAINTAINER 2024-04-15 12:43:37 +02:00
e2fsprogs tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
elftosb
elfutils tools/elfutils: remove dirname 2024-04-30 13:37:59 +02:00
expat tools/expat: fix PKG_CPE_ID 2024-04-27 23:37:57 +02:00
fakeroot Revert "tools/fakeroot: update to 1.30.1" 2023-02-12 01:02:22 +01:00
findutils tools/findutils: define list of installed programs 2023-06-05 08:31:54 +02:00
firmware-utils treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
flex tools/flex: fix PKG_CPE_ID 2024-04-27 12:08:11 +02:00
flock
genext2fs
gengetopt tools/gengetopt: override SUBDIRS variable with Makefile 2023-05-04 06:07:28 +02:00
gmp tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
gnulib tools/gnulib: make tdestroy() fully portable 2024-04-25 21:33:51 +02:00
include tools: macOS: types.h: fix missing unsigned types 2023-11-02 20:20:53 +01:00
isl tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
kernel2minor treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
libdeflate tools: libdeflate: backport fix for AVX-VNNI 2024-04-15 13:52:37 +02:00
liblzo tools: assign PKG_CPE_ID 2023-09-19 20:21:33 +02:00
libressl tools/libressl: update to version 3.7.3 2023-09-22 14:11:22 +02:00
libtool tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
llvm-bpf tools: assign PKG_CPE_ID 2023-09-19 20:21:33 +02:00
lz4 tools: assign PKG_CPE_ID 2023-09-19 20:21:33 +02:00
lzma
lzma-old
lzop
m4 tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
make-ext4fs treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
meson tools/meson: update to 1.3.2 2024-03-29 23:42:22 +01:00
missing-macros tools/missing-macros: add symlinks to makeinfo 2024-04-25 21:33:51 +02:00
mkimage Revert "tools/mkimage: update to v2024.04" 2024-04-06 14:52:06 +02:00
mklibs
mold tools: mold: update to 2.30.0 2024-04-16 21:52:57 +02:00
mpc
mpfr tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
mtd-utils tools/mtd-utils: update to 2.1.6 2023-10-14 08:03:06 +02:00
mtools tools/mtools: update to 4.0.43 2023-04-08 15:51:32 +02:00
ninja
padjffs2
patch tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
patch-image
patchelf tools/patchelf: update to 0.18.0 2023-04-29 17:37:45 +02:00
pkgconf tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
quilt
sdimage treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
sed tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
sparse tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
squashfs3-lzma tools: squashfs3-lzma: generate reproducible output 2023-05-12 02:27:17 +02:00
squashfs4 treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
sstrip
tar tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
util-linux tools: prefer gz or bz2 tarballs 2024-04-06 11:24:18 +02:00
xz Revert "tools/xz: update to 5.6.1" (CVE-2024-3094) 2024-03-29 16:59:56 +00:00
zip tools: assign PKG_CPE_ID 2023-09-19 20:21:33 +02:00
zlib tools/zlib: fix PKG_CPE_ID 2024-04-27 12:07:37 +02:00
zstd tools/zstd: enable position independent code compilation 2024-04-24 12:16:48 +02:00
Makefile tools: rework tools-core dependecies 2024-04-06 11:24:18 +02:00