commit: 6b03f08744ea3c3c087c571e649d1f50ffdbbd1b Author: Tim Harder <radhermit <AT> gentoo <DOT> org> AuthorDate: Sat Apr 16 20:59:58 2016 +0000 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> CommitDate: Sat Apr 16 21:01:05 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b03f087
sys-process/procenv: explicitly include sysmacros header .../procenv/files/procenv-0.45-sysmacros.patch | 23 ++++++++++++++++++++++ sys-process/procenv/procenv-0.45.ebuild | 6 ++++++ 2 files changed, 29 insertions(+) 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 index 0000000..5d7230c --- /dev/null +++ b/sys-process/procenv/files/procenv-0.45-sysmacros.patch @@ -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> diff --git a/sys-process/procenv/procenv-0.45.ebuild b/sys-process/procenv/procenv-0.45.ebuild index 32466f2..3daf754 100644 --- a/sys-process/procenv/procenv-0.45.ebuild +++ b/sys-process/procenv/procenv-0.45.ebuild @@ -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 +}
