commit:     ae76b6469821f5685dd91b767f962c0ac06ef4b6
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 24 08:28:32 2020 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Sep 24 08:29:07 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae76b646

sys-process/criu: unset GCOV completely

Bug: https://bugs.gentoo.org/744244
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-process/criu/criu-3.14-r2.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-process/criu/criu-3.14-r2.ebuild 
b/sys-process/criu/criu-3.14-r2.ebuild
index aee154fafa4..87fc935c2d6 100644
--- a/sys-process/criu/criu-3.14-r2.ebuild
+++ b/sys-process/criu/criu-3.14-r2.ebuild
@@ -79,6 +79,11 @@ src_configure() {
        # Gold linker generates invalid object file when used with criu's custom
        # linker script.  Use the bfd linker instead. See 
https://crbug.com/839665#c3
        tc-ld-disable-gold
+
+       # Build system uses this variable as a trigger to append coverage flags
+       # we'd like to avoid it. https://bugs.gentoo.org/744244
+       unset GCOV
+
        python_setup
 }
 
@@ -94,7 +99,7 @@ src_compile() {
                OBJCOPY="$(tc-getOBJCOPY)" \
                LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
                ARCH="$(criu_arch)" \
-               V=1 WERROR=0 DEBUG=0 GCOV= \
+               V=1 WERROR=0 DEBUG=0 \
                SETPROCTITLE=$(usex setproctitle) \
                ${target}
 }

Reply via email to