diff options
author | Holger Hoffstätte <holger@applied-asynchrony.com> | 2023-09-05 18:17:24 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-16 11:13:17 +0100 |
commit | 4df96bf773daff0d26fe04c4a6ac2e94a4b542a1 (patch) | |
tree | 5e8b756fc417455d1d1b068791006dc18cf371fe /sys-apps | |
parent | x11-terms/zutty: Stabilize 0.14 amd64, #914273 (diff) | |
download | gentoo-4df96bf773daff0d26fe04c4a6ac2e94a4b542a1.tar.gz gentoo-4df96bf773daff0d26fe04c4a6ac2e94a4b542a1.tar.bz2 gentoo-4df96bf773daff0d26fe04c4a6ac2e94a4b542a1.zip |
sys-apps/iproute2: add patch to remove automagic fallback to libbsd
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/iproute2/files/iproute2-6.4.0-disable-libbsd-fallback.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-apps/iproute2/files/iproute2-6.4.0-disable-libbsd-fallback.patch b/sys-apps/iproute2/files/iproute2-6.4.0-disable-libbsd-fallback.patch new file mode 100644 index 000000000000..888091387fe9 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-6.4.0-disable-libbsd-fallback.patch @@ -0,0 +1,25 @@ + +Disable the optional libbsd fallback in favor of iproute2's own +strlcat/strlcpy routines. This prevents automagic linking and +all sorts of other related problems. + +Bug: https://bugs.gentoo.org/911727 +Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> + +--- a/configure 2023-09-05 16:20:48.000000000 +0200 ++++ b/configure 2023-09-05 16:29:15.850347415 +0200 +@@ -454,14 +454,8 @@ EOF + if $CC -I$INCLUDE -o $TMPDIR/strtest $TMPDIR/strtest.c >/dev/null 2>&1; then + echo "no" + else +- if ${PKG_CONFIG} libbsd --exists; then +- echo 'HAVE_LIBBSD_CFLAGS += -DHAVE_LIBBSD' `${PKG_CONFIG} libbsd --cflags` >>$CONFIG +- echo 'HAVE_LIBBSD_LDLIBS +=' `${PKG_CONFIG} libbsd --libs` >> $CONFIG +- echo "no" +- else + echo 'CFLAGS += -DNEED_STRLCPY' >>$CONFIG + echo "yes" +- fi + fi + rm -f $TMPDIR/strtest.c $TMPDIR/strtest + } |