From c3d539b53ff0533e91ae849dbdcdd589b0fec0cc Mon Sep 17 00:00:00 2001 From: Thomas De Schampheleire Date: Fri, 7 Feb 2014 11:16:05 +0100 Subject: host python/python3: conditionally disable unicodedata The host python always had --disable-unicodedata, regardless of the corresponding configuration option BR2_PACKAGE_PYTHON_UNICODEDATA. Since the host python is used to byte-compile python modules, this meant that such modules could not contain unicode strings. For example, following statement in a python module: print u"\N{SOLIDUS}" would cause the byte-compilation to fail with message: SyntaxError: ("(unicode error) \\N escapes not supported (can't load unicodedata module)", Instead, conditionally disable unicodedata based on BR2_PACKAGE_PYTHON_UNICODEDATA, also for the host python. This fixes bug #6542 (https://bugs.busybox.net/show_bug.cgi?id=6542) Reported-by: Gernot Vormayr Signed-off-by: Thomas De Schampheleire Signed-off-by: Peter Korsgaard --- package/python3/python3.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/python3') diff --git a/package/python3/python3.mk b/package/python3/python3.mk index b5e9689324..b032d15f45 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -23,7 +23,6 @@ HOST_PYTHON3_CONF_OPT += \ --disable-curses \ --disable-codecs-cjk \ --disable-nis \ - --disable-unicodedata \ --disable-test-modules \ --disable-idle3 @@ -88,6 +87,7 @@ endif ifneq ($(BR2_PACKAGE_PYTHON3_UNICODEDATA),y) PYTHON3_CONF_OPT += --disable-unicodedata +HOST_PYTHON3_CONF_OPT += --disable-unicodedata endif ifeq ($(BR2_PACKAGE_PYTHON3_BZIP2),y) -- cgit v1.2.1