0.30.18 compilation fails: #include <camera/GPhoto.h>
Mandatory: Shotwell version the issue was seen with
0.30.18
The expected behaviour
build completes without error
What was actually happening
build fails
Steps to reproduce the issue
$ meson setup -D buildtype=release --prefix=/usr/local builddir -D unity-support=false -D install-apport-hook=false -D face-detection=true
[...]
$ ninja -v -C builddir
[...]
[337/393] ccache cc -Isrc/shotwell.p -Isrc -I../src -I../vapi -Isrc/plugins -I../src/plugins -I. -I.. -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/local/include/gee-0.8 -I/usr/local/include/gtk-3.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib64/dbus-1.0/include -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/fribidi -I/usr/local/include/atk-1.0 -I/usr/local/include/pixman-1 -I/usr/local/include/libxml2 -I/usr/local/include/libpng16 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -I/usr/local/include/gphoto2 -I/usr/include/libexif -I/usr/local/include/gstreamer-1.0 -I/usr/local/include/orc-0.4 -I/usr/include/gudev-1.0 -I/usr/include/libraw -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -O3 -DHAVE_CONFIG_H=1 -include config.h -pthread -MD -MQ src/shotwell.p/meson-generated_camera_GPhoto.c.o -MF src/shotwell.p/meson-generated_camera_GPhoto.c.o.d -o src/shotwell.p/meson-generated_camera_GPhoto.c.o -c src/shotwell.p/camera/GPhoto.c
FAILED: src/shotwell.p/meson-generated_camera_GPhoto.c.o
ccache cc -Isrc/shotwell.p -Isrc -I../src -I../vapi -Isrc/plugins -I../src/plugins -I. -I.. -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/local/include/gee-0.8 -I/usr/local/include/gtk-3.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib64/dbus-1.0/include -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/fribidi -I/usr/local/include/atk-1.0 -I/usr/local/include/pixman-1 -I/usr/local/include/libxml2 -I/usr/local/include/libpng16 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -I/usr/local/include/gphoto2 -I/usr/include/libexif -I/usr/local/include/gstreamer-1.0 -I/usr/local/include/orc-0.4 -I/usr/include/gudev-1.0 -I/usr/include/libraw -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -O3 -DHAVE_CONFIG_H=1 -include config.h -pthread -MD -MQ src/shotwell.p/meson-generated_camera_GPhoto.c.o -MF src/shotwell.p/meson-generated_camera_GPhoto.c.o.d -o src/shotwell.p/meson-generated_camera_GPhoto.c.o -c src/shotwell.p/camera/GPhoto.c
src/shotwell.p/camera/GPhoto.c:18:10: fatal error: camera/GPhoto.h: No such file or directory
18 | #include <camera/GPhoto.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
A file called GPhoto.h
is nowhere to be found on my system. Simply deleting the offending line in src/shotwell.p/camera/GPhoto.c
and restarting the build lets it complete just fine as usual. I have no idea where this obviously completely unnecessary dependency on GPhoto.h
comes from.
Additional info, just in case any of it matters:
$ meson --version
1.0.1
$ ninja --version
1.11.1
$ pkg-config --modversion vapigen
0.56.5
$ pkg-config --modversion libgphoto2
2.5.30
PS: Out of curiosity, I tried building 0.30.17
again which worked fine when it was released back in September 2022. This now also fails with the exact same error. meson-0.63.2
, vala-0.54.9
. Both ninja
and libgphoto2
were at the same version as now already. If you need any more information just let me know.