View Single Post
Old 10-13-2013, 03:16 PM   #21
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
based on Niljues suggestion to try to improve this via ldd...

I have come up with:

THING="/mnt/us/debian/usr/games/gtkboard" (for example)
then...

ldd $THING | tail +2 | awk '{a[NR%4]=$1}NR>1{print a[(NR-1)%4]}'

(this skips the /usr/lib/libenvload.so and /lib/ld-linux.so.3 results as well as only printing the library names we are interested in.

I'll look to weld that into the exporter to give better all-round results.


EDIT: so in-context this would be:

#OLD THING
#FILES=$(readelf -d ${@} |awk -F\[ ' /Shared library/ {print $2}' | cut -d"]" -f1)

#NEW THING
FILES=$(ldd ${@} | tail +2 | awk '{a[NR%4]=$1}NR>1{print a[(NR-1)%4]}')




I will look to ALSO: still find NON-native equivalents of kindle supported libs
(may take longer... but will save some time in the longrun on known trouble makers like libgthread-2.0.so.0 etc..)

that'll probably make it into the next update.

Last edited by twobob; 10-13-2013 at 03:25 PM.
twobob is offline   Reply With Quote