buildrootschalter/package/python
Thomas De Schampheleire c3d539b53f 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 <gvormayr@gmail.com>
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-02-18 23:09:05 +01:00
..
Config.in added python unicode selection to menu 2014-01-22 22:39:36 +01:00
python-2.7-001-support-for-build.patch
python-2.7-002-cross-compile-variable.patch
python-2.7-003-no-import-when-cross-compiling.patch
python-2.7-004-no-host-headers-libs.patch
python-2.7-005-staging-headers-libs.patch
python-2.7-006-disable-extensions.patch
python-2.7-007-do-not-generate-pyo-files.patch
python-2.7-008-reread-environment.patch
python-2.7-010-change-pyconfig-h-location.patch
python-2.7-011-no-rpath.patch
python-2.7-012-correct-32bit-64bit-check.patch
python-2.7-013-fix-linux-3-compilation.patch
python-2.7-014-verbose-module-build.patch
python-2.7-015-distutils-cross-compilation-support.patch
python-2.7-016-cross-compile-getaddrinfo.patch
python-2.7-100-optional-test-modules.patch
python-2.7-101-optional-pydoc.patch
python-2.7-102-optional-2to3.patch
python-2.7-103-optional-sqlite.patch
python-2.7-104-optional-tk.patch
python-2.7-105-optional-curses.patch
python-2.7-106-optional-expat.patch
python-2.7-107-optional-codecs-cjk.patch
python-2.7-108-optional-nis.patch
python-2.7-109-optional-unicodedata.patch
python-2.7-110-optional-db.patch
python-2.7-111-optional-ssl.patch
python-2.7-112-optional-bzip2.patch
python-2.7-113-optional-zlib.patch
python.mk host python/python3: conditionally disable unicodedata 2014-02-18 23:09:05 +01:00