Commit Graph

7 Commits

Author SHA1 Message Date
Ross Burton
2942c7f2c1 python3: use system expat
Instead of statically linking to an integrated expat which may not be
updated to fix security issues, dynamically link to the system expat.

(From OE-Core rev: 4c63942a47f6d10eda6ed6718bfcfc89396b7d67)

(From OE-Core rev: 2621924191fa516c66eb42295ec4c68820c0ed17)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-09 07:50:14 +01:00
Ross Burton
ee2f28c91a python3: clean up PACKAGECONFIG
There's no need to define the PACKAGECONFIG for each class when they're
all identical (as native DISTRO_FEATURES are pruned before use).

Also add a disabled case to the LTO configuration to be explicit.

(From OE-Core rev: 00471d196768fcb4acaf1e2439fd90936d93fd98)

(From OE-Core rev: 52232f8a6afef20ff4ef70367ecce74043210a46)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-09 07:50:14 +01:00
Ross Burton
ce6add6f8a python3: use libedit instead of readline
libedit has feature parity with readline but is more permissively
licensed (BSD verses GPLv3), so switch to libedit by default.

(From OE-Core rev: ce9a795fe720eb96a9a16e65862f9721163a5986)

(From OE-Core rev: 685df78325435db2d67ceb1a96839e0adbb568d0)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-09 07:50:14 +01:00
Wentao Zhang
66f7944f9e python3: Fix failing sysconfig.py test on x86(64 bit) using lib64 as baselib by updating test_sysconfig for posix_user purelib
Steps to trigger the failed test:
Edit local.conf to add something as follows:
    BASELIB = "lib64"
    IMAGE_INSTALL:append = " python3-tests".
bitbake core-image-sato
runqemu qemux86-64 nographic slirp
Reproducer:
    $python3 -m test test_sysconfig

sysconfig.py use platlibdir for purelib. Update
test_sysconfig.test_user_similar() for the posix_user
scheme: "purelib" doesn't use sys.platlibdir.

(From OE-Core rev: 755321362e994a6a37a0f554b1aea56823de924e)

Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-04-03 11:39:59 +01:00
Ross Burton
7c171f9493 python3: add missing -modules dependencies
The python3-modules package should depend on zoneinfo, and gdbm if it
was enabled.

(From OE-Core rev: 0e0a5a635f44931dd490ae6a99548f05bd5205a8)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21 22:42:04 +00:00
Ross Burton
88b981c295 python3: missing ptest dependencies
The tests need a broad set of locales and timezones to be installed.

(From OE-Core rev: 372233d7ad22e45aa31db0d6c0e989393f116dfe)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21 22:42:04 +00:00
Alexander Kanavin
61be0742be python3: upgrade 3.11.1 -> 3.11.2
License-Update: copyright years

(From OE-Core rev: fc04712bb3fd0a7bbb8d7102a2ffe686e448d6bb)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-02-20 15:18:30 +00:00