From: Peter Korsgaard <peter@korsgaard.com>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] support/scripts: fix RPATH fixups
Date: Fri, 20 Sep 2024 16:53:27 +0200 [thread overview]
Message-ID: <871q1eidg8.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20240911190900.982461-1-yann.morin.1998@free.fr> (Yann E. MORIN's message of "Wed, 11 Sep 2024 21:09:00 +0200")
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> Commit a87abcf6da65 (Makefile: run PPD and RPATH fixup in host-fialize)
> (sic) moved the fixups peviously done in prepare-sdk, to host-finalize.
> This exposed a bug in fix-rpath, when RPATH contains multiple entries,
> like: /PPD/host-foo/host/lib:/PPD/host-foo/host/lib/foo
> In that situation, we want to get rid of /PPD/host-foo and replace it
> with the finale HOST_DIR, so we mangle the RPATH with a sed expression.
> However, that sed expression only ever replaces the first match, as it
> is missing the 'g' option. Thus, the second (and following) parts of
> RPATH are still referring to the PPD, and thus patchelf does not find it
> relative to the final HOST_DIR, amd rops it. This eventually lead to a
> final RPATH set as $ORIGIN/../lib instead of the expected
> $ORIGIN/../lib:$ORIGIN/../lib/foo
> This is the case for host-systemd, which installs some of its libraries
> in $PREFIX/lib/systemd/ and adds an RPATH set appropriately to
> /PPD/host-systemd/host/lib:/PPD/host-systemd/host/lib/systemd and that
> gets incorrectly mangled.
> Fixes: https://gitlab.com/buildroot.org/buildroot/-/issues/39
> Also fix a typo in the comment just above.
> Reported-by: José Luis Salvador Rufo @jlsalvador
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-09-20 14:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 19:09 [Buildroot] [PATCH] support/scripts: fix RPATH fixups Yann E. MORIN
2024-09-16 9:37 ` Yann E. MORIN
2024-09-16 12:51 ` Adam Duskett
2024-09-20 14:53 ` Peter Korsgaard [this message]
2024-09-27 9:39 ` Anssi Hannula via buildroot
2024-09-27 10:58 ` Peter Korsgaard
2024-10-12 13:55 ` Peter Korsgaard
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=871q1eidg8.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=yann.morin.1998@free.fr \
/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.