diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-05-15 19:37:39 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-06-23 04:16:40 -1000 |
| commit | 756c144ee1034fe811d38b7847c55f258b3578f1 (patch) | |
| tree | 2fdf4e0747304a587bc625f50ed8a03e48cbb2e6 | |
| parent | d3153b2847b135681d07e4fd34c37c0fcf0df297 (diff) | |
| download | poky-756c144ee1034fe811d38b7847c55f258b3578f1.tar.gz | |
go.bbclass: don't use test to check output from ls
* avoids possibly confusing error message in log.do_install like:
ls: cannot access 'etcd/3.5.7-r0/build/bin/linux_arm64/': No such file or directory
(From OE-Core rev: f9b1a56c50a96ad6300a48bf74a540579b352411)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 2f1777e6ac5269a71203b6a2c562a43503be95ae)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/classes/go.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index f3d83febbf..d944722309 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass | |||
| @@ -122,7 +122,7 @@ go_do_install() { | |||
| 122 | tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ | 122 | tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ |
| 123 | tar -C ${D}${libdir}/go --no-same-owner -xf - | 123 | tar -C ${D}${libdir}/go --no-same-owner -xf - |
| 124 | 124 | ||
| 125 | if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then | 125 | if ls ${B}/${GO_BUILD_BINDIR}/* >/dev/null 2>/dev/null ; then |
| 126 | install -d ${D}${bindir} | 126 | install -d ${D}${bindir} |
| 127 | install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ | 127 | install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ |
| 128 | fi | 128 | fi |
