commit: 85ff2ffad7d0cff2f130ea69376efd3af3af3ff7 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Sep 7 04:48:15 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Sep 7 04:48:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85ff2ffa
net-misc/linuxptp: fix implicit function declaration for strncpy Unlike normal missing includes, implicit function declaration fixes require a revbump as they can affect code generation. Observed on musl. Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/linuxptp-3.1.1-string-include.patch | 21 +++++++++++++++++++++ ...nuxptp-3.1.1.ebuild => linuxptp-3.1.1-r1.ebuild} | 1 + 2 files changed, 22 insertions(+) diff --git a/net-misc/linuxptp/files/linuxptp-3.1.1-string-include.patch b/net-misc/linuxptp/files/linuxptp-3.1.1-string-include.patch new file mode 100644 index 000000000000..622a87f67ec0 --- /dev/null +++ b/net-misc/linuxptp/files/linuxptp-3.1.1-string-include.patch @@ -0,0 +1,21 @@ +https://cgit.openembedded.org/meta-openembedded/commit/?h=master-next&id=aec96f23775b946cf99c39e7274bcc8fdd4711ca +https://sourceforge.net/p/linuxptp/mailman/message/37603438/ + +From d49b4fb8063ecd89617587e5ea566cc9da9393ef Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.k...@gmail.com> +Date: Wed, 31 Aug 2022 19:09:18 -0700 +Subject: [PATCH] include string.h for strncpy() + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <raj.k...@gmail.com> +--- a/interface.c ++++ b/interface.c +@@ -5,6 +5,7 @@ + * @note SPDX-License-Identifier: GPL-2.0+ + */ + #include <stdlib.h> ++#include <string.h> + #include "interface.h" + + struct interface { diff --git a/net-misc/linuxptp/linuxptp-3.1.1.ebuild b/net-misc/linuxptp/linuxptp-3.1.1-r1.ebuild similarity index 96% rename from net-misc/linuxptp/linuxptp-3.1.1.ebuild rename to net-misc/linuxptp/linuxptp-3.1.1-r1.ebuild index 281c2325d00b..df701b773917 100644 --- a/net-misc/linuxptp/linuxptp-3.1.1.ebuild +++ b/net-misc/linuxptp/linuxptp-3.1.1-r1.ebuild @@ -19,6 +19,7 @@ CONFIG_CHECK="~NETWORK_PHY_TIMESTAMPING ~PPS ~PTP_1588_CLOCK" PATCHES=( "${FILESDIR}"/${PN}-3.1.1-user_cpp.patch + "${FILESDIR}"/${PN}-3.1.1-string-include.patch ) pkg_setup() {