Package Details: libcamera-git r3989.e0e54965-1

Git Clone URL: https://aur.archlinux.org/libcamera-git.git (read-only, click to copy)
Package Base: libcamera-git
Description: A complex camera support library for Linux, Android, and ChromeOS
Upstream URL: http://libcamera.org/
Licenses: LGPL2.1
Conflicts: libcamera
Provides: libcamera
Submitter: fordprefect
Maintainer: gmy
Last Packager: gmy
Votes: 13
Popularity: 0.53
First Submitted: 2018-12-06 09:51 (UTC)
Last Updated: 2022-10-11 08:56 (UTC)

Required by (46)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

luntik2012 commented on 2022-05-13 18:09 (UTC) (edited on 2022-05-13 18:39 (UTC) by luntik2012)

getting this on rpi 3 b+

Run-time dependency python3 found: YES 3.10

src/py/libcamera/meson.build:12:0: ERROR: Automatic wrap-based subproject downloading is disabled

A full log can be found at /home/user/.cache/yay/libcamera-git/src/libcamera/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...

works with @pobrn patch, but libcamera-apps are missing

pobrn commented on 2022-05-11 11:40 (UTC) (edited on 2022-05-17 20:26 (UTC) by pobrn)

The current head seems to work with gtest available in the community repository. Furthermore, the Python bindings need to be disabled because it uses features of pybind11 that are not yet released. PKGBUILD diff:

diff --git a/PKGBUILD b/PKGBUILD
index c377d1c..d14a348 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,7 @@

 pkgname=libcamera-git
 _pkgname=libcamera
-pkgver=r3331.f8d2f17a
-_gtestver=1.11.0
+pkgver=r3548.9f00e78b
 pkgrel=1
 pkgdesc='A complex camera support library for Linux, Android, and ChromeOS'
 arch=('x86_64' 'i686' 'aarch64' )
@@ -34,21 +33,16 @@ optdepends=(
     "qt5-tools"
     "udev"
 )
+checkdepends=(
+    "gtest"
+)
 license=('LGPL2.1')
 options=('!buildflags')
 source=(
   'git://linuxtv.org/libcamera.git/'
-  "gtest-${_gtestver}.zip::https://github.com/google/googletest/archive/release-${_gtestver}.zip"
-  "gtest_${_gtestver}-1_patch.zip::https://wrapdb.mesonbuild.com/v2/gtest_${_gtestver}-1/get_patch"
-  )
-noextract=(
-  "gtest-${_gtestver}.zip"
-  "gtest_${_gtestver}-1_patch.zip"
-  )
+)
 sha256sums=(
   'SKIP'
-  '353571c2440176ded91c2de6d6cd88ddd41401d14692ec1f99e35d013feda55a'
-  'd38c39184384608b08419be52aed1d0f9d9d1b5ed71c0c35e51cccbdddab7084'
 )
 provides=("$_pkgname")
 conflicts=("$_pkgname")
@@ -58,13 +52,6 @@ pkgver() {
     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

-prepare() {
-    cd "$srcdir/$_pkgname"
-    sed -i 's/^\(source_url\|patch_url\).*/#&/g' ./subprojects/gtest.wrap
-    mkdir -p subprojects/packagefiles
-    ln -sf "${srcdir}/gtest_${_gtestver}-1_patch.zip" "${srcdir}/gtest-${_gtestver}.zip" subprojects/packagefiles/ 
-}
-
 build() {
     cd "$srcdir/$_pkgname"

@@ -72,7 +59,10 @@ build() {
         -D          b_lto=false \
         -D          werror=false \
         -D          documentation=disabled \
-        -D          tracing=disabled
+        -D          tracing=disabled \
+        -D          lc-compliance=auto \
+        -D          qcam=auto \
+        -D          pycamera=disabled # needs pybind11 smart holders that is not yet released

     meson compile -C build
 }

And Qt should be made a mandatory dependency or qcam=auto needs to be set since arch-meson sets auto_features=enabled.

tallero commented on 2022-03-05 01:27 (UTC)

After adding gtest to makedepends and removing the check function the PKGBUILD package builds. I suggest to disable tests altogether until the meson issue linked by @nyanpasu64 will be closed.

graysky commented on 2022-02-20 16:20 (UTC)

Please try building this in a clean chroot. Many of your optdeps are actually make deps so the build fails.

lunainvictum commented on 2022-01-18 23:49 (UTC)

Tried to build pipewire-git.

This isnt possible, because it is impossible to build libcamera-git.

To build libcamera-git WITHOUT a Webcam is impossible too.

Any workarounds (like manually to edit the PKGBUILD) isnt acceptable.

The PKGBUILD should be delivered with a check if a Webcam is available, or removed completly anyway.

souravdas142 commented on 2021-12-07 06:04 (UTC) (edited on 2021-12-07 06:15 (UTC) by souravdas142)

@nyanpasu64 This is why I recommend the previous patch i gave.

I am also maintaing libcamera for debian/ubuntu based distros on launchpad.
On launchpad is such a close env, even internet connection is not there to build libcamera with gtest as subproject.
In that close env the test is even more natural to fail and its harmless you know, what devs said ? So what I did there to skip the test ?? Like my previous patch

diff --git a/PKGBUILD b/PKGBUILD
index c377d1c..41a3a20 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -79,7 +79,7 @@ build() {

 check() {
     cd "$srcdir/$_pkgname"
-    ninja -C build test
+    ninja -C build test || true
 }

 package() {

I did the same on debian/rules file

override_dh_auto_test:
    LC_ALL=C.UTF-8 MESON_TESTTHREADS=${AVAILABLE_CORE}  meson test -C obj-${DEB_HOST_MULTIARCH} \
           || echo  "\n\n[*] Warning: Test is Failed harmlessly & shouldn't be worried about that \n\n"  \
    $(empty)

and the result is Launchpad libcamera build.log . Please search with "harmless" keyword to find the message easily.
There is total 4 failed test. and totally need not to worry for the same reason.

So can we do that it here ? @gmy
I did this because of the test is always successfull on local machine.
Thats mean there is no bug for building. right ? And even test is failed, it will be due to the unavailable of resource (a webcam) at that time.
Also people Can see them at where the test is failed and it will be a successfully build

nyanpasu64 commented on 2021-12-07 05:20 (UTC)

In any case, I find it unacceptable that it's not possible to install pipewire-git (which depends on libcamera-git) using an AUR helper, without a webcam plugged in, unless I know to run makepkg --nocheck by hand (or set it in makepkg.conf) rather than having the AUR helper run it. Ideally I'd replace ninja -C build test with meson test --no-rebuild --print-errorlogs --skip single_stream_test, but meson test has no --skip option (https://github.com/mesonbuild/meson/issues/6999) and theoretically you could list all tests to run (which is brittle). And upstream (so far) wasn't interested in excluding single_stream_test when no kernel modules are loaded, but I didn't bring up https://wiki.archlinux.org/title/Creating_packages#check(). What's the best solution?

gmy commented on 2021-12-07 02:22 (UTC)

@nyanpasu64, thank you for the efforts of discussing it with the developers. Nevertheless, some tests (even the basic ones) will still run:

It is highly recommended to have check() as it helps to make sure software has been built correctly and works fine with its dependencies.

Users who do not need it (and occasionally maintainers who can not fix a package for this to pass) can disable it using BUILDENV+=('!check') in PKGBUILD/makepkg.conf or call makepkg with --nocheck flag. 

https://wiki.archlinux.org/title/Creating_packages#check()