On 05/28/2016 07:17 AM, Paul Wise wrote: > On Sat, May 28, 2016 at 2:17 AM, Jens Reyer wrote: > >> Then (instead of creating a binary linking to the required >> libraries and running dpkg-shlibdeps on this) I replicate things >> from dpkg-shlibdeps(1) to identify the library package names for >> these sonames: > > I wonder if the best solution would be to allow dpkg-shlibdeps to > accept a list of SONAMEs instead of getting that from an ELF file. > Then you could do something like this: > > dpkg-shlibdeps -pdlopen -dRecommends -alibc.so.6 > > Until that is available it seems to me that Jakub Wilk's method of > generating an ELF binary with NEEDED entries for the relevant SONAMEs > is much simpler and less error prone than essentially reimplementing > dpkg-shlibdeps. A modification to the upstream build system could > probably auto-generate the ELF binary and once you have the ELF > binary, you can just do this: > > override_dh_shlibdeps: > dpkg-shlibdeps -pdlopen -dRecommends -etheelfbinary > dh_shlibdeps
Thanks! Turns out your suggestion for dpkg-shlibdeps has already been requested: #596715 (dpkg-shlibdeps: Please allow to manually add library dependencies via shlibdeps) #548463 (dpkg-shlibdeps: Please provide a method to compute dependencies for non-elf) Greets jre