diff options
| -rw-r--r-- | meta/recipes-devtools/python/python.inc | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/meta/recipes-devtools/python/python.inc b/meta/recipes-devtools/python/python.inc deleted file mode 100644 index 19a2f3e743..0000000000 --- a/meta/recipes-devtools/python/python.inc +++ /dev/null | |||
| @@ -1,59 +0,0 @@ | |||
| 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 | |||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e466242989bd33c1bd2b6a526a742498" | ||
| 9 | |||
| 10 | SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SRC_URI[md5sum] = "b3b6d2c92f42a60667814358ab9f0cfd" | ||
| 14 | SRC_URI[sha256sum] = "4d43f033cdbd0aa7b7023c81b0e986fd11e653b5248dac9144d508f11812ba41" | ||
| 15 | |||
| 16 | # python recipe is actually python 2.x | ||
| 17 | # also, exclude pre-releases for both python 2.x and 3.x | ||
| 18 | UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>2(\.\d+)+).tar" | ||
| 19 | |||
| 20 | CVE_PRODUCT = "python" | ||
| 21 | |||
| 22 | # Upstream agreement is that these are not security issues: | ||
| 23 | # https://bugs.python.org/issue32367 | ||
| 24 | CVE_CHECK_WHITELIST += "CVE-2017-17522" | ||
| 25 | # https://bugs.python.org/issue32056 | ||
| 26 | CVE_CHECK_WHITELIST += "CVE-2017-18207" | ||
| 27 | |||
| 28 | # Windows-only, "It was determined that this is a longtime behavior | ||
| 29 | # of Python that cannot really be altered at this point." | ||
| 30 | CVE_CHECK_WHITELIST += "CVE-2015-5652" | ||
| 31 | |||
| 32 | # This is not exploitable when glibc has CVE-2016-10739 fixed. | ||
| 33 | CVE_CHECK_WHITELIST += "CVE-2019-18348" | ||
| 34 | |||
| 35 | PYTHON_MAJMIN = "2.7" | ||
| 36 | |||
| 37 | inherit autotools pkgconfig | ||
| 38 | |||
| 39 | EXTRA_OECONF = "\ | ||
| 40 | --with-threads \ | ||
| 41 | --with-pymalloc \ | ||
| 42 | --without-cxx-main \ | ||
| 43 | --with-signal-module \ | ||
| 44 | --enable-shared \ | ||
| 45 | --enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \ | ||
| 46 | ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \ | ||
| 47 | " | ||
| 48 | |||
| 49 | do_configure_prepend() { | ||
| 50 | libdirleaf="$(echo ${libdir} | sed -e 's:${prefix}/::')" | ||
| 51 | sed -i -e "s:SEDMELIBLEAF:${libdirleaf}:g" \ | ||
| 52 | ${S}/configure.ac | ||
| 53 | } | ||
| 54 | |||
| 55 | do_install_append () { | ||
| 56 | sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \ | ||
| 57 | -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \ | ||
| 58 | ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py | ||
| 59 | } | ||
