From: Ionen Wolkens <ionen@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: James Le Cuirot <chewi@gentoo.org>
Subject: Re: [gentoo-dev] [PATCH] toolchain.eclass: Fix strip exclusion for prefixed cross-compilers
Date: Mon, 30 Dec 2024 21:31:21 -0500 [thread overview]
Message-ID: <Z3NXeSvqqAfNZb89@eversor> (raw)
In-Reply-To: <20241230233544.2802-1-chewi@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]
On Mon, Dec 30, 2024 at 11:35:25PM +0000, James Le Cuirot wrote:
> dostrip limitations mean that we cannot strip the CTARGET binaries in a
> cross-compiler. There is already a `dostrip -x` call to exclude such
> binaries from stripping, but it expects the argument to be unprefixed,
> and the argument given was prefixed.
>
> Signed-off-by: James Le Cuirot <chewi@gentoo.org>
> ---
> eclass/toolchain.eclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
> index 602f994371452..486b5877be66d 100644
> --- a/eclass/toolchain.eclass
> +++ b/eclass/toolchain.eclass
> @@ -2641,7 +2641,7 @@ toolchain_src_install() {
> # - "${D}${LIBPATH}"
> # As dostrip does not specify host to override ${CHOST} tools just skip
> # non-native binary stripping.
> - is_crosscompile && dostrip -x "${LIBPATH}"
> + is_crosscompile && dostrip -x "${LIBPATH#${EPREFIX}}"
Missing quotes in case of unlikely globs in EPREFIX
"${LIBPATH#"${EPREFIX}"}"
>
> cd "${S}" || die
> if is_crosscompile; then
> --
> 2.47.1
>
>
--
ionen
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2024-12-31 2:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 23:35 [gentoo-dev] [PATCH] toolchain.eclass: Fix strip exclusion for prefixed cross-compilers James Le Cuirot
2024-12-31 2:31 ` Ionen Wolkens [this message]
2024-12-31 10:04 ` James Le Cuirot
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=Z3NXeSvqqAfNZb89@eversor \
--to=ionen@gentoo.org \
--cc=chewi@gentoo.org \
--cc=gentoo-dev@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox