Build fails with png loader disabled
The build allows the png loader to be disabled using -Dpng=false
, but this always leads to a build failure as follows:
[66/132] Generating resources.c with a custom command.
failed to load "/usr/src/gdk-pixbuf-2.38.1/tests/icc-profile.png": Couldn?t recognize the image file format for file ?/usr/src/gdk-pixbuf-2.38.1/tests/icc-profile.png?
../tests/resources.gresource.xml: Child process exited with code 1.
[67/132] Generating resources.h with a custom command.
failed to load "/usr/src/gdk-pixbuf-2.38.1/tests/icc-profile.png": Couldn?t recognize the image file format for file ?/usr/src/gdk-pixbuf-2.38.1/tests/icc-profile.png?
../tests/resources.gresource.xml: Child process exited with code 1.
[68/132] Compiling C object 'tests/59830eb@@cve-2015-4491@exe/meson-generated_.._resources.c.o'.
FAILED: tests/59830eb@@cve-2015-4491@exe/meson-generated_.._resources.c.o
cc -Itests/59830eb@@cve-2015-4491@exe -Itests -I../tests -I. -I../ -Igdk-pixbuf -I../gdk-pixbuf -I/usr/lib/libffi-3.2.1/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c99 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_XOPEN_SOURCE -DHAVE_CONFIG_H=1 -march=core2 -fPIC -DPIC -O3 -pthread -Wpointer-arith -Wformat=2 -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wcast-align -Wmissing-noreturn -Wmissing-format-attribute -Wlogical-op -fno-strict-aliasing -Wno-int-conversion -Wno-uninitialized -Wno-discarded-qualifiers -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=empty-body -fvisibility=hidden -MD -MQ 'tests/59830eb@@cve-2015-4491@exe/meson-generated_.._resources.c.o' -MF 'tests/59830eb@@cve-2015-4491@exe/meson-generated_.._resources.c.o.d' -o 'tests/59830eb@@cve-2015-4491@exe/meson-generated_.._resources.c.o' -c tests/resources.c
cc: error: tests/resources.c: No such file or directory
cc: fatal error: no input files
compilation terminated.
It does not matter whether libpng is actually available or not, when the -Dpng=false
option is passed, the build fails with the above error.
Either the build should be fixed, or the png dependency should be made not optional.