Package: libcamera-dev
Version: 0~git20200417+35269f0-2
Severity: important

$ dpkg -L libcamera-dev:amd64 | grep 'camera\.h$'
/usr/include/libcamera/libcamera/camera.h
/usr/include/libcamera/libcamera/libcamera.h
$ pkg-config --cflags --libs camera
-lcamera

As a result, compiling Pipewire git master with the new libcamera plugin
enabled fails with:

../spa/plugins/libcamera/libcamera_wrapper.cpp:46:10: fatal error: 
libcamera/camera.h: No such file or directory
   46 | #include <libcamera/camera.h>
      |          ^~~~~~~~~~~~~~~~~~~~

I would expect that either libcamera headers should be installed in
/usr/include/libcamera/*.h, or `pkg-config --cflags camera` should print
"-I/usr/include/libcamera".

A simple compile/link/execute autopkgtest is an excellent way to detect
this class of problem before it affects dependent packages. The one I
contributed to libsndfile-dev in 1.0.28-8 is a recent example. If there
isn't a minimal standalone test in the libcamera source package, just
writing a main() that instantiates some simple object like PixelFormat
should work.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-debug'), (500, 
'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-2-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libcamera-dev depends on:
ii  libcamera0        0~git20200417+35269f0-2
ii  libjs-jquery      3.5.1+dfsg-4
ii  libjs-underscore  1.9.1~dfsg-1

libcamera-dev recommends no packages.

libcamera-dev suggests no packages.

-- no debconf information

Reply via email to