1 |
commit: 85ff2ffad7d0cff2f130ea69376efd3af3af3ff7 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 04:48:15 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 04:48:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85ff2ffa |
7 |
|
8 |
net-misc/linuxptp: fix implicit function declaration for strncpy |
9 |
|
10 |
Unlike normal missing includes, implicit function declaration |
11 |
fixes require a revbump as they can affect code generation. |
12 |
|
13 |
Observed on musl. |
14 |
|
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
.../files/linuxptp-3.1.1-string-include.patch | 21 +++++++++++++++++++++ |
18 |
...nuxptp-3.1.1.ebuild => linuxptp-3.1.1-r1.ebuild} | 1 + |
19 |
2 files changed, 22 insertions(+) |
20 |
|
21 |
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 |
22 |
new file mode 100644 |
23 |
index 000000000000..622a87f67ec0 |
24 |
--- /dev/null |
25 |
+++ b/net-misc/linuxptp/files/linuxptp-3.1.1-string-include.patch |
26 |
@@ -0,0 +1,21 @@ |
27 |
+https://cgit.openembedded.org/meta-openembedded/commit/?h=master-next&id=aec96f23775b946cf99c39e7274bcc8fdd4711ca |
28 |
+https://sourceforge.net/p/linuxptp/mailman/message/37603438/ |
29 |
+ |
30 |
+From d49b4fb8063ecd89617587e5ea566cc9da9393ef Mon Sep 17 00:00:00 2001 |
31 |
+From: Khem Raj <raj.khem@×××××.com> |
32 |
+Date: Wed, 31 Aug 2022 19:09:18 -0700 |
33 |
+Subject: [PATCH] include string.h for strncpy() |
34 |
+ |
35 |
+Upstream-Status: Pending |
36 |
+ |
37 |
+Signed-off-by: Khem Raj <raj.khem@×××××.com> |
38 |
+--- a/interface.c |
39 |
++++ b/interface.c |
40 |
+@@ -5,6 +5,7 @@ |
41 |
+ * @note SPDX-License-Identifier: GPL-2.0+ |
42 |
+ */ |
43 |
+ #include <stdlib.h> |
44 |
++#include <string.h> |
45 |
+ #include "interface.h" |
46 |
+ |
47 |
+ struct interface { |
48 |
|
49 |
diff --git a/net-misc/linuxptp/linuxptp-3.1.1.ebuild b/net-misc/linuxptp/linuxptp-3.1.1-r1.ebuild |
50 |
similarity index 96% |
51 |
rename from net-misc/linuxptp/linuxptp-3.1.1.ebuild |
52 |
rename to net-misc/linuxptp/linuxptp-3.1.1-r1.ebuild |
53 |
index 281c2325d00b..df701b773917 100644 |
54 |
--- a/net-misc/linuxptp/linuxptp-3.1.1.ebuild |
55 |
+++ b/net-misc/linuxptp/linuxptp-3.1.1-r1.ebuild |
56 |
@@ -19,6 +19,7 @@ CONFIG_CHECK="~NETWORK_PHY_TIMESTAMPING ~PPS ~PTP_1588_CLOCK" |
57 |
|
58 |
PATCHES=( |
59 |
"${FILESDIR}"/${PN}-3.1.1-user_cpp.patch |
60 |
+ "${FILESDIR}"/${PN}-3.1.1-string-include.patch |
61 |
) |
62 |
|
63 |
pkg_setup() { |