From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [CONSOLIDATED REQUEST 55/64] chrpath.bbclass: Account for case when ORIGIN is in RPATH
Date: Wed, 15 Aug 2012 14:12:42 +0100 [thread overview]
Message-ID: <1345036362.538.3.camel@ted> (raw)
In-Reply-To: <5824e7f06b2263fc89efa12f2aeee13f6cf76c54.1344946189.git.sgw@linux.intel.com>
On Tue, 2012-08-14 at 15:13 +0300, Saul Wold wrote:
> From: Khem Raj <raj.khem@gmail.com>
>
> This fixes a case when RPATH embedded in program have one of
> its path already relative to ORIGIN. We were losing that path
> if such a path existed. This patch appends it to the new edited
> rpath being created when we see it.
>
> so RPATH like below
>
> (RPATH) Library rpath:
> [$ORIGIN/../lib/amd64/jli:$ORIGIN/../jre/lib/amd64/jli]
>
> would end up being empty
>
> but after this patch its kept intact
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/classes/chrpath.bbclass | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/chrpath.bbclass b/meta/classes/chrpath.bbclass
> index 10b5ca0..e903b65 100644
> --- a/meta/classes/chrpath.bbclass
> +++ b/meta/classes/chrpath.bbclass
> @@ -49,6 +49,7 @@ def process_dir (directory, d):
> new_rpaths = []
> for rpath in rpaths:
> # If rpath is already dynamic continue
> + new_rpaths.append("%s" % (rpath.strip()))
> if rpath.find("$ORIGIN") != -1:
> continue
> # If the rpath shares a root with base_prefix determine a new dynamic rpath from the
Shouldn't this read:
if rpath.find("$ORIGIN") != -1:
new_rpaths.append("%s" % (rpath.strip()))
continue
as the code above would add *all* the old rpaths to the binary as well
as any relocations?
Cheers,
Richard
next prev parent reply other threads:[~2012-08-15 13:24 UTC|newest]
Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 12:13 [CONSOLIDATED REQUEST 00/64] Post Milestone Catch-Up Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 01/64] rxvt-unicode: remove setting of LD_LIBRARY_PATH Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 02/64] rxvt-unicode: cleanup update-alternatives deprecated code Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 03/64] openssh: " Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 04/64] mini-x-session: " Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 05/64] console-tools: " Saul Wold
2012-08-14 19:01 ` Richard Purdie
2012-08-15 20:57 ` Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 06/64] kbd: " Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 07/64] tinylogin: " Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 08/64] patch: " Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 09/64] ubootchart: " Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 10/64] bc: " Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 11/64] diffutils: refactor to add a common diffutils.inc Saul Wold
2012-08-14 12:12 ` [CONSOLIDATED REQUEST 12/64] diffutils: cleanup update-alternatives deprecated code Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 13/64] findutils: refactor common code to findutils.inc Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 14/64] findutils: cleanup update-alternatives deprecated code Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 15/64] powertop: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 16/64] mutter: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 17/64] matchbox-wm-2: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 18/64] matchbox-session: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 19/64] metacity: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 20/64] pigz: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 21/64] msmtp: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 22/64] mktemp: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 23/64] which: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 24/64] less: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 25/64] shadow: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 26/64] mingetty: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 27/64] hdparm: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 28/64] gzip: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 29/64] procps: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 30/64] time: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 31/64] wget: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 32/64] sed: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 33/64] gawk: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 34/64] net-tools: " Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 35/64] run-postinsts does not run any scripts Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 36/64] dbus: provide/replace dbus-x11 only for target Saul Wold
2012-08-15 13:20 ` Richard Purdie
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 37/64] systemtap-uprobes: inhibit package strip Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 38/64] base.bbclass: fix PACKAGECONFIG handling code Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 39/64] bitbake.conf: store cooker logs in subdirectory of LOG_DIR Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 40/64] base.bbclass: allow specifying an lsb distro hook via the metadata Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 41/64] libxpm-native: add dependency on gettext-native Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 42/64] layer.conf: add udev-extraconf to SIGGEN_EXCLUDERECIPES_ABISAFE Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 43/64] tcl: uncomment a line that causing TCL_SRC_DIR point to the workdir Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 44/64] qemu: backport patch to fix pl031 RTC Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 45/64] pango: upgrade to upstream stable 1.30.0 Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 46/64] owl-video_git.bb: fix compilation on Fedora 13 machine Saul Wold
2012-08-14 14:48 ` McClintock Matthew-B29882
2012-08-14 15:07 ` Burton, Ross
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 47/64] gstreamer: gst-ffmpeg: fix build issues for libav Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 48/64] cracklib, zlib, perl: install libz, libcrack to /lib instead of /usr/libxx Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 49/64] gdk-pixbuf: fix the postinstall script failure when no icon is installed Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 50/64] at 3.1.13: get 'at' depends on 'flex-native' explicitly Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 51/64] sysfsutils: install libs to base_libdir Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 52/64] base.bbclass: Expand PNBLACKLIST across multilibs too Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 53/64] base.bbclass: Restructure multilib variable cloning Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 54/64] dbus: Fix pid file in dbus init script Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 55/64] chrpath.bbclass: Account for case when ORIGIN is in RPATH Saul Wold
2012-08-15 13:12 ` Richard Purdie [this message]
2012-08-15 18:24 ` Khem Raj
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 56/64] gettext-0.18: explicitly disable acl Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 57/64] sysklogd: removed tabs from syslog.conf Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 58/64] pigz: Update to upstream version 2.2.5 Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 59/64] man: fix RDEPENDS and reformat recipe Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 60/64] kernel.bbclass: Preserve generated headers Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 61/64] kernel.bbclass: remove default module_autoload and module_conf values Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 62/64] man: make man actually work by installing custom man.config Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 63/64] libdrm: package update 2.4.35 -> 2.4.37 Saul Wold
2012-08-14 12:13 ` [CONSOLIDATED REQUEST 64/64] rpmresolve: improve debug output Saul Wold
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=1345036362.538.3.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox