dev-util/perf: clean up -Werror usage
authorMike Frysinger <vapier@chromium.org>
Thu, 11 Jan 2018 01:31:47 +0000 (20:31 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 11 Jan 2018 01:33:54 +0000 (20:33 -0500)
The api/Makefile already checks $(WERROR), so no need to mung it anymore.

dev-util/perf/perf-4.9.13.ebuild

index 99c34d5b4c5bd73cf0e8f61a5e9114d6d797c5d8..f63b51115804fd5be2a10fbb5ebda8164f39ef08 100644 (file)
@@ -112,7 +112,9 @@ src_prepare() {
        sed -i \
                -e "s:\$(sysconfdir_SQ)/bash_completion.d:$(get_bashcompdir):" \
                "${S}"/Makefile.perf || die
-       sed -i -e 's:-Werror::' "${S_K}"/tools/lib/api/Makefile || die
+       # A few places still use -Werror w/out $(WERROR) protection.
+       sed -i -e 's:-Werror::' \
+               "${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile || die
 
        # Avoid the call to make kernelversion
        echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE