sys-process/procenv: explicitly include sysmacros header
authorTim Harder <radhermit@gentoo.org>
Sat, 16 Apr 2016 20:59:58 +0000 (16:59 -0400)
committerTim Harder <radhermit@gentoo.org>
Sat, 16 Apr 2016 21:01:05 +0000 (17:01 -0400)
sys-process/procenv/files/procenv-0.45-sysmacros.patch [new file with mode: 0644]
sys-process/procenv/procenv-0.45.ebuild

diff --git a/sys-process/procenv/files/procenv-0.45-sysmacros.patch b/sys-process/procenv/files/procenv-0.45-sysmacros.patch
new file mode 100644 (file)
index 0000000..5d7230c
--- /dev/null
@@ -0,0 +1,23 @@
+Since glibc is moving away from implicitly including sys/sysmacros.h all the
+time via sys/types.h, include the header directly in more places.
+
+--- procenv-0.45/src/procenv.h
++++ procenv-0.45/src/procenv.h
+@@ -59,6 +59,7 @@
+ #include <getopt.h>
+ #include <assert.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <inttypes.h>
+ #include <sys/ioctl.h>
+ #include <sys/stat.h>
+--- procenv-0.45/src/util.h
++++ procenv-0.45/src/util.h
+@@ -22,6 +22,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <errno.h>
+ #include <stdbool.h>
+ #include <fcntl.h>
index 32466f277aa8e18a9c473c1fe2ee4555a09a94a8..3daf7544f7950dbfadf7238c2e6d56537707f5e6 100644 (file)
@@ -4,6 +4,8 @@
 
 EAPI=5
 
+inherit eutils
+
 DESCRIPTION="command-line utility to show process environment"
 HOMEPAGE="https://github.com/jamesodhunt/procenv"
 SRC_URI="https://github.com/jamesodhunt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
@@ -17,3 +19,7 @@ DEPEND="
        virtual/pkgconfig
        test? ( dev-libs/check )
 "
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-sysmacros.patch
+}