Skip to contentSkip to conversation

libpcre2: add packages for 16-bit and 32-bit code unit support

PATCH New Stefan Müller-Klieser 1 participant 1 message Jan 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libpcre2: add packages for 16-bit and 32-bit code unit support

The packages loosely follow the debian package names. In that way more projects, e.g. Qt5 for 16-bit, are able use system libraries. This does not change the existing default package.

---
 meta/recipes-support/libpcre/libpcre2_10.30.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta/recipes-support/libpcre/libpcre2_10.30.bb +5 -2
index a7df055..46c2d63 100644
@@ -33,8 +33,9 @@ EXTRA_OECONF = "\
     --enable-rebuild-chartables \
     --with-link-size=2 \
     --with-match-limit=10000000 \
+    --enable-pcre2-16 \
+    --enable-pcre2-32 \
 "
-
 # Set LINK_SIZE in BUILD_CFLAGS given that the autotools bbclass use it to
 # set CFLAGS_FOR_BUILD, required for the libpcre build.
 BUILD_CFLAGS =+ "-DLINK_SIZE=2 -I${B}/src"
@@ -43,13 +44,15 @@ CXXFLAGS_append_powerpc = " -lstdc++"
 
 export CCLD_FOR_BUILD ="${BUILD_CCLD}"
 
-PACKAGES =+ "pcre2grep pcre2grep-doc pcre2test pcre2test-doc"
+PACKAGES =+ "libpcre2-16 libpcre2-32 pcre2grep pcre2grep-doc pcre2test pcre2test-doc"
 
 SUMMARY_pcre2grep = "grep utility that uses perl 5 compatible regexes"
 SUMMARY_pcre2grep-doc = "grep utility that uses perl 5 compatible regexes - docs"
 SUMMARY_pcre2test = "program for testing Perl-comatible regular expressions"
 SUMMARY_pcre2test-doc = "program for testing Perl-comatible regular expressions - docs"
 
+FILES_libpcre2-16 = "${libdir}/libpcre2-16.so.*"
+FILES_libpcre2-32 = "${libdir}/libpcre2-32.so.*"
 FILES_pcre2grep = "${bindir}/pcre2grep"
 FILES_pcre2grep-doc = "${mandir}/man1/pcre2grep.1"
 FILES_pcre2test = "${bindir}/pcre2test"
Signature · 1 line
2.7.4