Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcamera: fix packaging and installation #256

Commits on Jul 24, 2020

  1. libcamera: fix packaging and installation

    libcamera checks if RPATH or RUNPATH dynamic tag is present in
    libcamera.so. If it does, it assumes that libcamera binaries are
    run directly from the build directory without installing them, and
    tries to use resorces like IPA modules from the build directory.
    Mainline meson strips RPATH/RUNPATH out at install time (for
    meson versions up to 0.54; the things are somewhat changed in 0.55).
    But openembedded-core patches meson to disable RPATH/RUNPATH removal.
    That's why we need to remove this tag manually in do_install_append().
    
    IPA module is signed (with openssl dgst) after it is built. But
    during packaging the OE build system 1) splits out debugging info,
    and 2) strips the binaries. So the IPA module *.so file installed
    isn't the one which the signature was calculated against. Then
    the signature check fails, and libcamera tries to run the IPA
    module isolated (in a sandbox), which doesn't work if the IPA
    module wasn't designed to run isolated. The easiest way to fix that
    is to disable splitting out debug information and stripping the binaries
    during packaging with INHIBIT_PACKAGE_DEBUG_SPLIT and
    INHIBIT_PACKAGE_STRIP.
    
    Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
    andrey-konovalov committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    52d2202 View commit details
    Browse the repository at this point in the history