Giter Site home page Giter Site logo

copydeps's People

Contributors

agateau-g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

copydeps's Issues

Error handling

It should be great to take care of potential exeptions (--destdir not writable or not exist for exemple) and output nice cli error (instead of crash with full stacktrace) with cli error code.

You can event use a lib to help you handle that.

Local shared objects do not work

Apparently whenever copydeps deals with a local .so it chokes and doesn't finish.

Example:
ldd some_elf
linux-vdso.so.1 => (0x00007ffeccfe7000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f92d170c000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f92d14ef000)
./libSDL-1.2.so.0 (0x00007f92d1265000) <--------- THIS ONE
libstdc++.so.5 => /usr/lib/x86_64-linux-gnu/libstdc++.so.5 (0x00007f92d0f89000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f92d0c80000)

copydeps -d /home/nk/bin/some_elf_libs/ some_elf
Traceback (most recent call last):
File "/usr/local/bin/copydeps", line 9, in
load_entry_point('copydeps==1.0.0', 'console_scripts', 'copydeps')()
File "/usr/local/lib/python3.5/dist-packages/copydeps-1.0.0-py3.5.egg/copydeps.py", line 238, in main
File "/usr/local/lib/python3.5/dist-packages/copydeps-1.0.0-py3.5.egg/copydeps.py", line 154, in run
File "/usr/local/lib/python3.5/dist-packages/copydeps-1.0.0-py3.5.egg/copydeps.py", line 173, in _traverse_tree
KeyError: './libSDL-1.2.so.0'

It's obvious that this particular lib is already inside the elf folder but specifying a destination directory should copy every .so that is needed by the loader no matter the .so location. Further, at least working other libs till the end would be ideal behavior with a simple error summary at the end if something went wrong (i.e. this and that libs could not be copied, etc).

Thanks!

[Blocking] Documentation improvements

After a quick look at the script, I have seen that it calls ldd and readelf which are not guaranteed to be installed (not on http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Common/LSB-Common/rcommands.html ), and I'm not sure they are on the base install of most linux distributions.
It will be good to specify in the README that they are needed.

Also, it may seems obvious but as it is a python script it can run on Windows. We should specify that it's not supposed to be run on Windows.

Suggestion : replace Linux binaries by ELF binaries

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.