CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
python: updated release
[ports/opt-arm.git] / python / Pkgfile
index 4575ac7a70b83d4c954dd5044db173432cc21043..00013b34e452d03828b889658a0569cec7d4abd4 100644 (file)
@@ -6,8 +6,9 @@
 
 name=python
 version=2.7.14
-release=1
+release=2
 source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
+        CVE-2018-1000030.patch
         pyconfig.h)
 
 build () {
@@ -16,6 +17,11 @@ build () {
   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" \