Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "The Python Programming Language" |
| 2 | HOMEPAGE = "http://www.python.org" |
| 3 | LICENSE = "PSFv2" |
| 4 | SECTION = "devel/python" |
| 5 | # bump this on every change in contrib/python/generate-manifest-2.7.py |
| 6 | INC_PR = "r1" |
| 7 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e466242989bd33c1bd2b6a526a742498" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 10 | SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 11 | file://bpo-35907-cve-2019-9948.patch \ |
| 12 | file://bpo-35907-cve-2019-9948-fix.patch \ |
| 13 | file://bpo-36216-cve-2019-9636.patch \ |
| 14 | file://bpo-36216-cve-2019-9636-fix.patch \ |
| 15 | file://CVE-2019-9740.patch \ |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 16 | file://CVE-2018-20852.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 17 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 19 | SRC_URI[md5sum] = "30157d85a2c0479c09ea2cbe61f2aaf5" |
| 20 | SRC_URI[sha256sum] = "f222ef602647eecb6853681156d32de4450a2c39f4de93bd5b20235f2e660ed7" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 21 | |
| 22 | # python recipe is actually python 2.x |
| 23 | # also, exclude pre-releases for both python 2.x and 3.x |
| 24 | UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>2(\.\d+)+).tar" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 26 | CVE_PRODUCT = "python" |
| 27 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | PYTHON_MAJMIN = "2.7" |
| 29 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 30 | inherit autotools pkgconfig |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | EXTRA_OECONF = "\ |
| 33 | --with-threads \ |
| 34 | --with-pymalloc \ |
| 35 | --without-cxx-main \ |
| 36 | --with-signal-module \ |
| 37 | --enable-shared \ |
| 38 | --enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \ |
| 39 | ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \ |
| 40 | ${PYTHONLSBOPTS} \ |
| 41 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 42 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 43 | do_configure_prepend() { |
| 44 | libdirleaf="$(echo ${libdir} | sed -e 's:${prefix}/::')" |
| 45 | sed -i -e "s:SEDMELIBLEAF:${libdirleaf}:g" \ |
| 46 | ${S}/configure.ac |
| 47 | } |
| 48 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 49 | do_install_append () { |
| 50 | sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \ |
| 51 | -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \ |
| 52 | ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py |
| 53 | } |