[oe-commits] [openembedded-core] 05/26: go.bbclass: don't stage test data with sources

git at git.openembedded.org git at git.openembedded.org
Tue Feb 27 23:44:16 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 7be59a30deab88c5f84c1715f8d3c8dd378a0887
Author: Matt Madison <matt at madison.systems>
AuthorDate: Tue Feb 27 04:36:31 2018 -0800

    go.bbclass: don't stage test data with sources
    
    Any directory in a Go package's source tree called
    'testdata' contains test data, and isn't necessary
    for building.
    
    Some packages include ELF files and other binaries
    as test data, and staging them in the sysroot and
    -dev package leads to unnecessary QA warnings.
    
    Signed-off-by: Matt Madison <matt at madison.systems>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/go.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index a20d2dc..cd3d9d5 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -108,7 +108,7 @@ do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
 
 go_do_install() {
 	install -d ${D}${libdir}/go/src/${GO_IMPORT}
-	tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' . | \
+	tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' . | \
 		tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf -
 	tar -C ${B} -cf - pkg | tar -C ${D}${libdir}/go --no-same-owner -xf -
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list