You are not logged in.

#1 2023-05-06 23:33:39

jasnn
Member
Registered: 2019-09-06
Posts: 2

Switching libcamera to libcamera-git is blocked by dependencies

I've Arch installed on my Surface Pro 9, and I'm trying to get the camera working. I want to switch from the installed libcamera 0.0.5-1 to the AUR git version, libcamera-git r3989.e0e54965-1.

But when I try to upgrade to the git version, the error message states that it's blocked because of the pipewire dependency. Is the proper way of doing this to upgrade pipewire to the AUR git version first, and then upgrade libcamera?

TIA..

Instructing yay to remove the libcamera dependency yields the following error ouput, (thanks for the reminder);

==> Finished making: libcamera-git r4284.1c512d40-1 (Sat 06 May 2023 07:45:46 PM EDT)
==> Cleaning up...
loading packages...
resolving dependencies...
looking for conflicting packages...
:: libcamera-git and libcamera are in conflict. Remove libcamera? [y/N] Y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing libcamera breaks dependency 'libcamera.so=0.0.5-64' required by gst-plugin-libcamera
:: removing libcamera breaks dependency 'libcamera-base.so=0.0.5-64' required by gst-plugin-libcamera
:: removing libcamera breaks dependency 'libcamera.so=0.0.5-64' required by libcamera-ipa
:: removing libcamera breaks dependency 'libcamera-base.so=0.0.5-64' required by libcamera-ipa
:: removing libcamera breaks dependency 'libcamera.so=0.0.5-64' required by libcamera-tools
:: removing libcamera breaks dependency 'libcamera-base.so=0.0.5-64' required by libcamera-tools
:: removing libcamera breaks dependency 'libcamera-base.so=0.0.5-64' required by pipewire
:: removing libcamera breaks dependency 'libcamera.so=0.0.5-64' required by pipewire
 -> error installing: [/home/jason/.cache/yay/libcamera-git/libcamera-git-r4284.1c512d40-1-x86_64.pkg.tar.zst] - exit status 1

Last edited by jasnn (2023-05-06 23:49:39)

Offline

#2 2023-05-06 23:39:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,162

Re: Switching libcamera to libcamera-git is blocked by dependencies

Exact errors, always.

Edit: So the problem is that the -git package doesn't 'provide' the library names/versions, which is what various packages depend on, not just pipewire. There's a comment on the AUR page requesting it over 5 months ago, but the maintainer hasn't done it. You'd have to do it yourself (see the comment), then *IF* the -git version has the same library versions, it should go through. Being that you're installing unreleased, in-development code, it may or may not actually function, though.

Last edited by Scimmia (2023-05-07 01:07:52)

Offline

#3 2023-05-07 01:17:07

jasnn
Member
Registered: 2019-09-06
Posts: 2

Re: Switching libcamera to libcamera-git is blocked by dependencies

Thank you (for the second time).

I appreciate you looking into this and for providing the explanation. As a Gentoo convert, I'll see if I can navigate the instructions on editing the build file. Otherwise, I can wait for either the git package to be updated or the normal version to be updated. (I'm not even sure if the support for this camera is in the latest git version. I just wanted to try it and see.)

Offline

#4 2023-05-07 01:23:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,162

Re: Switching libcamera to libcamera-git is blocked by dependencies

If you're familiar with ebuilds, PKGBUILDs will be pretty straight forward. Where ebuilds use a similar syntax to bash, PKGBUILDs *are* bash. You just have to add a couple of things to a bash array, simple.

Offline

#5 2024-01-07 18:39:34

leochras
Member
Registered: 2022-11-09
Posts: 1

Re: Switching libcamera to libcamera-git is blocked by dependencies

Hey, I am currently in the exact same situation, trying to get SP9 camera support working and wanted to install libcamera-git and replace libcamera, but failed because of the dependency. Doesn't seem like the aur package was updated, right? By the way, did you have any success getting the camera to work yet?

Last edited by leochras (2024-01-07 18:40:06)

Offline

Board footer

Powered by FluxBB