All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Madison <matt@madison.systems>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>,
	Alexander Kanavin <alex@linutronix.de>
Subject: Re: [OE-core] [PATCH 4/6] go-runtime.inc: do not make installation set dependent on host
Date: Sun, 2 Jan 2022 04:39:50 -0800	[thread overview]
Message-ID: <CAGgRHJogKK0dDsu9vE9jVOYMdqUO_frmCkLLRVvDSFJmxs954Q@mail.gmail.com> (raw)
In-Reply-To: <20220101112959.1866747-4-alex@linutronix.de>

On Sat, Jan 1, 2022 at 3:30 AM Alexander Kanavin <alex.kanavin@gmail.com> wrote:
>
> This cannot be right: what we install for the target should not
> depend on what host it's being built on. If this was fixing
> some problem, there needs to be a different solution.

IIRC, I added this because the go toolchain doesn't really do
host/target separation like gcc does. The runtime packages for both
host and target get populated during the compilation, and if the
target architecture matches the build host's architecture, you'd get
just one copy in the tree. And back then, at least, the go-runtime
package needed those files, so the check was there to make sure they
didn't get deleted just because the two architectures were the same.

That's the way things were 5 years ago, though, and the toolchain has
changed a lot since then. It might not be needed any more.

-Matt

>
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> ---
>  meta/recipes-devtools/go/go-runtime.inc | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-devtools/go/go-runtime.inc b/meta/recipes-devtools/go/go-runtime.inc
> index a08d44dd3a..106017bd89 100644
> --- a/meta/recipes-devtools/go/go-runtime.inc
> +++ b/meta/recipes-devtools/go/go-runtime.inc
> @@ -43,10 +43,8 @@ do_compile[cleandirs] += "${GOTMPDIR} ${B}/bin ${B}/pkg"
>  do_install() {
>         install -d ${D}${libdir}/go/src
>         cp --preserve=mode,timestamps -R ${B}/pkg ${D}${libdir}/go/
> -       if [ "${BUILD_GOTUPLE}" != "${TARGET_GOTUPLE}" ]; then
> -               rm -rf ${D}${libdir}/go/pkg/${BUILD_GOTUPLE}
> -               rm -rf ${D}${libdir}/go/pkg/obj/${BUILD_GOTUPLE}
> -       fi
> +       rm -rf ${D}${libdir}/go/pkg/${BUILD_GOTUPLE}
> +       rm -rf ${D}${libdir}/go/pkg/obj/${BUILD_GOTUPLE}
>         rm -rf ${D}${libdir}/go/pkg/tool
>         rm -rf ${D}${libdir}/go/pkg/obj
>         rm -rf ${D}${libdir}/go/pkg/bootstrap
> --
> 2.20.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#160097): https://lists.openembedded.org/g/openembedded-core/message/160097
> Mute This Topic: https://lists.openembedded.org/mt/88071321/3618418
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [matt@madison.systems]
> -=-=-=-=-=-=-=-=-=-=-=-
>


  reply	other threads:[~2022-01-02 12:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-01 11:29 [PATCH 1/6] go: log build id computations Alexander Kanavin
2022-01-01 11:29 ` [PATCH 2/6] lib/oe/reproducible: correctly set .git location when recursively looking for git repos Alexander Kanavin
2022-01-01 11:29 ` [PATCH 3/6] go: correctly set debug-prefix-map and build directory Alexander Kanavin
2022-01-10  4:34   ` [OE-core] " Dmitry Baryshkov
2022-01-10  8:08     ` Alexander Kanavin
2022-01-12 14:47       ` Dmitry Baryshkov
2022-01-12 14:55       ` Dmitry Baryshkov
2022-01-12 15:00         ` Alexander Kanavin
2022-01-12 15:07           ` Otavio Salvador
     [not found]         ` <16C98DFE7ACD4942.29114@lists.openembedded.org>
2022-01-12 15:07           ` Alexander Kanavin
2022-01-01 11:29 ` [PATCH 4/6] go-runtime.inc: do not make installation set dependent on host Alexander Kanavin
2022-01-02 12:39   ` Matt Madison [this message]
2022-01-02 16:30     ` [OE-core] " Alexander Kanavin
     [not found]     ` <16C6811541A7227F.5913@lists.openembedded.org>
2022-01-02 18:13       ` Alexander Kanavin
2022-01-01 11:29 ` [PATCH 5/6] go: additional patches to help reproducibility Alexander Kanavin
2022-01-01 11:29 ` [PATCH 6/6] selftest/reproducible: drop go items from exception list Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGgRHJogKK0dDsu9vE9jVOYMdqUO_frmCkLLRVvDSFJmxs954Q@mail.gmail.com \
    --to=matt@madison.systems \
    --cc=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.