X-Git-Url: http://gitweb/?a=blobdiff_plain;f=python%2FPkgfile;h=00013b34e452d03828b889658a0569cec7d4abd4;hb=173983124044954d2edb63801b6560ba849d54ad;hp=2d83988fca828cdf74716e196c3e319f9304a538;hpb=53d59746468cfcc70f5d917b647053fac9ab1fb5;p=ports%2Fopt-arm.git diff --git a/python/Pkgfile b/python/Pkgfile index 2d83988..00013b3 100644 --- a/python/Pkgfile +++ b/python/Pkgfile @@ -5,14 +5,23 @@ # Depends on: db gdbm openssl bzip2 zlib sqlite3 name=python -version=2.7.11 -release=1 +version=2.7.14 +release=2 source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \ + CVE-2018-1000030.patch pyconfig.h) build () { cd Python-$version + export CFLAGS="-O2 -pipe -mfloat-abi=hard" + export CXXFLAGS="$CFLAGS" + + # fix for CVE-2018-1000030 + # see https://bugs.python.org/issue31530 + patch -p1 -i $SRC/CVE-2018-1000030.patch + + # set OPT to the python default without -O3 # our CFLAGS are used as well OPT="-Wall -Wstrict-prototypes -fwrapv" \