Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146027 - app-misc/pax-utils: `scanelf -qn` is too quiet for easy machine parsing
Summary: app-misc/pax-utils: `scanelf -qn` is too quiet for easy machine parsing
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-02 12:26 UTC by Petteri Räty (RETIRED)
Modified: 2006-09-02 13:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2006-09-02 12:26:31 UTC
I use scanelf -q -F "%n#F" -f /dev/stdin in my checkdeps.rb script
http://a.bo.cx/svn/scripts/checkdeps.rb
I just came accross a situation where a shared library installed by ibm-jdk-bin does not need any other shared library which made checkdeps.rb block indefinately because scanelf outputs nothing. 

We could change the behaviour so that it outputs only an empty line so it would be more easy to parse. For now I will work the issue by dropping -q and disrecarding the NEEDED FILE entry it produces when called on the first binary.
Comment 1 SpanKY gentoo-dev 2006-09-02 13:09:39 UTC
this is by design ... you requested quiet and the test returned nothing ... in this case, %n outputs the NEEDED entries and there are none so nothing is displayed

what you probably want is:
scanelf -B -F '%n#F' -f /dev/stdin