commit: b916e6674d101f748394f4899d9f804672e0b064 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Mon Apr 18 16:57:03 2016 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Mon Apr 18 16:57:18 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b916e667
sys-apps/hdparm: fix building w/newer glibc #580052 sys-apps/hdparm/files/hdparm-9.48-sysmacros.patch | 23 +++++++++++++++++++++++ sys-apps/hdparm/hdparm-9.48.ebuild | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/sys-apps/hdparm/files/hdparm-9.48-sysmacros.patch b/sys-apps/hdparm/files/hdparm-9.48-sysmacros.patch new file mode 100644 index 0000000..98a08c7 --- /dev/null +++ b/sys-apps/hdparm/files/hdparm-9.48-sysmacros.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/580052 +https://sourceforge.net/p/hdparm/patches/44/ + +--- a/geom.c ++++ b/geom.c +@@ -15,6 +15,7 @@ + #include <errno.h> + #include <dirent.h> + #include <sys/stat.h> ++#include <sys/sysmacros.h> + #include <sys/ioctl.h> + #include <linux/types.h> + #include <linux/fs.h> +--- a/sysfs.c ++++ b/sysfs.c +@@ -15,6 +15,7 @@ + #include <dirent.h> + #include <limits.h> + #include <sys/stat.h> ++#include <sys/sysmacros.h> + #include <linux/types.h> + + #include "hdparm.h" diff --git a/sys-apps/hdparm/hdparm-9.48.ebuild b/sys-apps/hdparm/hdparm-9.48.ebuild index 6a777fd..8a087e8 100644 --- a/sys-apps/hdparm/hdparm-9.48.ebuild +++ b/sys-apps/hdparm/hdparm-9.48.ebuild @@ -4,7 +4,7 @@ EAPI="4" -inherit toolchain-funcs flag-o-matic +inherit toolchain-funcs flag-o-matic eutils DESCRIPTION="Utility to change hard drive performance parameters" HOMEPAGE="http://sourceforge.net/projects/hdparm/" @@ -16,6 +16,7 @@ KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc IUSE="static" src_prepare() { + epatch "${FILESDIR}"/${P}-sysmacros.patch #580052 use static && append-ldflags -static sed -i \ -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \
