Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libdnet/files/, dev-libs/libdnet/
Date: Sat, 26 Sep 2020 09:12:13
Message-Id: 1601111526.3f9fabf33e63547d2a1059222ae750992ed21659.jer@gentoo
1 commit: 3f9fabf33e63547d2a1059222ae750992ed21659
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 09:11:07 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 09:12:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f9fabf3
7
8 dev-libs/libdnet: python: Include config.h for strlcpy definition
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Bug: https://github.com/ofalk/libdnet/pull/60
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch | 10 ++++++++++
15 dev-libs/libdnet/libdnet-1.14.ebuild | 3 +++
16 dev-libs/libdnet/libdnet-9999.ebuild | 3 +++
17 3 files changed, 16 insertions(+)
18
19 diff --git a/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch b/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch
20 new file mode 100644
21 index 00000000000..abc3a6b0f2d
22 --- /dev/null
23 +++ b/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch
24 @@ -0,0 +1,10 @@
25 +--- a/python/dnet.c
26 ++++ b/python/dnet.c
27 +@@ -22,6 +22,7 @@
28 + #endif
29 + __PYX_EXTERN_C double pow(double, double);
30 + #include "dnet.h"
31 ++#include "config.h"
32 +
33 +
34 + typedef struct {const char *s; const void **p;} __Pyx_CApiTabEntry; /*proto*/
35
36 diff --git a/dev-libs/libdnet/libdnet-1.14.ebuild b/dev-libs/libdnet/libdnet-1.14.ebuild
37 index 122c57b6274..8e8edf205be 100644
38 --- a/dev-libs/libdnet/libdnet-1.14.ebuild
39 +++ b/dev-libs/libdnet/libdnet-1.14.ebuild
40 @@ -26,6 +26,9 @@ RESTRICT="test"
41 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
42 DOCS=( README.md THANKS TODO )
43 S=${WORKDIR}/${PN}-${P}
44 +PATCHES=(
45 + "${FILESDIR}"/${PN}-1.14-strlcpy.patch
46 +)
47
48 src_prepare() {
49 default
50
51 diff --git a/dev-libs/libdnet/libdnet-9999.ebuild b/dev-libs/libdnet/libdnet-9999.ebuild
52 index 3878f74646e..ca4ff35ff01 100644
53 --- a/dev-libs/libdnet/libdnet-9999.ebuild
54 +++ b/dev-libs/libdnet/libdnet-9999.ebuild
55 @@ -25,6 +25,9 @@ RDEPEND="
56 RESTRICT="test"
57 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
58 DOCS=( README.md THANKS TODO )
59 +PATCHES=(
60 + "${FILESDIR}"/${PN}-1.14-strlcpy.patch
61 +)
62
63 src_prepare() {
64 default