diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-04-21 00:57:34 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-04-21 00:58:42 -0400 |
commit | ec13c0b296b05a130f8136a5a0bcf99290fceeb3 (patch) | |
tree | c0919fb67b59c5589ca06849e19c38c4415dd5b1 /sys-block/scsirastools | |
parent | sys-block/scsirastools: update to EAPI=5 (diff) | |
download | gentoo-ec13c0b296b05a130f8136a5a0bcf99290fceeb3.tar.gz gentoo-ec13c0b296b05a130f8136a5a0bcf99290fceeb3.tar.bz2 gentoo-ec13c0b296b05a130f8136a5a0bcf99290fceeb3.zip |
sys-block/scsirastools: fix build w/newer glibc #580214
Diffstat (limited to 'sys-block/scsirastools')
-rw-r--r-- | sys-block/scsirastools/files/scsirastools-1.5.7-sysmacros.patch | 23 | ||||
-rw-r--r-- | sys-block/scsirastools/scsirastools-1.5.7.ebuild | 1 |
2 files changed, 24 insertions, 0 deletions
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 index 000000000000..76cef536de8f --- /dev/null +++ b/sys-block/scsirastools/files/scsirastools-1.5.7-sysmacros.patch @@ -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> diff --git a/sys-block/scsirastools/scsirastools-1.5.7.ebuild b/sys-block/scsirastools/scsirastools-1.5.7.ebuild index 2a84c3dfe4c7..4ff75f1eeaaf 100644 --- a/sys-block/scsirastools/scsirastools-1.5.7.ebuild +++ b/sys-block/scsirastools/scsirastools-1.5.7.ebuild @@ -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' \ |