summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-09-26 11:11:07 +0200
committerJeroen Roovers <jer@gentoo.org>2020-09-26 11:12:06 +0200
commit3f9fabf33e63547d2a1059222ae750992ed21659 (patch)
treed42b489e827ef7f99e6e2442f2f23a78541c9bf9 /dev-libs
parentsys-boot/elilo: drop ia64@ from maintainers (diff)
downloadgentoo-3f9fabf33e63547d2a1059222ae750992ed21659.tar.gz
gentoo-3f9fabf33e63547d2a1059222ae750992ed21659.tar.bz2
gentoo-3f9fabf33e63547d2a1059222ae750992ed21659.zip
dev-libs/libdnet: python: Include config.h for strlcpy definition
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Bug: https://github.com/ofalk/libdnet/pull/60 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch10
-rw-r--r--dev-libs/libdnet/libdnet-1.14.ebuild3
-rw-r--r--dev-libs/libdnet/libdnet-9999.ebuild3
3 files changed, 16 insertions, 0 deletions
diff --git a/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch b/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch
new file mode 100644
index 000000000000..abc3a6b0f2d3
--- /dev/null
+++ b/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch
@@ -0,0 +1,10 @@
+--- a/python/dnet.c
++++ b/python/dnet.c
+@@ -22,6 +22,7 @@
+ #endif
+ __PYX_EXTERN_C double pow(double, double);
+ #include "dnet.h"
++#include "config.h"
+
+
+ typedef struct {const char *s; const void **p;} __Pyx_CApiTabEntry; /*proto*/
diff --git a/dev-libs/libdnet/libdnet-1.14.ebuild b/dev-libs/libdnet/libdnet-1.14.ebuild
index 122c57b6274d..8e8edf205be9 100644
--- a/dev-libs/libdnet/libdnet-1.14.ebuild
+++ b/dev-libs/libdnet/libdnet-1.14.ebuild
@@ -26,6 +26,9 @@ RESTRICT="test"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
DOCS=( README.md THANKS TODO )
S=${WORKDIR}/${PN}-${P}
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.14-strlcpy.patch
+)
src_prepare() {
default
diff --git a/dev-libs/libdnet/libdnet-9999.ebuild b/dev-libs/libdnet/libdnet-9999.ebuild
index 3878f74646eb..ca4ff35ff01b 100644
--- a/dev-libs/libdnet/libdnet-9999.ebuild
+++ b/dev-libs/libdnet/libdnet-9999.ebuild
@@ -25,6 +25,9 @@ RDEPEND="
RESTRICT="test"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
DOCS=( README.md THANKS TODO )
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.14-strlcpy.patch
+)
src_prepare() {
default