python: Add nativesdk wrapper to handle terminfo
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jun 2013 14:57:49 +0000 (15:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Jun 2013 16:33:14 +0000 (17:33 +0100)
commit0607869441b9c0066782d0f29779719b163626ab
tree0e33bf55797b3d5c961cbf05f17671110bb476aa
parent3c0c9ee8fbcaa8b66e97aec9876a3f17919d5ad3
python: Add nativesdk wrapper to handle terminfo

Currently if you build nativesdk-python, install it and try and run it,
you see it search in the default nativesdk path for terminfo files
when the readline module is used.

If terminfo files cannot be found, or if the ones found are incorrect,
the system may emit control characters which confuse commandline
processing.

This patch sets the TERMINFO_DIRS variable to ensure the correct locations
are searched for terminfo files, starting with the nativesdk terminfo files
and falling back to the host systtem's.

(From OE-Core rev: 682861166f39fbdcd0c9b923139faab2d40362cf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python_2.7.3.bb