--- /usr/portage/sys-fs/xfsprogs/xfsprogs-4.3.0.ebuild 2015-11-23 16:31:02.000000000 -0500 +++ /usr/space/dump/xfsprogs/xfsprogs-4.3.0.ebuild 2016-01-01 15:37:36.882229000 -0500 @@ -4,7 +4,7 @@ EAPI="4" -inherit eutils toolchain-funcs multilib +inherit autotools eutils toolchain-funcs multilib DESCRIPTION="xfs filesystem utilities" HOMEPAGE="http://oss.sgi.com/projects/xfs/" @@ -38,6 +38,10 @@ pkg_setup() { src_prepare() { epatch "${FILESDIR}"/${PN}-4.3.0-sharedlibs.patch + epatch "${FILESDIR}"/${PN}-4.3.0-remove-aio-check.patch + epatch "${FILESDIR}"/${PN}-4.3.0-use-sigprocmask.patch + epatch "${FILESDIR}"/${PN}-4.3.0-use-statfs.patch + eautoreconf # LLDFLAGS is used for programs, so apply -all-static when USE=static is enabled. # Clear out -static from all flags since we want to link against dynamic xfs libs. @@ -86,6 +90,12 @@ src_configure() { } src_install() { + # XXX: On uclibc, the include/install-sh script is not copied + # to the top-level directory, which is required for the + # install to finish correctly. This is a hack around + # that problem. + cp -f "${S}"/include/install-sh "${S}" + emake DIST_ROOT="${ED}" install # parallel install fails on this target for >=xfsprogs-3.2.0 emake -j1 DIST_ROOT="${ED}" install-dev