[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding runtime dependencies that aren't caught by shlibs:Depends



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

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Reply to: