dpkg-shlibdeps: error: no dependency information found for

前端 未结 8 1555
有刺的猬
有刺的猬 2020-12-13 09:05

I\'m compiling a deb package and when I run dpkg-buildpackage I get:

dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libopencv_high         


        
相关标签:
8条回答
  • 2020-12-13 09:19

    Finally I did it in the brute way:

    I edited the script /usr/bin/dpkg-shlibdeps, changing this :

    my $ignore_missing_info = 0;
    

    to

    my $ignore_missing_info = 1;
    
    0 讨论(0)
  • 2020-12-13 09:30

    Yet another way, without modifying build scripts, just creating one file.

    You can specify local shlib overrides by creating debian/shlibs.local with the following format: library-name soname-version dependencies

    For example, given the following (trimmed) ldd /path/to/binary output

    libevent-2.0.so.5 => /usr/lib/libevent-2.0.so.5 (0x00007fc9e47aa000)
    libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007fc9e4161000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fc9e3b1a000)
    

    The contents of debian/shlibs.local would be:

    libevent-2.0 5 libevent-2.0
    libgcrypt 20 libgcrypt
    libpthread 0 libpthread
    

    The "dependencies" list (third column) doesn't need to be 100% accurate - I just use the library name itself again.

    Of course this isn't needed in a sane debian system which has this stuff defined in /var/lib/dpkg/info (which can be used as inspiration for these overrides). Mine isn't a sane debian system.

    0 讨论(0)
提交回复
热议问题