From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Markus Mayer via buildroot <buildroot@buildroot.org>
Cc: Markus Mayer <mmayer@broadcom.com>
Subject: Re: [Buildroot] [PATCH] toolchain-external: handle case of dangling symlink
Date: Tue, 7 Feb 2023 10:21:48 +0100 [thread overview]
Message-ID: <20230207102148.28d2ed73@windsurf> (raw)
In-Reply-To: <20220624221901.514921-1-mmayer@broadcom.com>
On Fri, 24 Jun 2022 15:19:01 -0700
Markus Mayer via buildroot <buildroot@buildroot.org> wrote:
> copy_toolchain_lib_root was not handling the case of "readlink"
> returning nothing, which will happen if the symlink it is trying to
> resolve does not point to a valid file on the build host. This
> shouldn't happen, but it can.
>
> The end result of this situation would be an endless loop of error
> messages that would only end if aborted manually.
>
> [...]
> cp: missing destination file operand after
> '/local/users/mmayer/buildroot/output/arm64/target//'
> Try 'cp --help' for more information.
> readlink: missing operand
> Try 'readlink --help' for more information.
> basename: missing operand
> Try 'basename --help' for more information.
> dirname: missing operand
> Try 'dirname --help' for more information.
> ^C
> make[1]: *** [package/pkg-generic.mk:384:
>
> Instead of looping endlessly without explanation, let's abort and
> inform the user that something seems amiss with their setup.
>
> Signed-off-by: Markus Mayer <mmayer@broadcom.com>
> ---
> toolchain/helpers.mk | 5 +++++
> 1 file changed, 5 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2023-02-07 9:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-24 22:19 [Buildroot] [PATCH] toolchain-external: handle case of dangling symlink Markus Mayer via buildroot
2023-01-11 14:47 ` Romain Naour
2023-02-07 9:23 ` Thomas Petazzoni via buildroot
2023-02-07 9:21 ` Thomas Petazzoni via buildroot [this message]
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=20230207102148.28d2ed73@windsurf \
--to=buildroot@buildroot.org \
--cc=mmayer@broadcom.com \
--cc=thomas.petazzoni@bootlin.com \
/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.