CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
ports
/
opt-arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: updated release
[ports/opt-arm.git]
/
python
/
Pkgfile
diff --git
a/python/Pkgfile
b/python/Pkgfile
index 747edf333144f2edc99a54d29837074d13e80e7b..00013b34e452d03828b889658a0569cec7d4abd4 100644
(file)
--- a/
python/Pkgfile
+++ b/
python/Pkgfile
@@
-5,28
+5,36
@@
# Depends on: db gdbm openssl bzip2 zlib sqlite3
name=python
# Depends on: db gdbm openssl bzip2 zlib sqlite3
name=python
-version=2.7.
5
-release=
1
+version=2.7.
14
+release=
2
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
+ CVE-2018-1000030.patch
pyconfig.h)
build () {
cd Python-$version
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" \
./configure --prefix=/usr \
# set OPT to the python default without -O3
# our CFLAGS are used as well
OPT="-Wall -Wstrict-prototypes -fwrapv" \
./configure --prefix=/usr \
- --mandir=/usr/man \
--enable-shared \
--with-threads \
--enable-shared \
--with-threads \
- --enable-ipv6
+ --enable-ipv6
make
make -j1 DESTDIR=$PKG install
# fix issue with man-page symlink
make
make -j1 DESTDIR=$PKG install
# fix issue with man-page symlink
- ln -sf python2.7.1 $PKG/usr/man/man1/python.1
+ ln -sf python2.7.1 $PKG/usr/
share/
man/man1/python.1
ln -sf python2.7 $PKG/usr/bin/python
ln -s python2.7 $PKG/usr/lib/python
ln -sf python2.7 $PKG/usr/bin/python
ln -s python2.7 $PKG/usr/lib/python
@@
-40,5
+48,5
@@
build () {
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
mv $PKG/usr/include/python2.7/pyconfig{,-32}.h
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
mv $PKG/usr/include/python2.7/pyconfig{,-32}.h
-
cp
$SRC/pyconfig.h $PKG/usr/include/python2.7/
+
install -m 0644
$SRC/pyconfig.h $PKG/usr/include/python2.7/
}
}