app-misc/fdutils: fix build w/newer glibc #580060
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Apr 2016 06:42:14 +0000 (02:42 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 19 Apr 2016 06:42:14 +0000 (02:42 -0400)
app-misc/fdutils/fdutils-5.5.20060227.ebuild

index 3658976c3482c81c0191126c419f62055ecc9895..46c70f7eea7fafaf4b2ac33287d874f27335d048 100644 (file)
@@ -29,6 +29,9 @@ src_prepare() {
        local d="${WORKDIR}"/debian/patches
        EPATCH_SOURCE="${d}" epatch $(<"${d}"/series)
        sed -i -e 's:{LDFLAFS}:(LDFLAGS):' src/Makefile.in || die #337721
+       # The build sets up config.h and uses some symbols, but forgots to
+       # actually include it in most places.
+       sed -i '1i#include "../config.h"' src/*.c || die #580060
 }
 
 src_configure() {