Skip to content

Commit 761719a

Browse files
committed
app-containers/incus: fix cross-compilation issue
While building on `amd64`: ```bash dosbin: _dist/bin/linux_amd64/incusd does not exist ``` Signed-off-by: Mathieu Tortuyaux <[email protected]>
1 parent 4bc0e8c commit 761719a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk_container/src/third_party/portage-stable/app-containers/incus/incus-6.0.3-r1.ebuild renamed to sdk_container/src/third_party/portage-stable/app-containers/incus/incus-6.0.3-r2.ebuild

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ src_test() {
158158
src_install() {
159159
export GOPATH="${S}/_dist"
160160

161-
if tc-is-cross-compiler ; then
161+
export GOHOSTARCH=$(go-env_goarch "${CBUILD}")
162+
if [ "${GOARCH}" != "${GOHOSTARCH}" ]; then
162163
local bindir="_dist/bin/linux_${GOARCH}"
163164
else
164165
local bindir="_dist/bin"

0 commit comments

Comments
 (0)