From patchwork Thu Feb 2 14:03:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [meta-oe] giflib: don't depend on libsm if x11 is unavailable Date: Thu, 02 Feb 2012 14:03:35 -0000 From: Andreas Oberritter X-Patchwork-Id: 20561 Message-Id: <4F2A97B7.2080709@opendreambox.org> To: openembedded-devel@lists.openembedded.org If DISTRO_FEATURES doesn't contain x11, libsm is not available. As libsm is optional, the dependency is changed to be conditional. There's no need to alter configure flags, because without x11, libsm cannot be picked up accidentially. Because this just fixes a missing dependency failure without x11, no PR bump is required either. Signed-off-by: Andreas Oberritter --- meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb b/meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb index bd7b495..4e782e2 100644 --- a/meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb +++ b/meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb @@ -8,7 +8,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/giflib/${BP}.tar.bz2" inherit autotools -DEPENDS = "libsm" +DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'libsm', '', d)}" PACKAGES += "${PN}-utils" FILES_${PN} = "${libdir}/libgif.so.*"