dpkg-shlibdeps: error: no dependency information found for

前端 未结 8 1554
有刺的猬
有刺的猬 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:10

    use:

    override_dh_shlibdeps:
        dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
    

    if your rule file hasn't the dh_shlibdeps call in it. That's usually the case if you've

    %:
        dh $@
    

    as only rule in it ... in above you must use a tab and not spaces in front of the dh_shlibdeps

    0 讨论(0)
  • 2020-12-13 09:11

    You can use this:

    dh_makeshlibs -a -n
    

    exactly after dh_install

    0 讨论(0)
  • 2020-12-13 09:14

    You've just misspelled your export. It should be like this:

    export DEB_DH_SHLIBDEPS_ARGS_ALL=--dpkg-shlibdeps-params=--ignore-missing-info
    
    0 讨论(0)
  • 2020-12-13 09:15

    Instead of merely ignoring the error, you might also want to fix the source of the error, which is usually either a missing or an incorrect package.shlibs or package.symbols file in package which contains the shared library triggering the error.

    [1] documents how dpkg-shlibdeps uses the package.shlibs resp. package.symbols, files, [2] documents the format of the package.shlibs and package.symbols files.

    • [1] https://manpages.debian.org/jessie/dpkg-dev/dpkg-shlibdeps.1.en.html
    • [2] https://www.debian.org/doc/debian-policy/ch-sharedlibs.html
    0 讨论(0)
  • 2020-12-13 09:17

    If you want it to just ignore that flag, change the debian/rules line from:

    dh_shlibdeps
    

    to:

    dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
    
    0 讨论(0)
  • 2020-12-13 09:17

    dpkg-buildpackage uses make to process debian/rules. in this process, dpkg-buildpackage it might call dpkg-shlibdeps.

    thus, the proper way to pass modify a part of the package building process is to edit debian/rules. it's hard to give you any more hints, without seeing the actual debian/rules.

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