Am 15.04.2012 01:38, schrieb Pandu Poluan:
> 
> On Apr 15, 2012 2:10 AM, "Florian Philipp" <li...@binarywings.net
> <mailto:li...@binarywings.net>> wrote:
>>
>> Am 14.04.2012 18:34, schrieb Alan McKinnon:
>> > On Sat, 14 Apr 2012 23:10:30 +0700
>> > Pandu Poluan <pa...@poluan.info <mailto:pa...@poluan.info>> wrote:
>> >
>> >>> Or direct dynamically linked libraries?
>> >>> equery files -f obj sys-fs/lvm2 | xargs ldd 2>/dev/null
>> >>>
>> >>> Or kernel features?
>> >>>
>> >>
>> >> The libraries, actually. Sadly I currently don't have access to a
>> >> Gentoo box, so I would really appreciate it if I can get the output
>> >> of the ldd.
>> >
>> >
>> > Here you go. I blindly ran ldd on anything that looked binary or
> executable but not a symlink (so there's several false positives):
>> >
>> > alanm@khamul ~ $ ldd /sbin/lvm
>> >         linux-vdso.so.1 =>  (0x00007fffca444000)
>> >         libudev.so.0 => /usr/lib64/libudev.so.0 (0x00007ff92e7a3000)
>> >         libdl.so.2 => /lib64/libdl.so.2 (0x00007ff92e59f000)
>> >         libdevmapper-event.so.1.02 =>
> /lib64/libdevmapper-event.so.1.02 (0x00007ff92e399000)
>> >         libdevmapper.so.1.02 => /lib64/libdevmapper.so.1.02
> (0x00007ff92e160000)
>> >         libreadline.so.6 => /lib64/libreadline.so.6 (0x00007ff92df19000)
>> >         libc.so.6 => /lib64/libc.so.6 (0x00007ff92db6d000)
>> >         librt.so.1 => /lib64/librt.so.1 (0x00007ff92d964000)
>> >         /lib64/ld-linux-x86-64.so.2 (0x00007ff92e9b1000)
>> >         libncurses.so.5 => /lib64/libncurses.so.5 (0x00007ff92d70f000)
>> >         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff92d4f1000)
>> [...]
>>
>> As I was slightly bored and thought it might help, I took the liberty to
>> clean that up a bit:
>> equery files -f obj sys-fs/lvm2 | xargs ldd 2>/dev/null |
>>        grep -E -o '=> [^ ]+' | cut -d ' ' -f 2 | sort -u
>> /lib64/libc.so.6
>> /lib64/libdevmapper-event-lvm2.so.2.02
>> /lib64/libdevmapper-event.so.1.02
>> /lib64/libdevmapper.so.1.02
>> /lib64/libdl.so.2
>> /lib64/liblvm2cmd.so.2.02
>> /lib64/libncurses.so.5
>> /lib64/libpthread.so.0
>> /lib64/libreadline.so.6
>> /lib64/librt.so.1
>> /lib64/libudev.so.0
>>
>> Hope this helps,
>> Florian Philipp
>>
> 
> Kewl! Based on the names, I assume they're the actual files (i.e.
> symlinks already dereferenced)?
> 
> Rgds,
> 

No:
equery files -f obj sys-fs/lvm2 | xargs ldd 2>/dev/null |
grep -E -o '=> [^ ]+' | cut -d' ' -f 2 | sort -u | xargs ls -l |
awk '{print $9 $10 $11}'

/lib64/libc.so.6->libc-2.13.so
/lib64/libdevmapper-event-lvm2.so.2.02
/lib64/libdevmapper-event.so.1.02
/lib64/libdevmapper.so.1.02
/lib64/libdl.so.2->libdl-2.13.so
/lib64/liblvm2cmd.so.2.02
/lib64/libncurses.so.5->libncurses.so.5.9
/lib64/libpthread.so.0->libpthread-2.13.so
/lib64/libreadline.so.6->libreadline.so.6.2
/lib64/librt.so.1->librt-2.13.so
/lib64/libudev.so.0->libudev.so.0.11.5

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to