commit: 3116078ff9fecd15b1643eba6c389ee2c8f06aee Author: Brahmajit Das <listout <AT> listout <DOT> xyz> AuthorDate: Sun Dec 21 17:42:29 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Dec 22 11:40:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3116078f
net-misc/iputils: Rebase patch with proper commit and gentoo bug Changed the patch metadata to what was merged upstream. Also fixed the incorrect bug number. Closes: https://bugs.gentoo.org/951050 Signed-off-by: Brahmajit Das <listout <AT> listout.xyz> Part-of: https://github.com/gentoo/gentoo/pull/44979 Closes: https://github.com/gentoo/gentoo/pull/44979 Signed-off-by: Sam James <sam <AT> gentoo.org> ...son-build-strict-check-for-error-function.patch | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/net-misc/iputils/files/meson-build-strict-check-for-error-function.patch b/net-misc/iputils/files/meson-build-strict-check-for-error-function.patch index 1083918c9ed2..1f295c8bb0c6 100644 --- a/net-misc/iputils/files/meson-build-strict-check-for-error-function.patch +++ b/net-misc/iputils/files/meson-build-strict-check-for-error-function.patch @@ -1,12 +1,21 @@ -https://github.com/iputils/iputils/pull/601 +https://github.com/iputils/iputils/commit/35ed506fe4bfc393284138915017d4b7da1a6f3e From: Brahmajit Das <[email protected]> Date: Sun, 22 Jun 2025 07:30:38 +0530 -Subject: [PATCH] meson.build: strict check for error function +Subject: [PATCH] meson.build: Enhance check for error() function -Along with checking for presense of error.h we should also check if we -can use the error function and it's getting properly linked. +Along with checking for presence of <error.h> some toolchains also +require to check for error() function to avoid linking error, e.g. +powerpc64-unknown-linux-musl-gcc from Gentoo: -Dowstream-bug: https://bugs.gentoo.org/947680 + [17/18] powerpc64-unknown-linux-musl-gcc -o ping/ping ping/ping.p/ping.c.o ping/ping.p/ping_common.c.o ping/ping.p/ping6_common.c.o ping/ping.p/node_info.c.o -Wl,--as-needed -Wl,--no-undefined -Os -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--start-group libcommon.a -lm -lresolv -Wl,--end-group + FAILED: ping/ping + powerpc64-unknown-linux-musl-gcc -o ping/ping ping/ping.p/ping.c.o ping/ping.p/ping_common.c.o ping/ping.p/ping6_common.c.o ping/ping.p/node_info.c.o -Wl,--as-needed -Wl,--no-undefined -Os -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--start-group libcommon.a -lm -lresolv -Wl,--end-group + /usr/lib/gcc/powerpc64-unknown-linux-musl/14/../../../../powerpc64-unknown-linux-musl/bin/ld: ping/ping.p/ping.c.o: in function `ping_strtod': + ping.c:(.text+0x1c8): undefined reference to `error' + +Closes: https://github.com/iputils/iputils/pull/601 +Dowstream-bug: https://bugs.gentoo.org/951050 +Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Brahmajit Das <[email protected]> --- a/meson.build +++ b/meson.build @@ -19,6 +28,3 @@ Signed-off-by: Brahmajit Das <[email protected]> conf.set('HAVE_' + h.to_upper().underscorify(), 1, description : 'Define if ' + h + ' can be included.') endif --- -2.50.0 -
