<div dir="ltr">Hi<br><div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-09 14:01 GMT+01:00 John Crispin <span dir="ltr"><<a href="mailto:blogic@openwrt.org" target="_blank">blogic@openwrt.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
<br>
On 09/02/2015 13:57, Etienne Champetier wrote:<br>
> Hi all,<br>
><br>
> To follow r44328 (<a href="https://dev.openwrt.org/browser/trunk?rev=44328" target="_blank">https://dev.openwrt.org/browser/trunk?rev=44328</a>)<br>
> (jow fix for cmake & RPATH)<br>
> I've launched a full build of ar71xx to check all bin/lib for bad RPATH<br>
><br>
> # cd ./staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx<br>
> # find . -type f | xargs -n1 -P24 file | grep ': ELF' | awk -F':'<br>
> '{print $1}' | xargs -n1 ./checksec.sh --file | grep -v 'STACK CANARY' ><br>
> checksec.txt<br>
> # awk '{print $NF}' checksec.txt > lib.txt<br>
> # awk '{print $NF}' checksec.txt | xargs -n1 readelf -a | grep RPATH |<br>
> awk -F'[' '{print "["$2}' > rpath.txt<br>
><br>
> you can merge libs.txt and rpath.txt with<br>
> # paste lib.txt rpath.txt<br>
><br>
> I will try to fix later<br>
> Also i think we should have a test that fail the build if there is<br>
> builroot path in the RPATH<br>
><br>
> Regards<br>
> Etienne<br>
<br>
</div></div>can you build a script to turns this into a list of package names that<br>
are effected ?<br>
<br>
<br>
</blockquote></div>I'll try, but not before tonight<br></div><div class="gmail_extra"><br></div></div></div>