sys-block/scsirastools: fix build w/newer glibc #580214
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Apr 2016 04:57:34 +0000 (00:57 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Apr 2016 04:58:42 +0000 (00:58 -0400)
sys-block/scsirastools/files/scsirastools-1.5.7-sysmacros.patch [new file with mode: 0644]
sys-block/scsirastools/scsirastools-1.5.7.ebuild

diff --git a/sys-block/scsirastools/files/scsirastools-1.5.7-sysmacros.patch b/sys-block/scsirastools/files/scsirastools-1.5.7-sysmacros.patch
new file mode 100644 (file)
index 0000000..76cef53
--- /dev/null
@@ -0,0 +1,23 @@
+https://bugs.gentoo.org/580214
+https://sourceforge.net/p/scsirastools/bugs/16/
+
+--- a/src/sgcommon.c
++++ b/src/sgcommon.c
+@@ -62,6 +62,7 @@
+   -------------------------------------------------------------------------*/
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+--- a/src/sgsubmon.c
++++ b/src/sgsubmon.c
+@@ -34,6 +34,7 @@
+  *---------------------------------------------------------------------------*/
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stdlib.h>
index 2a84c3dfe4c79fae152dde9af96a3a2e9b8c57e0..4ff75f1eeaaf1dd2259c19ccf2d20feded5db15e 100644 (file)
@@ -19,6 +19,7 @@ RDEPEND="sys-apps/rescan-scsi-bus
 DEPEND="${RDEPEND}"
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-sysmacros.patch #580214
        # this builds a really old mdadm
        sed -i \
                -e '/RPMB/d' \