Skip to contentSkip to conversation

containerd: Fix build on 386

PATCH Applied Jan Kiszka 2 participants 4 messages Feb 10, 2017 – Feb 16, 2017

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 containerd: Fix build on 386

Go only understands "386" as target arch, not "i586". Adjust this.

---

Found while building meta-virtualization for an Intel Quark target.

 recipes-containers/containerd/containerd_git.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-containers/containerd/containerd_git.bb +3 -0
index c257355..5b94dde 100644
@@ -35,6 +35,9 @@ do_compile() {
 	if [ "${TARGET_ARCH}" = "aarch64" ]; then
 		export GOARCH="arm64"
 	fi
+	if [ "${TARGET_ARCH}" = "i586" ]; then
+		export GOARCH="386"
+	fi
 
 	# Set GOPATH. See 'PACKAGERS.md'. Don't rely on
 	# docker to download its dependencies but rather
#1 lore raw

applied.

Bruce

Quoted 32 lines · Jan Kiszka

Go only understands "386" as target arch, not "i586". Adjust this.

---

Found while building meta-virtualization for an Intel Quark target.

 recipes-containers/containerd/containerd_git.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-containers/containerd/containerd_git.bb +3 -1
index c257355..5b94dde 100644
@@ -35,6 +35,9 @@ do_compile() {
        if [ "${TARGET_ARCH}" = "aarch64" ]; then
                export GOARCH="arm64"
        fi
+       if [ "${TARGET_ARCH}" = "i586" ]; then
+               export GOARCH="386"
+       fi
 
        # Set GOPATH. See 'PACKAGERS.md'. Don't rely on
        # docker to download its dependencies but rather
 
--

_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
author
#2 lore raw
Quoted 4 lines · Bruce Ashfield

applied.

Bruce

Thanks. Will it go into stable as well? At least morty.

Jan

Quoted 49 lines

On Fri, Feb 10, 2017 at 7:14 AM, Jan Kiszka <[email protected] <mailto:[email protected]>> wrote:

    Go only understands "386" as target arch, not "i586". Adjust this.

    Signed-off-by: Jan Kiszka <[email protected]
    <mailto:[email protected]>>
    ---

    Found while building meta-virtualization for an Intel Quark target.

     recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb> | 3 +++
     1 file changed, 3 insertions(+)

    diff --git a/recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb>
    b/recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb>
    index c257355..5b94dde 100644
    --- a/recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb>
    +++ b/recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb>
    @@ -35,6 +35,9 @@ do_compile() {
            if [ "${TARGET_ARCH}" = "aarch64" ]; then
                    export GOARCH="arm64"
            fi
    +       if [ "${TARGET_ARCH}" = "i586" ]; then
    +               export GOARCH="386"
    +       fi

            # Set GOPATH. See 'PACKAGERS.md'. Don't rely on
            # docker to download its dependencies but rather

    --
    _______________________________________________
    meta-virtualization mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.yoctoproject.org/listinfo/meta-virtualization
    <https://lists.yoctoproject.org/listinfo/meta-virtualization>
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
#3 lore raw
Quoted 8 lines · Jan Kiszka
Quoted 4 lines · Bruce Ashfield

applied.

Bruce

Thanks. Will it go into stable as well? At least morty.

I've been tied up fighting with docker .. but yes, I'll queue this up and push it out to
the -stable branches shortly.

Bruce

Quoted 57 lines

Jan

Quoted 46 lines

On Fri, Feb 10, 2017 at 7:14 AM, Jan Kiszka <[email protected] <mailto:[email protected]>> wrote:

    Go only understands "386" as target arch, not "i586". Adjust this.

    Signed-off-by: Jan Kiszka <[email protected]
    <mailto:[email protected]>>
    ---

    Found while building meta-virtualization for an Intel Quark target.

     recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb> | 3 +++
     1 file changed, 3 insertions(+)

    diff --git a/recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb>
    b/recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb>
    index c257355..5b94dde 100644
    --- a/recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb>
    +++ b/recipes-containers/containerd/containerd_git.bb
    <http://containerd_git.bb>
    @@ -35,6 +35,9 @@ do_compile() {
            if [ "${TARGET_ARCH}" = "aarch64" ]; then
                    export GOARCH="arm64"
            fi
    +       if [ "${TARGET_ARCH}" = "i586" ]; then
    +               export GOARCH="386"
    +       fi

            # Set GOPATH. See 'PACKAGERS.md'. Don't rely on
            # docker to download its dependencies but rather

    --
    _______________________________________________
    meta-virtualization mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.yoctoproject.org/listinfo/meta-virtualization
    <https://lists.yoctoproject.org/listinfo/meta-virtualization>
Quoted 3 lines

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"