Skip to contentSkip to conversation

libglib2: the system PCRE needs to have UTF and UCP enabled

PATCH Superseded Sven Neumann 2 participants 2 messages Nov 21, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 libglib2: the system PCRE needs to have UTF and UCP enabled

If glib2 is compiled with the system PCRE instead of the included copy, then that system PCRE needs to have support for UTF-8 and Unicode properties enabled. Otherwise you will get such warnings at run-time:

GLib-CRITICAL **: PCRE library is compiled without UTF8 support GLib-CRITICAL **: PCRE library is compiled without UTF8 properties support

---
 package/libglib2/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/libglib2/Config.in +1 -0
index 3590d72..80e059a 100644
@@ -3,6 +3,7 @@ config BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	select BR2_PACKAGE_LIBFFI
+        select BR2_PACKAGE_PCRE_UCP if BR2_PACKAGE_PCRE
 	select BR2_PACKAGE_ZLIB
 	depends on BR2_USE_WCHAR # gettext
 	depends on BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
1.8.4.2
#1 lore raw

PATCH 2/2 libglib2: the system PCRE needs to have UTF and UCP enabled

Dear Sven Neumann,

Quoted 19 lines · Sven Neumann

If glib2 is compiled with the system PCRE instead of the included copy, then that system PCRE needs to have support for UTF-8 and Unicode properties enabled. Otherwise you will get such warnings at run-time:

GLib-CRITICAL **: PCRE library is compiled without UTF8 support GLib-CRITICAL **: PCRE library is compiled without UTF8 properties support

---
 package/libglib2/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/libglib2/Config.in +0 -0
index 3590d72..80e059a 100644

package/libglib2/Config.in config BR2_PACKAGE_LIBGLIB2 · line 6

Quoted 4 lines
package/libglib2/Config.in +1 -0
@@ -3,6 +3,7 @@ config BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	select BR2_PACKAGE_LIBFFI
+        select BR2_PACKAGE_PCRE_UCP if BR2_PACKAGE_PCRE

It should be a tab instead of spaces for the indentation.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com