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

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).

@selimrecep

Copy link
Copy Markdown
Author

I am not sure why two of the CI/CD checks failed, some kind of contention issue between different commits/builds?

@selimrecep

Copy link
Copy Markdown
Author

Bumping this since it’s been sitting for a while.

The two red checks look like timeouts rather than build failures. Could someone re-run those two jobs?

This change is just the cherry-pick of b32d117.

@kraj
kraj enabled auto-merge (rebase) September 12, 2026 23:33
@kraj

kraj commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Bumping this since it’s been sitting for a while.

The two red checks look like timeouts rather than build failures. Could someone re-run those two jobs?

This change is just the cherry-pick of b32d117.

yeah, it says
The job has exceeded the maximum execution time while awaiting a runner for 24h0m0s

Can you rebase and upload again, I would like the pipeline to trigger fresh.

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>
auto-merge was automatically disabled September 13, 2026 07:27

Head branch was pushed to by a user without write access

@selimrecep
selimrecep force-pushed the fix-1393-versioned-install-issue branch from fa1a001 to cb0b995 Compare September 13, 2026 07:27
@selimrecep

Copy link
Copy Markdown
Author

Sure, done 👍

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.

3 participants