Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250529 - app-misc/pax-utils: scanmacho is broken
Summary: app-misc/pax-utils: scanmacho is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 17:39 UTC by Elias Pipping
Modified: 2008-12-10 21:31 UTC (History)
2 users (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 Elias Pipping 2008-12-10 17:39:34 UTC
the manpage mentions MH_EXECUTABLE. that should be MH_EXECUTE.

furthermore, -N / --lib doesn't seem to have any effect
Comment 1 Fabian Groffen gentoo-dev 2008-12-10 20:46:33 UTC
(In reply to comment #0)
> furthermore, -N / --lib doesn't seem to have any effect

same holds for scanelf:

$ scanelf -N bla.so /usr/lib
 TYPE   LIB FILE 
ET_DYN  /usr/lib/libcairo.so.2.10800.4 
...
...
...

In any case it's not clear to me how it should be used if it does work correctly.
Comment 2 solar (RETIRED) gentoo-dev 2008-12-10 20:58:46 UTC
Mike,
This is all you. I had removed the scanmaco from the public releases due to it's licenses unclarity w/ some header files. 
Comment 3 Fabian Groffen gentoo-dev 2008-12-10 21:02:13 UTC
(In reply to comment #2)
> I had removed the scanmaco from the public releases due to
> it's licenses unclarity w/ some header files. 

Ohw, really?  What needs clearing up there?  I pulled it from public documentation as far as I know...  Probably luck that it doesn't compile then, otherwise I'd only noticed when Portage would break down ;)

Comment 4 SpanKY gentoo-dev 2008-12-10 21:10:17 UTC
you're just not using -N properly.  the output you show makes it look like it's working perfectly fine.

$ scanelf -qRNlibncurses.so.5 /lib/
libncurses.so.5  /lib/libreadline.so.5.2
libncurses.so.5  /lib/libdevmapper-event-lvm2mirror.so.2.02
libncurses.so.5  /lib/libeinfo.so.1
libncurses.so.5  /lib/libgpm.so.1.20.0
libncurses.so.5  /lib/libhistory.so.5.2
libncurses.so.5  /lib/libedit.so
Comment 5 Elias Pipping 2008-12-10 21:18:55 UTC
Appears to work fine indeed

pipping@quicksand ~ $ scanmacho -qRN/usr/lib/libSystem.B.dylib /usr/lib | wc -l
863
pipping@quicksand ~ $ scanmacho -qRN/usr/lib/libSystem.A.dylib /usr/lib | wc -l
0

Either I'm too dumb for the tool or the manpage could use polish :)
Comment 6 Fabian Groffen gentoo-dev 2008-12-10 21:23:26 UTC
same here.  I fixed the manpage typo, so there's nothing broken here any more then.
Comment 7 SpanKY gentoo-dev 2008-12-10 21:31:12 UTC
feel free to recommend better wording/description and we can get it in