summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2019-05-05 06:23:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-08 12:15:17 +0100
commitf0aa7f09a4c752b922d79cc4ef847bc65503abcf (patch)
treed8f189086c77ae5ecc64c98cbc645c46eb7b0951 /meta/classes
parentc499f55303ec40942f5dfa3ca95037591d9242ae (diff)
downloadpoky-f0aa7f09a4c752b922d79cc4ef847bc65503abcf.tar.gz
go: Exclude vcs files when installing deps
Because our clones use the host git, on (say) Ubuntu 18.04, the local git directories acquire perl scripts such as fsmonitor-watchman.sample. During packaging, this leads to failures: ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: QA Issue: /usr/lib/go/pkg/dep/sources/https---github.com-nsf-termbox--go/.git/hooks/fsmonitor-watchman.sample contained in package go-hsperfdata-staticdev requires /usr/bin/perl, but no providers found in RDEPENDS_go-hsperfdata-staticdev? [file-rdeps] ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: Function failed: do_package_qa (From OE-Core rev: 2ee246524ab881d57d8aac204f671215a25a58d3) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/go.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 7f5e8b99bf..b6d9372c56 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -130,7 +130,7 @@ go_do_install() {
130 install -d ${D}${libdir}/go/src/${GO_IMPORT} 130 install -d ${D}${libdir}/go/src/${GO_IMPORT}
131 tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' . | \ 131 tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' . | \
132 tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf - 132 tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf -
133 tar -C ${B} -cf - pkg | tar -C ${D}${libdir}/go --no-same-owner -xf - 133 tar -C ${B} -cf - --exclude-vcs pkg | tar -C ${D}${libdir}/go --no-same-owner -xf -
134 134
135 if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then 135 if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then
136 install -d ${D}${bindir} 136 install -d ${D}${bindir}