package/sane-backends: poppler-glib needs cairo
authorPeter Seiderer <ps.report@gmx.net>
Mon, 12 Apr 2021 19:32:28 +0000 (21:32 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 1 May 2021 12:46:15 +0000 (14:46 +0200)
- poppler-glib depends on cairo (see poppler-0.84.0/CMakeLists.txt):

  185 else()
  186   set(CAIRO_FEATURE "#undef POPPLER_HAS_CAIRO")
  187   set(ENABLE_GLIB OFF)
  188 endif()

Fixes:

  - http://autobuild.buildroot.net/results/9a345f82c7a010f6b2a3361f25b14caefa9dcbef

  checking for POPPLER_GLIB... no
  configure: error: poppler-glib requested but not found

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/sane-backends/sane-backends.mk

index 697aa3252bb05d94b939e77366df64f4990b83d5..a8f7466f706ae9a642508cb4821ad3047b97908b 100644 (file)
@@ -61,7 +61,7 @@ else
 SANE_BACKENDS_CONF_OPTS += --without-libcurl
 endif
 
-ifeq ($(BR2_PACKAGE_POPPLER)$(BR2_PACKAGE_LIBGLIB2),yy)
+ifeq ($(BR2_PACKAGE_POPPLER)$(BR2_PACKAGE_CAIRO)$(BR2_PACKAGE_LIBGLIB2),yyy)
 SANE_BACKENDS_DEPENDENCIES += poppler libglib2
 SANE_BACKENDS_CONF_OPTS += --with-poppler-glib
 else