Skip to content

libcamera-apps: Fix library packaging issues for rpicam_app.so.1.4.2#1612

Open
selimrecep wants to merge 1 commit into
agherzan:scarthgapfrom
selimrecep:fix-1393-versioned-install-issue
Open

libcamera-apps: Fix library packaging issues for rpicam_app.so.1.4.2#1612
selimrecep wants to merge 1 commit into
agherzan:scarthgapfrom
selimrecep:fix-1393-versioned-install-issue

Conversation

@selimrecep

Copy link
Copy Markdown

Package rpicam_app.so.1.4.2 library for the default package to fix the following error.

ERROR: libcamera-apps-1.4.2+git-r0 do_package: QA Issue: libcamera-apps: Files/directories were installed but not shipped in any package:
/usr/lib/rpicam_app.so.1.4.2
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. libcamera-apps: 1 installed and not shipped files. [installed-vs-shipped] ERROR: libcamera-apps-1.4.2+git-r0 do_package: Fatal QA errors were found, failing task. ERROR: Logfile of failure stored in: /home/build-2/tmp/work/cortexa53-poky-linux/libcamera-apps/1.4.2+git/temp/log.do_package.1110484 ERROR: Task (/home/meta-raspberrypi/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps_git.bb:do_package) failed with exit code '1'

The following version expansion is used to make it compatible with future package version changes.

${@d.getVar("PV", False).str().split('+')[0]}"

Fixes: #1440

(cherry picked from commit b32d117)

- What I did
Backport of the libcamera-apps packaging fix (#1441, b32d117) to the scarthgap branch. On scarthgap, libcamera-apps 1.4.2 fails do_package with an installed but not shipped (installed-vs-shipped) QA error for rpicam_app.so.1.4.2. The fix was merged to master but never backported; master has since moved to 1.9.0 (#1522), so scarthgap hasn't received the fix.

Fixes #1393

- How I did it
Cherry-picked b32d117 from master, which adds the versioned runtime library to FILES:${PN}. The library is named rpicam_app.so.*, without the standard lib prefix, so it isn't matched by the default ${libdir}/lib*${SOLIBS} glob and has to be packaged explicitly. Verified on a Raspberry Pi Zero 2W (64-bit): the recipe builds clean and both libcamera-jpeg and libcamera-vid capture successfully (libcamera v0.4.0).

Package rpicam_app.so.1.4.2 library for the default package to fix the
following error.

ERROR: libcamera-apps-1.4.2+git-r0 do_package: QA Issue: libcamera-apps: Files/directories were installed but not shipped in any package:
  /usr/lib/rpicam_app.so.1.4.2
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
libcamera-apps: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: libcamera-apps-1.4.2+git-r0 do_package: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/build-2/tmp/work/cortexa53-poky-linux/libcamera-apps/1.4.2+git/temp/log.do_package.1110484
ERROR: Task (/home/meta-raspberrypi/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps_git.bb:do_package) failed with exit code '1'

The following version expansion is used to make it compatible with future
package version changes.

${@d.getVar("PV", False).__str__().split('+')[0]}"

Fixes: agherzan#1440

Signed-off-by: Bhargav Das <bhargavdas100@gmail.com>
(cherry picked from commit b32d117)
Signed-off-by: Recep Selim Ağırman <16990318+selimrecep@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants