Skip to contentSkip to conversation

libpcre: Make readline dependency conditional on PACKAGECONFIG[pcretest-readline]

PATCH New Phil Blundell 1 participant 1 message Apr 25, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libpcre: Make readline dependency conditional on PACKAGECONFIG[pcretest-readline]

The only place in pcre that requires readline is pcretest, and even there it's optional. This allows the dependency to be removed unless specifically requested.

---
 meta/recipes-support/libpcre/libpcre_8.32.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-support/libpcre/libpcre_8.32.bb +3 -1
index 4d17741..a2a8d80 100644
@@ -20,7 +20,9 @@ S = "${WORKDIR}/pcre-${PV}"
 FILESPATH .= ":${@base_set_filespath([bb.which(BBPATH, 'recipes-support/libpcre/files', direction=True)], d)}"
 
 PROVIDES += "pcre"
-DEPENDS += "bzip2 zlib readline"
+DEPENDS += "bzip2 zlib"
+
+PACKAGECONFIG[pcretest-readline] = "--enable-pcretest-libreadline,--disable-pcretest-libreadline,readline,"
 
 inherit autotools binconfig
 
Signature · 1 line
1.7.10.4