Have you looked at the binary analysis tool? http://www.binaryanalysis.org/old/home
Regards, Jeremiah On Feb 4, 2019, at 14:20, Dan Kegel <[email protected]<mailto:[email protected]>> wrote: Hi all! Coming up with a list of licenses a binary is bound by is a mind-boggling task that I avoid whenever possible. I've been watching spdx and friends from afar for some time in hopes they will help. Recently I was asked to write a stateless, standalone tool that takes a path to a dynamically linked linux binary, and outputs an approximate list of licenses the shared libraries it uses are bound by. Here's my current draft: https://github.com/Oblong/obs/blob/master/ob-list-licenses Roughly, it uses ldd and dpkg-query to locate copyright files for all shared libraries it references, and then either just outputs the License: values for DEP-5 copyright files, or uses scancode to detect them for non-DEP-5 copyright files. Now I'm plugging along, adding optional heuristics like "XXX of dependencies can be filtered out (because I'm only interested in the bits pulled in via dynamic linking)" where XXX is "files: debian/*" and "files: doc/*" Am I duplicating work? I looked at fossology, but its complexity kind of disqualifies it (nothing about it seems standalone or stateless). Thanks, Dan ________________________________ This e-mail and any attachment(s) are intended only for the recipient(s) named above and others who have been specifically authorized to receive them. They may contain confidential information. If you are not the intended recipient, please do not read this email or its attachment(s). Furthermore, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and then delete this e-mail and any attachment(s) or copies thereof from your system. Thank you. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1208): https://lists.spdx.org/g/spdx/message/1208 Mute This Topic: https://lists.spdx.org/mt/29655547/21656 Group Owner: [email protected] Unsubscribe: https://lists.spdx.org/g/spdx/leave/2655439/1698928721/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
