From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 87AB4159C9B for ; Sun, 4 Aug 2024 16:17:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6805E2AD7; Sun, 4 Aug 2024 16:17:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 81D02E2AD7 for ; Sun, 4 Aug 2024 16:17:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7507C34068A for ; Sun, 4 Aug 2024 16:17:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7EA2B1E5D for ; Sun, 4 Aug 2024 16:17:33 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1722788241.0564906652c69469deab2b7814bb4736d7be5881.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/iproute2/, sys-apps/iproute2/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/iproute2/files/iproute2-6.10.0-musl-1.patch sys-apps/iproute2/files/iproute2-6.10.0-musl-2.patch sys-apps/iproute2/iproute2-6.10.0.ebuild X-VCS-Directories: sys-apps/iproute2/files/ sys-apps/iproute2/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 0564906652c69469deab2b7814bb4736d7be5881 X-VCS-Branch: master Date: Sun, 4 Aug 2024 16:17:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 29559827-c26f-4391-b102-fed9a96a3631 X-Archives-Hash: 7f65d38128c073906447f6c8a1d2a725 commit: 0564906652c69469deab2b7814bb4736d7be5881 Author: Andreas K. Hüttel gentoo org> AuthorDate: Sun Aug 4 16:16:13 2024 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sun Aug 4 16:17:21 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05649066 sys-apps/iproute2: fix build on musl Closes: https://bugs.gentoo.org/936234 Closes: https://bugs.gentoo.org/926341 Closes: https://github.com/gentoo/gentoo/pull/37658 Signed-off-by: Andreas K. Hüttel gentoo.org> .../iproute2/files/iproute2-6.10.0-musl-1.patch | 41 +++++++++++++++++++++ .../iproute2/files/iproute2-6.10.0-musl-2.patch | 43 ++++++++++++++++++++++ sys-apps/iproute2/iproute2-6.10.0.ebuild | 2 + 3 files changed, 86 insertions(+) diff --git a/sys-apps/iproute2/files/iproute2-6.10.0-musl-1.patch b/sys-apps/iproute2/files/iproute2-6.10.0-musl-1.patch new file mode 100644 index 000000000000..c1b7788debdc --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-6.10.0-musl-1.patch @@ -0,0 +1,41 @@ +From fbbe03cbc4fa8c801967aac2e2c444e93b2ca96a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= +Date: Sun, 4 Aug 2024 16:22:07 +0200 +Subject: [PATCH 1/2] libnetlink.h: Include explicitly for musl +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The code added in "f_flower: implement pfcp opts" uses h2be64, +defined in endian.h. While this is pulled in around some corners +for glibc (see below), that's not the case for musl and an +explicit include is required there. + +. /usr/include/libmnl/libmnl.h +.. /usr/include/sys/socket.h +... /usr/include/bits/socket.h +.... /usr/include/sys/types.h +..... /usr/include/endian.h + +Fixes: 976dca372 ("f_flower: implement pfcp opts") +Bug: https://bugs.gentoo.org/936234 +Signed-off-by: Andreas K. Hüttel +--- + include/libnetlink.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/libnetlink.h b/include/libnetlink.h +index 30f0c2d2..7074e913 100644 +--- a/include/libnetlink.h ++++ b/include/libnetlink.h +@@ -4,6 +4,7 @@ + + #include + #include ++#include + #include + #include + #include +-- +2.44.2 + diff --git a/sys-apps/iproute2/files/iproute2-6.10.0-musl-2.patch b/sys-apps/iproute2/files/iproute2-6.10.0-musl-2.patch new file mode 100644 index 000000000000..11764be0964d --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-6.10.0-musl-2.patch @@ -0,0 +1,43 @@ +From 40a430cf13876120416d82d581745033d273576c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= +Date: Sun, 4 Aug 2024 17:47:35 +0200 +Subject: [PATCH 2/2] rdma.c: Add include for basename on musl +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This include file is required on musl for availability of basename. + +Note that for glibc adding the include can have the side effect of +switching from the GNU implementation of basename (which does not touch +its argument) to the POSIX implementation (which under certain +circumstances modifies the string passed to it, e.g. removing trailing +slashes). + +This is safe however since the C99 and C11 standard says: +> The parameters argc and argv and the strings pointed to by the argv +> array shall be modifiable by the program, and retain their last-stored +> values between program startup and program termination. +(multiple google results, unfortunately no official reference link) + +Bug: https://bugs.gentoo.org/926341 +Signed-off-by: Andreas K. Hüttel +--- + rdma/rdma.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/rdma/rdma.c b/rdma/rdma.c +index 131c6b2a..f835bf3f 100644 +--- a/rdma/rdma.c ++++ b/rdma/rdma.c +@@ -4,6 +4,7 @@ + * Authors: Leon Romanovsky + */ + ++#include + #include "rdma.h" + #include "version.h" + #include "color.h" +-- +2.44.2 + diff --git a/sys-apps/iproute2/iproute2-6.10.0.ebuild b/sys-apps/iproute2/iproute2-6.10.0.ebuild index 3d0c9ec799da..0b232fbeecbb 100644 --- a/sys-apps/iproute2/iproute2-6.10.0.ebuild +++ b/sys-apps/iproute2/iproute2-6.10.0.ebuild @@ -48,6 +48,8 @@ BDEPEND=" " PATCHES=( + "${FILESDIR}"/${PN}-6.10.0-musl-1.patch # bug #936234 + "${FILESDIR}"/${PN}-6.10.0-musl-2.patch # bug #926341 "${FILESDIR}"/${PN}-6.9.0-mtu.patch # bug #291907 "${FILESDIR}"/${PN}-6.8.0-configure-nomagic-nolibbsd.patch # bug #643722 & #911727 "${FILESDIR}"/${PN}-6.8.0-disable-libbsd-fallback.patch # bug #911727