app-emulation/containerd: Fix GOARCH build problem

A call to coreos-go_src_prepare in src_prepare will get go_export
called, which exports the correct GOARCH value.

Fixes https://github.com/coreos/bugs/issues/2366 (torcx store has
archives of wrong arch).

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2018-02-21 15:58:44 -08:00
parent 37a9734690
commit 663b883809

View File

@ -40,7 +40,7 @@ src_unpack() {
} }
src_prepare() { src_prepare() {
default coreos-go_src_prepare
if [[ ${PV} != *9999* ]]; then if [[ ${PV} != *9999* ]]; then
sed -i -e "s/git describe --match.*$/echo ${PV})/"\ sed -i -e "s/git describe --match.*$/echo ${PV})/"\
-e "s/git rev-parse HEAD.*$/echo $CONTAINERD_COMMIT)/"\ -e "s/git rev-parse HEAD.*$/echo $CONTAINERD_COMMIT)/"\