sys-process/atop: fix build w/newer glibc #580372
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Apr 2016 22:33:35 +0000 (18:33 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 19 Apr 2016 22:33:49 +0000 (18:33 -0400)
sys-process/atop/atop-2.2.ebuild
sys-process/atop/files/atop-2.2-sysmacros.patch [new file with mode: 0644]

index 7283c207b5d777e99d64a44ca67b97b2b922a0b3..7b4ccf21e916a878ac853b26d2748b4673407ce8 100644 (file)
@@ -31,6 +31,7 @@ S=${WORKDIR}/${MY_P}
 
 src_prepare() {
        epatch "${FILESDIR}"/${PN}-2.2-build.patch
+       epatch "${FILESDIR}"/${PN}-2.2-sysmacros.patch #580372
        tc-export CC PKG_CONFIG
        sed -i 's: root : :' atop.cronsysv || die #191926
        # prefixify
diff --git a/sys-process/atop/files/atop-2.2-sysmacros.patch b/sys-process/atop/files/atop-2.2-sysmacros.patch
new file mode 100644 (file)
index 0000000..87fd069
--- /dev/null
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/580372
+
+include sys/sysmacros.h for major/minor prototypes
+
+--- a/photosyst.c
++++ b/photosyst.c
+@@ -164,6 +164,7 @@
+ #include <signal.h>
+ #include <string.h>
+ #include <dirent.h>
++#include <sys/sysmacros.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>