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 | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f741e51de91d4eeea5930b9c3c7fa69d" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
Brad Bishop | 220d553 | 2018-08-14 00:59:39 +0100 | [diff] [blame] | 10 | SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ |
| 11 | file://CVE-2018-1000030-1.patch \ |
| 12 | file://CVE-2018-1000030-2.patch" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | SRC_URI[md5sum] = "1f6db41ad91d9eb0a6f0c769b8613c5b" |
| 15 | SRC_URI[sha256sum] = "71ffb26e09e78650e424929b2b457b9c912ac216576e6bd9e7d204ed03296a66" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 16 | |
| 17 | # python recipe is actually python 2.x |
| 18 | # also, exclude pre-releases for both python 2.x and 3.x |
| 19 | UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>2(\.\d+)+).tar" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | CVE_PRODUCT = "python" |
| 22 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | PYTHON_MAJMIN = "2.7" |
| 24 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | inherit autotools pkgconfig |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | EXTRA_OECONF = "\ |
| 28 | --with-threads \ |
| 29 | --with-pymalloc \ |
| 30 | --without-cxx-main \ |
| 31 | --with-signal-module \ |
| 32 | --enable-shared \ |
| 33 | --enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \ |
| 34 | ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \ |
| 35 | ${PYTHONLSBOPTS} \ |
| 36 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 37 | |
| 38 | do_install_append () { |
| 39 | sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \ |
| 40 | -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \ |
| 41 | ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py |
| 42 | } |