blob: 6636814478fcdbdb4743ec0375ef3478bc6a5938 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Make python3 the default
# Remove this stuff if there is ever a python4.
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " \
file://CVE-2022-45061.patch \
file://CVE-2022-37454.patch \
"
# Debian and Ubuntu have this (prior levels linked to python2)
PACKAGES_append = " python-is-python3"
ALLOW_EMPTY_python-is-python3 = "1"
pkg_postinst_python-is-python3_append() {
ln -sf python3 $D/usr/bin/python
}
pkg_prerm_python-is-python3_append() {
if [ -L "$D/usr/bin/python" ] ; then
if [ "$(basename $(readlink $D/usr/bin/python))" == "python3" ] ; then
rm $D/usr/bin/python
fi
fi
}
|