diff mbox series

[meta-oe] gpicview: add dependency on libx11 and require x11

Message ID 20250708160257.3879135-1-martin.jansa@gmail.com
State New
Headers show
Series [meta-oe] gpicview: add dependency on libx11 and require x11 | expand

Commit Message

Martin Jansa July 8, 2025, 4:02 p.m. UTC
From: Martin Jansa <martin.jansa@gmail.com>

* x11 doesn't seem to be optional:
  https://github.com/lxde/gpicview/blob/master/configure.ac#L57

| checking pkg-config is at least version 0.9.0... yes
| checking for gtk+-3.0 >= 3.0.0... yes
| checking for x11... no
| configure: error: Package requirements (x11) were not met:
|
| No package 'x11' found

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
---
 meta-oe/recipes-graphics/gpicview/gpicview_0.3.1.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/gpicview/gpicview_0.3.1.bb b/meta-oe/recipes-graphics/gpicview/gpicview_0.3.1.bb
index ace909fcf1..b4f100ffc4 100644
--- a/meta-oe/recipes-graphics/gpicview/gpicview_0.3.1.bb
+++ b/meta-oe/recipes-graphics/gpicview/gpicview_0.3.1.bb
@@ -8,12 +8,14 @@  SECTION = "x11"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 
-DEPENDS = "glib-2.0-native intltool-native jpeg"
+DEPENDS = "glib-2.0-native intltool-native jpeg libx11"
 
 SRC_URI = "git://github.com/lxde/gpicview.git;protocol=https;branch=master;tag=${PV}"
 SRCREV = "ca13623c6176585db4759ce4371fbf89c56fa630"
 
-inherit autotools mime-xdg pkgconfig
+inherit autotools mime-xdg pkgconfig features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk3', '', d)}"
 PACKAGECONFIG[gtk2] = ",,gtk+"