Skip to contentSkip to conversation

New: check-host-rpath issues

Buildroot bugzilla at busybox.net 1 participant 6 messages Oct 26, 2016 – Oct 27, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=9381

Bug ID: 9381
Summary: check-host-rpath issues
Product: buildroot
Version: 2016.08
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: jpcartal at free.fr
CC: buildroot at uclibc.org
Target Milestone: ---

Hello,

It seems that the check-host-rpath script has issues with buildroot paths that contains links :

jpcartal at florida:buildroot-2016.08$ echo $PWD /home/jpcartal/Dev/Ssd/buildroot/buildroot-2016.08
jpcartal at florida:buildroot-2016.08$ realpath $PWD /home/jpcartal/Ssd/buildroot/buildroot-2016.08
jpcartal at florida:buildroot-2016.08$ support/scripts/check-host-rpath toto $PWD/output/host
***
*** ERROR: package toto installs executables without proper RPATH:
***
/home/jpcartal/Dev/Ssd/buildroot/buildroot-2016.08/output/host/usr/bin/crlutil
***
/home/jpcartal/Dev/Ssd/buildroot/buildroot-2016.08/output/host/usr/bin/arm-buildroot-linux-gnueabihf-ar
....
jpcartal at florida:buildroot-2016.08$ cd $(realpath $PWD)
jpcartal at florida:buildroot-2016.08$ support/scripts/check-host-rpath toto $PWD/output/host
jpcartal at florida:buildroot-2016.08$

Also it seems that the $ORIGIN ld feature is not supported.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 9381] check-host-rpath issues

https://bugs.busybox.net/show_bug.cgi?id=9381

--- Comment #1 from Thomas Petazzoni <[email protected]> --- Did you test with Buildroot 2016.08, or the latest master?

Indeed, after 2016.08, we have merged some patches that make sure the Buildroot build takes place from a canonical path, in order to avoid symlink related problems. See
https://git.buildroot.org/buildroot/commit/Makefile?id=173135df5b69dfd5ae6fe6cf2de8833c6f74c143.

If you've tried with Buildroot 2016.08, can you try with the latest master?

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 9381] check-host-rpath issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9381

--- Comment #2 from Jean-pierre Cartal <[email protected]> --- Hello,

Thanks for your answer.

I tried with release 2016.08, I'll give the master version a try and let you know.

Do you know if there is any plan to support the $ORIGIN ld feature ?

Regards.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 9381] check-host-rpath issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9381

--- Comment #3 from Thomas Petazzoni <[email protected]> --- (In reply to Jean-pierre Cartal from comment #2)

Quoted 1 line

Do you know if there is any plan to support the $ORIGIN ld feature ?

Yes. Samuel sent patches doing this, which we discussed during the latest Buildroot Developers Meeting. However, we felt that a better approach was to improve the patchelf utility, so Samuel is normally working on this. Don't hesitate to get in touch with Samuel Martin to see if he needs help on this topic.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.