|
Hello How exactly to you use dpkg-shlibdeps? Because I get the following bug: dpkg-shlibdeps: failure: cannot read debian/control: No such file or directory I have implemented the following little script to get the dependencies of my libraries: #!/bin/bash LIBS="$@" ( for x in `objdump -p ${LIBS} | grep NEEDED` do if [ ! ${x} = "NEEDED" ] then VAR="`dpkg -S ${x}`" VAR=${VAR//:*/} echo ${VAR} fi done ) | sort -u The libraries are passed as parameter to the script and it returns the list of needed packages. It can easily be used in the EXECUTE_PROCESS command. Could this be used? What do you think? Because I have several problems: 1) I do not wanna pass the libraries hard coded => I would like to get all libraries|executables which are installed by my deb file automatically. They are defined by the INSTALL(PROGRAMS ...) command. But I cannot get a list of theses libs|exes. 2) What about dependencies to my own (installed) libraries. They must be excluded in the script. I think this could be done with the information form 1). 3) Where should I execute this script. I think, it must be executed in the config file for cpack. David Hendrik Sattler wrote: Mathieu Malaterre schrieb:I quickly browse thought the page you sent and indeed this is the way to retrieve the shared lib deps. However, debian references packages name (not lib name). So we are still missing the inverse lookup of what package provide a particular shared libs. I can't remember which file list all those (package -> libs reference). I guess one could do a: |
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
