[arch-commits] Commit in python/trunk (PKGBUILD)

2020-12-13 Thread Felix Yan via arch-commits
Date: Sunday, December 13, 2020 @ 12:57:10
  Author: felixonmars
Revision: 404276

upgpkg: python 3.9.1-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   10 +++---
 1 file changed, 3 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-12-13 11:55:26 UTC (rev 404275)
+++ PKGBUILD2020-12-13 12:57:10 UTC (rev 404276)
@@ -8,7 +8,7 @@
 
 pkgbase=python
 pkgname=(python python-tests)
-pkgver=3.9.0
+pkgver=3.9.1
 pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
@@ -18,7 +18,7 @@
 depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb' 'ttf-font')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
-sha512sums=('b141039c9701a8cb0d15cd11a279153077524af4d0599e7d2c7279d4c18d05fda06b33ef82342d875de996c7117b7dc6eb154dc3669d38a1efa99801aeec6c5e'
+sha512sums=('b90029d6825751685983e9dcf0e0ec9e46f18e6c7d37b0dd7a245a94316f8c0090308ad7c2b2b49ed2514b0b909177231dd5bcad03031bf4624e37136fcf8019'
 'SKIP')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 
   'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG 
langa.pl) 
@@ -71,10 +71,6 @@
 }
 
 check() {
-  # test_tk: https://bugs.python.org/issue41306
-  # test_lib2to3: https://bugs.python.org/issue41970
-  # test_tools: https://bugs.python.org/issue41971
-
   cd Python-${pkgver}
 
   # Obtain next free server number for xvfb-run; this even works in a chroot 
environment.
@@ -83,7 +79,7 @@
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" 
-a -n "$servernum" \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk 
-x test_lib2to3 -x test_tools
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall
 }
 
 package_python() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-11-16 Thread Felix Yan via arch-commits
Date: Monday, November 16, 2020 @ 20:40:36
  Author: felixonmars
Revision: 401284

specify tzpath explicitly (FS#68643)

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-16 17:34:07 UTC (rev 401283)
+++ PKGBUILD2020-11-16 20:40:36 UTC (rev 401284)
@@ -60,7 +60,8 @@
   --with-system-ffi \
   --with-system-libmpdec \
   --enable-loadable-sqlite-extensions \
-  --without-ensurepip
+  --without-ensurepip \
+  --with-tzpath=/usr/share/zoneinfo
 
   # Obtain next free server number for xvfb-run; this even works in a chroot 
environment.
   export servernum=99


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-11-09 Thread Felix Yan via arch-commits
Date: Monday, November 9, 2020 @ 09:27:52
  Author: felixonmars
Revision: 399653

upgpkg: python 3.9.0-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-09 08:08:55 UTC (rev 399652)
+++ PKGBUILD2020-11-09 09:27:52 UTC (rev 399653)
@@ -8,7 +8,7 @@
 
 pkgbase=python
 pkgname=(python python-tests)
-pkgver=3.8.6
+pkgver=3.9.0
 pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
@@ -18,7 +18,7 @@
 depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb' 'ttf-font')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
-sha512sums=('22faec84f6e172e1ac7c6bd6fd37e9b6ae4afc91cf5136aa8cac8ebbed8d18793f9196e8749b8ccc43447cb6c41cb450f65ea72dd363c06dfaeb14e0455f5560'
+sha512sums=('b141039c9701a8cb0d15cd11a279153077524af4d0599e7d2c7279d4c18d05fda06b33ef82342d875de996c7117b7dc6eb154dc3669d38a1efa99801aeec6c5e'
 'SKIP')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 
   'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG 
langa.pl) 
@@ -71,6 +71,8 @@
 
 check() {
   # test_tk: https://bugs.python.org/issue41306
+  # test_lib2to3: https://bugs.python.org/issue41970
+  # test_tools: https://bugs.python.org/issue41971
 
   cd Python-${pkgver}
 
@@ -80,7 +82,7 @@
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" 
-a -n "$servernum" \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk 
-x test_lib2to3 -x test_tools
 }
 
 package_python() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-09-30 Thread Felix Yan via arch-commits
Date: Wednesday, September 30, 2020 @ 20:44:37
  Author: felixonmars
Revision: 397009

upgpkg: python 3.8.6-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-09-30 19:34:48 UTC (rev 397008)
+++ PKGBUILD2020-09-30 20:44:37 UTC (rev 397009)
@@ -8,8 +8,8 @@
 
 pkgbase=python
 pkgname=(python python-tests)
-pkgver=3.8.5
-pkgrel=2
+pkgver=3.8.6
+pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -18,7 +18,7 @@
 depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb' 'ttf-font')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
-sha512sums=('460cee65d7df7150694590575502d7f22e548ebfc99c8f8b363eef8bf30ee72e58d8ffacb1d607824f877f880eb9fd6775a508388029583e1e1df3380f3f9587'
+sha512sums=('22faec84f6e172e1ac7c6bd6fd37e9b6ae4afc91cf5136aa8cac8ebbed8d18793f9196e8749b8ccc43447cb6c41cb450f65ea72dd363c06dfaeb14e0455f5560'
 'SKIP')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 
   'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG 
langa.pl) 


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-09-05 Thread Felix Yan via arch-commits
Date: Saturday, September 5, 2020 @ 11:55:08
  Author: felixonmars
Revision: 395471

upgpkg: python 3.8.5-2: rebuild with gcc 10.2 and libxcrypt

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-09-05 09:52:45 UTC (rev 395470)
+++ PKGBUILD2020-09-05 11:55:08 UTC (rev 395471)
@@ -9,13 +9,13 @@
 pkgbase=python
 pkgname=(python python-tests)
 pkgver=3.8.5
-pkgrel=1
+pkgrel=2
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
 license=('custom')
 url="https://www.python.org/";
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
+depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb' 'ttf-font')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
 
sha512sums=('460cee65d7df7150694590575502d7f22e548ebfc99c8f8b363eef8bf30ee72e58d8ffacb1d607824f877f880eb9fd6775a508388029583e1e1df3380f3f9587'


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-07-27 Thread Felix Yan via arch-commits
Date: Monday, July 27, 2020 @ 09:22:27
  Author: felixonmars
Revision: 392573

upgpkg: python 3.8.5-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |8 ++--
 1 file changed, 2 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-27 08:58:23 UTC (rev 392572)
+++ PKGBUILD2020-07-27 09:22:27 UTC (rev 392573)
@@ -8,7 +8,7 @@
 
 pkgbase=python
 pkgname=(python python-tests)
-pkgver=3.8.4
+pkgver=3.8.5
 pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
@@ -18,7 +18,7 @@
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb' 'ttf-font')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
-sha512sums=('37a36d014a8372742be9d0bd9dd3a275e100dc21b1515c145bc62425d4d157327b6e63ad99bc888c0b36c1da4c05676c40eb086e75072d1906e3210ec3043dcb'
+sha512sums=('460cee65d7df7150694590575502d7f22e548ebfc99c8f8b363eef8bf30ee72e58d8ffacb1d607824f877f880eb9fd6775a508388029583e1e1df3380f3f9587'
 'SKIP')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 
   'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG 
langa.pl) 
@@ -26,10 +26,6 @@
 prepare() {
   cd Python-${pkgver}
 
-  # https://bugs.python.org/issue41302
-  # Fix for --with-system-libmpdec with mpdecimal 2.5
-  sed -i '/#include "mpdecimal.h"/a #define UNUSED __attribute__((unused))' 
Modules/_decimal/_decimal.c
-
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-07-15 Thread Felix Yan via arch-commits
Date: Wednesday, July 15, 2020 @ 19:15:30
  Author: felixonmars
Revision: 391945

clean up test workarounds. we have only one failing test now!

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   14 --
 1 file changed, 4 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-15 18:50:20 UTC (rev 391944)
+++ PKGBUILD2020-07-15 19:15:30 UTC (rev 391945)
@@ -16,7 +16,7 @@
 license=('custom')
 url="https://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
-makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb' 'ttf-font')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
 
sha512sums=('37a36d014a8372742be9d0bd9dd3a275e100dc21b1515c145bc62425d4d157327b6e63ad99bc888c0b36c1da4c05676c40eb086e75072d1906e3210ec3043dcb'
 'SKIP')
@@ -26,12 +26,10 @@
 prepare() {
   cd Python-${pkgver}
 
+  # https://bugs.python.org/issue41302
   # Fix for --with-system-libmpdec with mpdecimal 2.5
   sed -i '/#include "mpdecimal.h"/a #define UNUSED __attribute__((unused))' 
Modules/_decimal/_decimal.c
 
-  # https://bugs.python.org/issue34587
-  sed -i -e "s|testCongestion|disabled_&|" Lib/test/test_socket.py
-
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
@@ -76,10 +74,7 @@
 }
 
 check() {
-  # test_gdb is expected to fail with LTO
-  # test_idle, test_tk, test_ttk_guionly segfaults since 3.6.5
-  # test_socket hangs since 3.8.2
-  # test_decimal fails since 3.8.2
+  # test_tk: https://bugs.python.org/issue41306
 
   cd Python-${pkgver}
 
@@ -89,8 +84,7 @@
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" 
-a -n "$servernum" \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly \
-  -x 
test_socket -x test_decimal
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk
 }
 
 package_python() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-07-15 Thread Felix Yan via arch-commits
Date: Wednesday, July 15, 2020 @ 11:25:54
  Author: felixonmars
Revision: 391932

upgpkg: python 3.8.4-1: Add a workaround (https://bugs.python.org/issue41302)

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |3 +++
 1 file changed, 3 insertions(+)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-15 09:27:17 UTC (rev 391931)
+++ PKGBUILD2020-07-15 11:25:54 UTC (rev 391932)
@@ -26,6 +26,9 @@
 prepare() {
   cd Python-${pkgver}
 
+  # Fix for --with-system-libmpdec with mpdecimal 2.5
+  sed -i '/#include "mpdecimal.h"/a #define UNUSED __attribute__((unused))' 
Modules/_decimal/_decimal.c
+
   # https://bugs.python.org/issue34587
   sed -i -e "s|testCongestion|disabled_&|" Lib/test/test_socket.py
 


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-07-15 Thread Felix Yan via arch-commits
Date: Wednesday, July 15, 2020 @ 09:27:02
  Author: felixonmars
Revision: 391930

upgpkg: python 3.8.4-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-15 09:23:19 UTC (rev 391929)
+++ PKGBUILD2020-07-15 09:27:02 UTC (rev 391930)
@@ -8,7 +8,7 @@
 
 pkgbase=python
 pkgname=(python python-tests)
-pkgver=3.8.3
+pkgver=3.8.4
 pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
@@ -18,7 +18,7 @@
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
-sha512sums=('3103bd8d944f3905eee3a2b52fd1f5c7dee380f9c5a99ad35a401fcba5a9117c3860ecec5cb47a92712c6549442fd2fa553a15c5657241dd09f5d00b9ed4f0f4'
+sha512sums=('37a36d014a8372742be9d0bd9dd3a275e100dc21b1515c145bc62425d4d157327b6e63ad99bc888c0b36c1da4c05676c40eb086e75072d1906e3210ec3043dcb'
 'SKIP')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 
   'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG 
langa.pl) 


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-04-08 Thread Felix Yan via arch-commits
Date: Wednesday, April 8, 2020 @ 15:08:14
  Author: felixonmars
Revision: 379839

libffi 3.3 rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-04-08 14:59:48 UTC (rev 379838)
+++ PKGBUILD2020-04-08 15:08:14 UTC (rev 379839)
@@ -9,7 +9,7 @@
 pkgbase=python
 pkgname=(python python-tests)
 pkgver=3.8.2
-pkgrel=1
+pkgrel=2
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-02-27 Thread Felix Yan via arch-commits
Date: Thursday, February 27, 2020 @ 08:37:02
  Author: felixonmars
Revision: 376283

upgpkg: python 3.8.2-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   28 ++--
 1 file changed, 10 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-02-27 08:09:51 UTC (rev 376282)
+++ PKGBUILD2020-02-27 08:37:02 UTC (rev 376283)
@@ -8,8 +8,8 @@
 
 pkgbase=python
 pkgname=(python python-tests)
-pkgver=3.8.1
-pkgrel=4
+pkgver=3.8.2
+pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -18,12 +18,10 @@
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
-0001-compileall-Fix-ddir-when-recursing.patch
-
fix-zip-import.patch::https://github.com/python/cpython/commit/9955f33cdbf27de270038dfbad37d15b160ecca2.patch)
-sha512sums=('d41381848cc1ec8009643b71875f395a9ac2c8e12a5b1efef33caf8a9e99a337c790d4354695c85352d11b62092ae372b5af62f78724363fcbf3504ff9a6ddca'
+0001-compileall-Fix-ddir-when-recursing.patch)
+sha512sums=('ca37ad0e7c5845f5f228566aa8ff654a8f428c7d4a5aaabff29baebb0ca3219b31ba8bb2607f89e37cf3fc564f023b8407e53a4f2c47bd99122c1cc222613e37'
 'SKIP'
-
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff'
-
'a2c1b0a236e998d5cbeb4de2d9449e20b97b8993bef70c0ed0a7e672fc1cbbaaa364c10115fafb80319a5d5a53496777c17b074d757d7ac23f6c1d5c91997af9')
+
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 
   'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG 
langa.pl) 
 
@@ -33,9 +31,6 @@
   # FS#59997
   patch -p1 -i ../0001-compileall-Fix-ddir-when-recursing.patch
 
-  # FS#65233
-  patch -p1 -i ../fix-zip-import.patch
-
   # https://bugs.python.org/issue34587
   sed -i -e "s|testCongestion|disabled_&|" Lib/test/test_socket.py
 
@@ -79,17 +74,15 @@
   export servernum=99
   while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do 
servernum=$((servernum+1)); done
 
-  LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" 
-a -n "$servernum" make EXTRA_CFLAGS="$CFLAGS"
+  LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" 
-a -n "$servernum" make EXTRA_CFLAGS="$CFLAGS"
 }
 
 check() {
   # test_gdb is expected to fail with LTO
   # test_idle, test_tk, test_ttk_guionly segfaults since 3.6.5
+  # test_socket hangs since 3.8.2
+  # test_decimal fails since 3.8.2
 
-  # https://bugs.python.org/issue34022
-  # test_cmd_line_script, test_compileall, test_importlib,
-  # test_multiprocessing_main_handling, test_py_compile, test_runpy
-
   cd Python-${pkgver}
 
   # Obtain next free server number for xvfb-run; this even works in a chroot 
environment.
@@ -97,10 +90,9 @@
   while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do 
servernum=$((servernum+1)); done
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
-  LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" 
-a -n "$servernum" \
+  LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" 
-a -n "$servernum" \
 "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly \
--x test_cmd_line_script -x test_compileall -x test_importlib -x 
test_multiprocessing_main_handling -x test_py_compile -x test_runpy \
--x test_httplib
+  -x 
test_socket -x test_decimal
 }
 
 package_python() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-01-22 Thread Felix Yan via arch-commits
Date: Wednesday, January 22, 2020 @ 09:08:53
  Author: felixonmars
Revision: 373781

upgpkg: python 3.8.1-4

- fix zipimport (FS#65233)
- add -fno-semantic-interposition optimization (FS#65151)
- remove unused option (FS#62477)

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   17 -
 1 file changed, 12 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-01-22 09:04:55 UTC (rev 373780)
+++ PKGBUILD2020-01-22 09:08:53 UTC (rev 373781)
@@ -9,7 +9,7 @@
 pkgbase=python
 pkgname=(python python-tests)
 pkgver=3.8.1
-pkgrel=3
+pkgrel=4
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -18,10 +18,12 @@
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
-0001-compileall-Fix-ddir-when-recursing.patch)
+0001-compileall-Fix-ddir-when-recursing.patch
+
fix-zip-import.patch::https://github.com/python/cpython/commit/9955f33cdbf27de270038dfbad37d15b160ecca2.patch)
 
sha512sums=('d41381848cc1ec8009643b71875f395a9ac2c8e12a5b1efef33caf8a9e99a337c790d4354695c85352d11b62092ae372b5af62f78724363fcbf3504ff9a6ddca'
 'SKIP'
-
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff')
+
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff'
+
'a2c1b0a236e998d5cbeb4de2d9449e20b97b8993bef70c0ed0a7e672fc1cbbaaa364c10115fafb80319a5d5a53496777c17b074d757d7ac23f6c1d5c91997af9')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 
   'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG 
langa.pl) 
 
@@ -31,6 +33,9 @@
   # FS#59997
   patch -p1 -i ../0001-compileall-Fix-ddir-when-recursing.patch
 
+  # FS#65233
+  patch -p1 -i ../fix-zip-import.patch
+
   # https://bugs.python.org/issue34587
   sed -i -e "s|testCongestion|disabled_&|" Lib/test/test_socket.py
 
@@ -51,12 +56,14 @@
   cd Python-${pkgver}
 
   # PGO should be done with -O3
-  CFLAGS="${CFLAGS/-O2/-O3}"
+  # Also included the -fno-semantic-interposition optimization:
+  # https://fedoraproject.org/wiki/Changes/PythonNoSemanticInterpositionSpeedup
+  CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
+  LDFLAGS="$LDFLAGS -fno-semantic-interposition"
 
   # Disable bundled pip & setuptools
   ./configure --prefix=/usr \
   --enable-shared \
-  --with-threads \
   --with-computed-gotos \
   --enable-optimizations \
   --with-lto \


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-01-08 Thread Felix Yan via arch-commits
Date: Wednesday, January 8, 2020 @ 23:49:51
  Author: felixonmars
Revision: 372841

upgpkg: python 3.8.1-3

correct provides/replaces/optdepends info in python-tests

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   19 ++-
 1 file changed, 10 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-01-08 22:51:27 UTC (rev 372840)
+++ PKGBUILD2020-01-08 23:49:51 UTC (rev 372841)
@@ -9,7 +9,7 @@
 pkgbase=python
 pkgname=(python python-tests)
 pkgver=3.8.1
-pkgrel=2
+pkgrel=3
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -17,14 +17,6 @@
 url="https://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
-optdepends=('python-setuptools'
-'python-pip'
-'sqlite'
-'mpdecimal: for decimal'
-'xz: for lzma'
-'tk: for tkinter')
-provides=('python3')
-replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 0001-compileall-Fix-ddir-when-recursing.patch)
 
sha512sums=('d41381848cc1ec8009643b71875f395a9ac2c8e12a5b1efef33caf8a9e99a337c790d4354695c85352d11b62092ae372b5af62f78724363fcbf3504ff9a6ddca'
@@ -105,6 +97,15 @@
 }
 
 package_python() {
+  optdepends=('python-setuptools'
+  'python-pip'
+  'sqlite'
+  'mpdecimal: for decimal'
+  'xz: for lzma'
+  'tk: for tkinter')
+  provides=('python3')
+  replaces=('python3')
+
   cd Python-${pkgver}
 
   # Hack to avoid building again


[arch-commits] Commit in python/trunk (PKGBUILD)

2020-01-08 Thread Felix Yan via arch-commits
Date: Wednesday, January 8, 2020 @ 22:51:15
  Author: felixonmars
Revision: 372839

upgpkg: python 3.8.1-2

split out tests to make python ~50% smaller

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   37 ++---
 1 file changed, 34 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-01-08 21:23:13 UTC (rev 372838)
+++ PKGBUILD2020-01-08 22:51:15 UTC (rev 372839)
@@ -4,9 +4,12 @@
 # Contributor: Allan McRae 
 # Contributor: Jason Chu 
 
-pkgname=python
+shopt -s extglob
+
+pkgbase=python
+pkgname=(python python-tests)
 pkgver=3.8.1
-pkgrel=1
+pkgrel=2
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -101,7 +104,7 @@
 -x test_httplib
 }
 
-package() {
+package_python() {
   cd Python-${pkgver}
 
   # Hack to avoid building again
@@ -112,6 +115,9 @@
 
   make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install
 
+  # Split tests
+  rm -r 
"$pkgdir"/usr/lib/python*/{test,ctypes/test,distutils/tests,idlelib/idle_test,lib2to3/tests,sqlite3/test,tkinter/test,unittest/test}
+
   # Why are these not done by default...
   ln -s python3   "${pkgdir}"/usr/bin/python
   ln -s python3-config"${pkgdir}"/usr/bin/python-config
@@ -127,3 +133,28 @@
   # License
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
+
+package_python-tests() {
+  pkgdesc="Regression tests packages for Python"
+  depends=('python')
+
+  cd Python-${pkgver}
+
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" libinstall
+  cd "$pkgdir"/usr/lib/python*/
+  rm -r !(test|ctypes|distutils|idlelib|lib2to3|sqlite3|tkinter|unittest)
+  cd "$pkgdir"/usr/lib/python*/ctypes
+  rm -r !(test)
+  cd "$pkgdir"/usr/lib/python*/distutils
+  rm -r !(tests)
+  cd "$pkgdir"/usr/lib/python*/idlelib
+  rm -r !(idle_test)
+  cd "$pkgdir"/usr/lib/python*/lib2to3
+  rm -r !(tests)
+  cd "$pkgdir"/usr/lib/python*/sqlite3
+  rm -r !(test)
+  cd "$pkgdir"/usr/lib/python*/tkinter
+  rm -r !(test)
+  cd "$pkgdir"/usr/lib/python*/unittest
+  rm -r !(test)
+}


[arch-commits] Commit in python/trunk (PKGBUILD)

2019-12-21 Thread Felix Yan via arch-commits
Date: Saturday, December 21, 2019 @ 21:34:40
  Author: felixonmars
Revision: 372048

upgpkg: python 3.8.1-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-12-21 20:45:56 UTC (rev 372047)
+++ PKGBUILD2019-12-21 21:34:40 UTC (rev 372048)
@@ -5,7 +5,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.8.0
+pkgver=3.8.1
 pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
@@ -24,7 +24,7 @@
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 0001-compileall-Fix-ddir-when-recursing.patch)
-sha512sums=('5f9bfcb3acdf592770a9d5abd2c32c68c55a49b92f958ded069e3ef31cf2d415e67112b4f6738fab237dc29e5c622298719946d2e9471e7e78e3a6bdf2fac1d1'
+sha512sums=('d41381848cc1ec8009643b71875f395a9ac2c8e12a5b1efef33caf8a9e99a337c790d4354695c85352d11b62092ae372b5af62f78724363fcbf3504ff9a6ddca'
 'SKIP'
 
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 


[arch-commits] Commit in python/trunk (PKGBUILD dont-make-libpython-readonly.patch)

2019-10-23 Thread Felix Yan via arch-commits
Date: Wednesday, October 23, 2019 @ 19:27:11
  Author: felixonmars
Revision: 365412

upgpkg: python 3.8.0-1

Modified:
  python/trunk/PKGBUILD
Deleted:
  python/trunk/dont-make-libpython-readonly.patch

+
 PKGBUILD   |   14 +-
 dont-make-libpython-readonly.patch |   13 -
 2 files changed, 5 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-23 18:30:07 UTC (rev 365411)
+++ PKGBUILD2019-10-23 19:27:11 UTC (rev 365412)
@@ -5,8 +5,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.7.4
-pkgrel=2
+pkgver=3.8.0
+pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -23,20 +23,16 @@
 provides=('python3')
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
-dont-make-libpython-readonly.patch
 0001-compileall-Fix-ddir-when-recursing.patch)
-sha512sums=('71f64668c259f3ed07bd4aa239dbba6cc1b6b0a84d50bbff160664845d7986f757e4d65fca327e62a2d12ba593742ca83a22f7cb6093aff8715ec916c2ba9416'
+sha512sums=('5f9bfcb3acdf592770a9d5abd2c32c68c55a49b92f958ded069e3ef31cf2d415e67112b4f6738fab237dc29e5c622298719946d2e9471e7e78e3a6bdf2fac1d1'
 'SKIP'
-
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4'
 
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff')
-validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
+validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python 
release signing key) 
+  'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG 
langa.pl) 
 
 prepare() {
   cd Python-${pkgver}
 
-  # FS#45809
-  patch -p1 -i ../dont-make-libpython-readonly.patch
-
   # FS#59997
   patch -p1 -i ../0001-compileall-Fix-ddir-when-recursing.patch
 

Deleted: dont-make-libpython-readonly.patch
===
--- dont-make-libpython-readonly.patch  2019-10-23 18:30:07 UTC (rev 365411)
+++ dont-make-libpython-readonly.patch  2019-10-23 19:27:11 UTC (rev 365412)
@@ -1,13 +0,0 @@
-diff --git a/Makefile.pre.in b/Makefile.pre.in
-index ce2c0aa..7d6dcf7 100644
 a/Makefile.pre.in
-+++ b/Makefile.pre.in
-@@ -60,7 +60,7 @@ INSTALL_DATA=@INSTALL_DATA@
- # Shared libraries must be installed with executable mode on some systems;
- # rather than figuring out exactly which, we always give them executable mode.
- # Also, making them read-only seems to be a good idea...
--INSTALL_SHARED= ${INSTALL} -m 555
-+INSTALL_SHARED= ${INSTALL} -m 755
- 
- MKDIR_P=  @MKDIR_P@
- 


[arch-commits] Commit in python/trunk (PKGBUILD)

2019-10-04 Thread Felix Yan via arch-commits
Date: Friday, October 4, 2019 @ 08:14:19
  Author: felixonmars
Revision: 363760

upgpkg: python 3.7.4-2

rebuild for LTO 8.1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-04 07:09:05 UTC (rev 363759)
+++ PKGBUILD2019-10-04 08:14:19 UTC (rev 363760)
@@ -6,7 +6,7 @@
 
 pkgname=python
 pkgver=3.7.4
-pkgrel=1
+pkgrel=2
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2019-09-15 Thread Antonio Rojas via arch-commits
Date: Sunday, September 15, 2019 @ 14:12:53
  Author: arojas
Revision: 362914

https

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-09-15 14:11:11 UTC (rev 362913)
+++ PKGBUILD2019-09-15 14:12:53 UTC (rev 362914)
@@ -11,7 +11,7 @@
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
 license=('custom')
-url="http://www.python.org/";
+url="https://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
 optdepends=('python-setuptools'


[arch-commits] Commit in python/trunk (PKGBUILD)

2019-07-16 Thread Felix Yan via arch-commits
Date: Tuesday, July 16, 2019 @ 08:38:08
  Author: felixonmars
Revision: 358047

upgpkg: python 3.7.4-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-07-16 08:34:48 UTC (rev 358046)
+++ PKGBUILD2019-07-16 08:38:08 UTC (rev 358047)
@@ -5,8 +5,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.7.3
-pkgrel=2
+pkgver=3.7.4
+pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -25,7 +25,7 @@
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch
 0001-compileall-Fix-ddir-when-recursing.patch)
-sha512sums=('6d9b7c0f1764e0f655a39430a3af6f7b5e3c9b7166c042e780677a54b17ad4ca6d0d9cba262c82b1b70bba8f7c28883dad4cc0d7cc194fc7d2c1b5f4f08a763a'
+sha512sums=('71f64668c259f3ed07bd4aa239dbba6cc1b6b0a84d50bbff160664845d7986f757e4d65fca327e62a2d12ba593742ca83a22f7cb6093aff8715ec916c2ba9416'
 'SKIP'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4'
 
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff')


[arch-commits] Commit in python/trunk (PKGBUILD)

2019-06-23 Thread Felix Yan via arch-commits
Date: Monday, June 24, 2019 @ 06:03:11
  Author: felixonmars
Revision: 356824

upgpkg: python 3.7.3-2

rebuild for FS#62862

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-06-24 04:55:31 UTC (rev 356823)
+++ PKGBUILD2019-06-24 06:03:11 UTC (rev 356824)
@@ -6,7 +6,7 @@
 
 pkgname=python
 pkgver=3.7.3
-pkgrel=1
+pkgrel=2
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -101,7 +101,8 @@
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" 
-a -n "$servernum" \
 "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly \
--x test_cmd_line_script -x test_compileall -x test_importlib -x 
test_multiprocessing_main_handling -x test_py_compile -x test_runpy
+-x test_cmd_line_script -x test_compileall -x test_importlib -x 
test_multiprocessing_main_handling -x test_py_compile -x test_runpy \
+-x test_httplib
 }
 
 package() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2019-03-27 Thread Felix Yan via arch-commits
Date: Wednesday, March 27, 2019 @ 07:52:54
  Author: felixonmars
Revision: 349258

upgpkg: python 3.7.3-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-03-27 07:50:24 UTC (rev 349257)
+++ PKGBUILD2019-03-27 07:52:54 UTC (rev 349258)
@@ -5,8 +5,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.7.2
-pkgrel=3
+pkgver=3.7.3
+pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -25,7 +25,7 @@
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch
 0001-compileall-Fix-ddir-when-recursing.patch)
-sha512sums=('6cd2d6d848783b99d55985cd7b22d67b98f41a09b4fdd96f680a630a4e035220d2b903f8c59ed513aa5ffe6730fa947ddb55bb72ce36f0e945ef8af5d971'
+sha512sums=('6d9b7c0f1764e0f655a39430a3af6f7b5e3c9b7166c042e780677a54b17ad4ca6d0d9cba262c82b1b70bba8f7c28883dad4cc0d7cc194fc7d2c1b5f4f08a763a'
 'SKIP'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4'
 
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff')


[arch-commits] Commit in python/trunk (PKGBUILD)

2019-01-10 Thread Felix Yan via arch-commits
Date: Friday, January 11, 2019 @ 01:00:37
  Author: felixonmars
Revision: 343537

Readline 8.0 rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-01-10 23:55:23 UTC (rev 343536)
+++ PKGBUILD2019-01-11 01:00:37 UTC (rev 343537)
@@ -6,7 +6,7 @@
 
 pkgname=python
 pkgver=3.7.2
-pkgrel=2
+pkgrel=3
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2019-01-10 Thread Felix Yan via arch-commits
Date: Thursday, January 10, 2019 @ 17:19:09
  Author: felixonmars
Revision: 343516

Readline 8.0 rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-01-10 16:28:38 UTC (rev 343515)
+++ PKGBUILD2019-01-10 17:19:09 UTC (rev 343516)
@@ -6,7 +6,7 @@
 
 pkgname=python
 pkgver=3.7.2
-pkgrel=1
+pkgrel=2
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-10-22 Thread Felix Yan via arch-commits
Date: Monday, October 22, 2018 @ 12:24:49
  Author: felixonmars
Revision: 336993

upgpkg: python 3.7.1-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   11 +++
 1 file changed, 3 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-10-22 10:17:40 UTC (rev 336992)
+++ PKGBUILD2018-10-22 12:24:49 UTC (rev 336993)
@@ -5,8 +5,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.7.0
-pkgrel=4
+pkgver=3.7.1
+pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -23,12 +23,10 @@
 provides=('python3')
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
-bpo34056-always-return-bytes-from-_HackedGetData.get_data.patch
 dont-make-libpython-readonly.patch
 0001-compileall-Fix-ddir-when-recursing.patch)
-sha512sums=('8bb11233fb67ee9ab8ed1b72f8fdc62f66e26a6beaaeb92448bce681cf065269833b1658d3ed2459127f25ba43adb0eab73cf27c59834a2a803fb529b4216739'
+sha512sums=('3eb62a0127609b14420a47442727702f396519c649625aca59883d04f4c02e5f37ba1d58ac8e93c49d14a63f17ae7909315c33fc813293dbcdb6127f39a148b0'
 'SKIP'
-
'0ec544fa95ba30be03e866d02848f9fa4921304055368609136ac39626df9835bad75506f6d81ef9fdc0ebcc29a9749f84b5b5f4dd75958c9699ade522d51b68'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4'
 
'ebd04c3b6d41321b1f0d439d356e0ce463760db55dc64109854c70d017cf56608aa19de9fc4a21bf840795ff202b4703444f9af8074b661780798c17e03089ff')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
@@ -36,9 +34,6 @@
 prepare() {
   cd Python-${pkgver}
 
-  # https://bugs.python.org/issue34056
-  patch -Np1 -i 
../bpo34056-always-return-bytes-from-_HackedGetData.get_data.patch
-
   # FS#45809
   patch -p1 -i ../dont-make-libpython-readonly.patch
 


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-06-29 Thread Evangelos Foutras via arch-commits
Date: Friday, June 29, 2018 @ 17:22:45
  Author: foutrelis
Revision: 32

upgpkg: python 3.7.0-2

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   20 +++-
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-29 16:49:57 UTC (rev 327776)
+++ PKGBUILD2018-06-29 17:22:45 UTC (rev 32)
@@ -6,9 +6,9 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.6.6
-pkgrel=1
-_pybasever=3.6
+pkgver=3.7.0
+pkgrel=2
+_pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
 license=('custom')
@@ -25,7 +25,7 @@
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch)
-sha512sums=('c71f87c5906e770322a14cacad228655659f782207db826320449d12bf86091c3662f317e1773158dec52f8b052eaedfb4c03b561cc2a6cfcd381597fd2d2b04'
+sha512sums=('8bb11233fb67ee9ab8ed1b72f8fdc62f66e26a6beaaeb92448bce681cf065269833b1658d3ed2459127f25ba43adb0eab73cf27c59834a2a803fb529b4216739'
 'SKIP'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
@@ -39,10 +39,9 @@
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
-  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
+  # Ensure that we are using the system copy of various libraries (expat, 
libffi, and libmpdec),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
-  rm -r Modules/zlib
   rm -r Modules/_ctypes/{darwin,libffi}*
   rm -r Modules/_decimal/libmpdec
 }
@@ -73,8 +72,10 @@
 }
 
 check() {
-  # test_gdb is expected to fail with LTO~
-  # test_idle, test_tk, test_ttk_guionly segfaults on 3.6.5
+  # test_gdb is expected to fail with LTO
+  # test_idle, test_tk, test_ttk_guionly segfaults since 3.6.5
+  # test_cmd_line_script, test_compileall, test_importlib, 
test_multiprocessing_main_handling, test_py_compile, test_runpy fail in 3.7.0
+  # (All 6 are about zipfile import error)
 
   cd Python-${pkgver}
 
@@ -84,7 +85,8 @@
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" 
-a -n "$servernum" \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly \
+-x test_cmd_line_script -x test_compileall -x test_importlib -x 
test_multiprocessing_main_handling -x test_py_compile -x test_runpy
 }
 
 package() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-06-28 Thread Felix Yan via arch-commits
Date: Thursday, June 28, 2018 @ 20:42:57
  Author: felixonmars
Revision: 327731

upgpkg: python 3.6.6-1

reverts to 3.6.6 for gdbm rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   14 ++
 1 file changed, 6 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-28 20:32:18 UTC (rev 327730)
+++ PKGBUILD2018-06-28 20:42:57 UTC (rev 327731)
@@ -6,7 +6,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.7.0
+pkgver=3.6.6
 pkgrel=1
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
@@ -25,7 +25,7 @@
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch)
-sha512sums=('8bb11233fb67ee9ab8ed1b72f8fdc62f66e26a6beaaeb92448bce681cf065269833b1658d3ed2459127f25ba43adb0eab73cf27c59834a2a803fb529b4216739'
+sha512sums=('c71f87c5906e770322a14cacad228655659f782207db826320449d12bf86091c3662f317e1773158dec52f8b052eaedfb4c03b561cc2a6cfcd381597fd2d2b04'
 'SKIP'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
@@ -42,6 +42,7 @@
   # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
+  rm -r Modules/zlib
   rm -r Modules/_ctypes/{darwin,libffi}*
   rm -r Modules/_decimal/libmpdec
 }
@@ -72,10 +73,8 @@
 }
 
 check() {
-  # test_gdb is expected to fail with LTO
-  # test_idle, test_tk, test_ttk_guionly segfaults since 3.6.5
-  # test_cmd_line_script, test_compileall, test_importlib, 
test_multiprocessing_main_handling, test_py_compile, test_runpy fail in 3.7.0
-  # (All 6 are about zipfile import error)
+  # test_gdb is expected to fail with LTO~
+  # test_idle, test_tk, test_ttk_guionly segfaults on 3.6.5
 
   cd Python-${pkgver}
 
@@ -85,8 +84,7 @@
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" 
-a -n "$servernum" \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly \
--x test_cmd_line_script -x test_compileall -x test_importlib -x 
test_multiprocessing_main_handling -x test_py_compile -x test_runpy
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly
 }
 
 package() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-06-28 Thread Felix Yan via arch-commits
Date: Thursday, June 28, 2018 @ 20:02:11
  Author: felixonmars
Revision: 327727

upgpkg: python 3.7.0-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-28 17:03:32 UTC (rev 327726)
+++ PKGBUILD2018-06-28 20:02:11 UTC (rev 327727)
@@ -6,7 +6,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.6.6
+pkgver=3.7.0
 pkgrel=1
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
@@ -25,7 +25,7 @@
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch)
-sha512sums=('c71f87c5906e770322a14cacad228655659f782207db826320449d12bf86091c3662f317e1773158dec52f8b052eaedfb4c03b561cc2a6cfcd381597fd2d2b04'
+sha512sums=('8bb11233fb67ee9ab8ed1b72f8fdc62f66e26a6beaaeb92448bce681cf065269833b1658d3ed2459127f25ba43adb0eab73cf27c59834a2a803fb529b4216739'
 'SKIP'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
@@ -42,7 +42,6 @@
   # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
-  rm -r Modules/zlib
   rm -r Modules/_ctypes/{darwin,libffi}*
   rm -r Modules/_decimal/libmpdec
 }
@@ -73,8 +72,10 @@
 }
 
 check() {
-  # test_gdb is expected to fail with LTO~
-  # test_idle, test_tk, test_ttk_guionly segfaults on 3.6.5
+  # test_gdb is expected to fail with LTO
+  # test_idle, test_tk, test_ttk_guionly segfaults since 3.6.5
+  # test_cmd_line_script, test_compileall, test_importlib, 
test_multiprocessing_main_handling, test_py_compile, test_runpy fail in 3.7.0
+  # (All 6 are about zipfile import error)
 
   cd Python-${pkgver}
 
@@ -84,7 +85,8 @@
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" 
-a -n "$servernum" \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly \
+-x test_cmd_line_script -x test_compileall -x test_importlib -x 
test_multiprocessing_main_handling -x test_py_compile -x test_runpy
 }
 
 package() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-06-27 Thread Bartłomiej Piotrowski via arch-commits
Date: Wednesday, June 27, 2018 @ 14:05:58
  Author: bpiotrowski
Revision: 327694

3.6.6-1: rebuild against gdbm 1.15

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-27 14:02:19 UTC (rev 327693)
+++ PKGBUILD2018-06-27 14:05:58 UTC (rev 327694)
@@ -6,8 +6,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.6.5
-pkgrel=3
+pkgver=3.6.6
+pkgrel=1
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -25,7 +25,7 @@
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch)
-sha512sums=('6b26fcd296b9bd8e67861eff10d14db7507711ddba947288d16d6def53135c39326b7f969c04bb2b2993f924d9e7ad3f5c5282a3915760bc0885cf0a8ea5eb51'
+sha512sums=('c71f87c5906e770322a14cacad228655659f782207db826320449d12bf86091c3662f317e1773158dec52f8b052eaedfb4c03b561cc2a6cfcd381597fd2d2b04'
 'SKIP'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-05-15 Thread Levente Polyak via arch-commits
Date: Tuesday, May 15, 2018 @ 20:43:18
  Author: anthraxx
Revision: 324302

upgpkg: python 3.6.5-3 (rebuild for gcc 8 static lib lto version)

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-05-15 19:54:46 UTC (rev 324301)
+++ PKGBUILD2018-05-15 20:43:18 UTC (rev 324302)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.6.5
-pkgrel=2
+pkgrel=3
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-04-14 Thread Bartłomiej Piotrowski via arch-commits
Date: Saturday, April 14, 2018 @ 15:30:18
  Author: bpiotrowski
Revision: 321799

3.6.5-2: rebuild against libnsl

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-04-14 14:15:59 UTC (rev 321798)
+++ PKGBUILD2018-04-14 15:30:18 UTC (rev 321799)
@@ -7,13 +7,13 @@
 
 pkgname=python
 pkgver=3.6.5
-pkgrel=1
+pkgrel=2
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
 license=('custom')
 url="http://www.python.org/";
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
 makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
 optdepends=('python-setuptools'
 'python-pip'


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-04-12 Thread Felix Yan via arch-commits
Date: Thursday, April 12, 2018 @ 15:23:25
  Author: felixonmars
Revision: 321633

upgpkg: python 3.6.5-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   16 
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-04-12 15:21:43 UTC (rev 321632)
+++ PKGBUILD2018-04-12 15:23:25 UTC (rev 321633)
@@ -6,8 +6,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.6.4
-pkgrel=2
+pkgver=3.6.5
+pkgrel=1
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')
@@ -25,7 +25,7 @@
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch)
-sha512sums=('09ba2103ac517ac4d262f00380c9aac836a53401ce252540c17fd821a3b92e1ddf32528d00772221eb3126b12cb95b62c3ac3e852f4951e6f2eb406c88c848a2'
+sha512sums=('6b26fcd296b9bd8e67861eff10d14db7507711ddba947288d16d6def53135c39326b7f969c04bb2b2993f924d9e7ad3f5c5282a3915760bc0885cf0a8ea5eb51'
 'SKIP'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
@@ -69,12 +69,12 @@
   export servernum=99
   while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do 
servernum=$((servernum+1)); done
 
-  LC_CTYPE=en_US.UTF-8 xvfb-run -a -n "$servernum" make EXTRA_CFLAGS="$CFLAGS"
+  LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" 
-a -n "$servernum" make EXTRA_CFLAGS="$CFLAGS"
 }
 
 check() {
-  # test_gdb is expected to fail with LTO
-  # test_subprocess hangs on 3.6.3
+  # test_gdb is expected to fail with LTO~
+  # test_idle, test_tk, test_ttk_guionly segfaults on 3.6.5
 
   cd Python-${pkgver}
 
@@ -83,8 +83,8 @@
   while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do 
servernum=$((servernum+1)); done
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
-  LC_CTYPE=en_US.UTF-8 xvfb-run -a -n "$servernum" \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_subprocess
+  LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" 
-a -n "$servernum" \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_idle -x test_tk -x test_ttk_guionly
 }
 
 package() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2018-01-04 Thread Felix Yan via arch-commits
Date: Friday, January 5, 2018 @ 02:39:03
  Author: felixonmars
Revision: 314058

upgpkg: python 3.6.4-2

rebuild with gdbm 1.14.1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-01-05 02:38:33 UTC (rev 314057)
+++ PKGBUILD2018-01-05 02:39:03 UTC (rev 314058)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.6.4
-pkgrel=1
+pkgrel=2
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2017-12-23 Thread Felix Yan via arch-commits
Date: Saturday, December 23, 2017 @ 19:13:26
  Author: felixonmars
Revision: 313570

upgpkg: python 3.6.4-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-12-23 18:46:49 UTC (rev 313569)
+++ PKGBUILD2017-12-23 19:13:26 UTC (rev 313570)
@@ -6,7 +6,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.6.3
+pkgver=3.6.4
 pkgrel=1
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
@@ -25,7 +25,7 @@
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch)
-sha512sums=('32f24a3adcb7880003c7ecdc5e53e838e774adda76b308961d8215e28db630b2fa2828097817924c76afa4212b2df3362eb64d4e10f37c0147f512ec5aa8662b'
+sha512sums=('09ba2103ac517ac4d262f00380c9aac836a53401ce252540c17fd821a3b92e1ddf32528d00772221eb3126b12cb95b62c3ac3e852f4951e6f2eb406c88c848a2'
 'SKIP'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 


[arch-commits] Commit in python/trunk (PKGBUILD openssl-110f.patch)

2017-10-24 Thread Felix Yan
Date: Tuesday, October 24, 2017 @ 15:50:27
  Author: felixonmars
Revision: 308391

upgpkg: python 3.6.3-1

Modified:
  python/trunk/PKGBUILD
Deleted:
  python/trunk/openssl-110f.patch

+
 PKGBUILD   |   12 
 openssl-110f.patch |   51 ---
 2 files changed, 4 insertions(+), 59 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-10-24 15:48:11 UTC (rev 308390)
+++ PKGBUILD2017-10-24 15:50:27 UTC (rev 308391)
@@ -6,7 +6,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.6.2
+pkgver=3.6.3
 pkgrel=1
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
@@ -24,11 +24,9 @@
 provides=('python3')
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
-openssl-110f.patch
 dont-make-libpython-readonly.patch)
-sha512sums=('a8270a09a9e9b39f69ece6cdade2fa964665d2107b5acbad4453f1b921107b329c697c137185928fb4a576fc0f2ae2a98dbf26a8b7ea17219e990ddbc216db8b'
+sha512sums=('32f24a3adcb7880003c7ecdc5e53e838e774adda76b308961d8215e28db630b2fa2828097817924c76afa4212b2df3362eb64d4e10f37c0147f512ec5aa8662b'
 'SKIP'
-
'b32c2a0f17b3d19720187b68606024886c6b8008b7c61feaf4fe7b26b4547fddc71a2f191f87557d5fe613d06a8bc79ce5f724681a3090559fc34a032ccbf61a'
 
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
 
@@ -35,9 +33,6 @@
 prepare() {
   cd Python-${pkgver}
 
-  # https://bugs.python.org/issue30714
-  patch -p1 -i ../openssl-110f.patch
-
   # FS#45809
   patch -p1 -i ../dont-make-libpython-readonly.patch
 
@@ -79,6 +74,7 @@
 
 check() {
   # test_gdb is expected to fail with LTO
+  # test_subprocess hangs on 3.6.3
 
   cd Python-${pkgver}
 
@@ -88,7 +84,7 @@
 
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   LC_CTYPE=en_US.UTF-8 xvfb-run -a -n "$servernum" \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_subprocess
 }
 
 package() {

Deleted: openssl-110f.patch
===
--- openssl-110f.patch  2017-10-24 15:48:11 UTC (rev 308390)
+++ openssl-110f.patch  2017-10-24 15:50:27 UTC (rev 308391)
@@ -1,51 +0,0 @@
-From 0e396a20c3137244b1774bd14a0cb03921ff326d Mon Sep 17 00:00:00 2001
-From: Christian Heimes 
-Date: Tue, 20 Jun 2017 18:28:38 +0200
-Subject: [PATCH] bpo-30714: ALPN changes for OpenSSL 1.1.0f
-
-OpenSSL 1.1.0 to 1.1.0e aborted the handshake when server and client
-could not agree on a protocol using ALPN. OpenSSL 1.1.0f changed that.
-The most recent version now behaves like OpenSSL 1.0.2 again. The ALPN
-callback can pretend to not been set.
-
-See https://github.com/openssl/openssl/pull/3158 for more details
-
-Signed-off-by: Christian Heimes 

- Doc/library/ssl.rst  | 5 +++--
- Lib/test/test_ssl.py | 5 +++--
- Misc/NEWS| 3 +++
- 3 files changed, 9 insertions(+), 4 deletions(-)
-
-diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
-index 729a239a1ba..b51b9c6e396 100644
 a/Doc/library/ssl.rst
-+++ b/Doc/library/ssl.rst
-@@ -1447,8 +1447,9 @@ to speed up repeated connections from the same clients.
-This method will raise :exc:`NotImplementedError` if :data:`HAS_ALPN` is
-False.
- 
--   OpenSSL 1.1.0+ will abort the handshake and raise :exc:`SSLError` when
--   both sides support ALPN but cannot agree on a protocol.
-+   OpenSSL 1.1.0 to 1.1.0e will abort the handshake and raise :exc:`SSLError`
-+   when both sides support ALPN but cannot agree on a protocol. 1.1.0f+
-+   behaves like 1.0.2.
- 
-.. versionadded:: 3.5
- 
-diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
-index fdaf1c52046..3215031206c 100644
 a/Lib/test/test_ssl.py
-+++ b/Lib/test/test_ssl.py
-@@ -3267,8 +3267,9 @@ def test_alpn_protocols(self):
- except ssl.SSLError as e:
- stats = e
- 
--if expected is None and IS_OPENSSL_1_1:
--# OpenSSL 1.1.0 raises handshake error
-+if (expected is None and IS_OPENSSL_1_1
-+and ssl.OPENSSL_VERSION_INFO < (1, 1, 0, 6)):
-+# OpenSSL 1.1.0 to 1.1.0e raises handshake error
- self.assertIsInstance(stats, ssl.SSLError)
- else:
- msg = "failed trying %s (s) and %s (c).\n" \


[arch-commits] Commit in python/trunk (PKGBUILD)

2017-03-26 Thread Felix Yan
Date: Monday, March 27, 2017 @ 01:35:43
  Author: felixonmars
Revision: 291716

upgpkg: python 3.6.1-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-03-26 22:37:55 UTC (rev 291715)
+++ PKGBUILD2017-03-27 01:35:43 UTC (rev 291716)
@@ -6,8 +6,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.6.0
-pkgrel=3
+pkgver=3.6.1
+pkgrel=1
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -26,7 +26,7 @@
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 test_socket_aead_kernel49.patch
 dont-make-libpython-readonly.patch)
-sha1sums=('18ebf7d726782967d967dc00e3aa08b334fbdd5c'
+sha1sums=('91d880a2a9fcfc6753cbfa132bf47a47e17e7b16'
   'SKIP'
   '54df54d984fae381e471494e9b7f028a9f792eaf'
   'c22b24324b8e53326702de439c401d97927ee3f2')


[arch-commits] Commit in python/trunk (PKGBUILD test_socket_aead_kernel49.patch)

2017-02-28 Thread Lukas Fleischer
Date: Tuesday, February 28, 2017 @ 18:35:18
  Author: lfleischer
Revision: 289730

upgpkg: python 3.6.0-3

* Fix build under Linux >=4.9.
* Fix parallel build in a chroot environment.
* Rebuild against OpenSSL 1.1.

Added:
  python/trunk/test_socket_aead_kernel49.patch
Modified:
  python/trunk/PKGBUILD

-+
 PKGBUILD|   20 ++--
 test_socket_aead_kernel49.patch |   61 ++
 2 files changed, 78 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-02-28 18:30:29 UTC (rev 289729)
+++ PKGBUILD2017-02-28 18:35:18 UTC (rev 289730)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.6.0
-pkgrel=2
+pkgrel=3
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -24,9 +24,11 @@
 provides=('python3')
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
+test_socket_aead_kernel49.patch
 dont-make-libpython-readonly.patch)
 sha1sums=('18ebf7d726782967d967dc00e3aa08b334fbdd5c'
   'SKIP'
+  '54df54d984fae381e471494e9b7f028a9f792eaf'
   'c22b24324b8e53326702de439c401d97927ee3f2')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
 
@@ -33,6 +35,9 @@
 prepare() {
   cd Python-${pkgver}
 
+  # Test suite fix for Linux 4.9.
+  patch -p1 -i ../test_socket_aead_kernel49.patch
+
   # FS#45809
   patch -p1 -i ../dont-make-libpython-readonly.patch
 
@@ -65,7 +70,11 @@
   --enable-loadable-sqlite-extensions \
   --without-ensurepip
 
-  LC_CTYPE=en_US.UTF-8 xvfb-run make EXTRA_CFLAGS="$CFLAGS"
+  # Obtain next free server number for xvfb-run; this even works in a chroot 
environment.
+  export servernum=99
+  while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do 
servernum=$((servernum+1)); done
+
+  LC_CTYPE=en_US.UTF-8 xvfb-run -a -n "$servernum" make EXTRA_CFLAGS="$CFLAGS"
 }
 
 check() {
@@ -72,8 +81,13 @@
   # test_gdb is expected to fail with LTO
 
   cd Python-${pkgver}
+
+  # Obtain next free server number for xvfb-run; this even works in a chroot 
environment.
+  export servernum=99
+  while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do 
servernum=$((servernum+1)); done
+
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
-  LC_CTYPE=en_US.UTF-8 xvfb-run \
+  LC_CTYPE=en_US.UTF-8 xvfb-run -a -n "$servernum" \
 "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb
 }
 

Added: test_socket_aead_kernel49.patch
===
--- test_socket_aead_kernel49.patch (rev 0)
+++ test_socket_aead_kernel49.patch 2017-02-28 18:35:18 UTC (rev 289730)
@@ -0,0 +1,61 @@
+Index: Python-3.6.0/Lib/test/test_socket.py
+===
+--- Python-3.6.0.orig/Lib/test/test_socket.py
 Python-3.6.0/Lib/test/test_socket.py
+@@ -5456,7 +5456,7 @@ class LinuxKernelCryptoAPI(unittest.Test
+ self.assertEqual(len(dec), msglen * multiplier)
+ self.assertEqual(dec, msg * multiplier)
+ 
+-@support.requires_linux_version(4, 3)  # see test_aes_cbc
++@support.requires_linux_version(4, 9)  # see issue29324
+ def test_aead_aes_gcm(self):
+ key = bytes.fromhex('c939cc13397c1d37de6ae0e1cb7c423c')
+ iv = bytes.fromhex('b3d8cc017cbb89b39e0f67e2')
+@@ -5479,8 +5479,7 @@ class LinuxKernelCryptoAPI(unittest.Test
+ op.sendmsg_afalg(op=socket.ALG_OP_ENCRYPT, iv=iv,
+  assoclen=assoclen, flags=socket.MSG_MORE)
+ op.sendall(assoc, socket.MSG_MORE)
+-op.sendall(plain, socket.MSG_MORE)
+-op.sendall(b'\x00' * taglen)
++op.sendall(plain)
+ res = op.recv(assoclen + len(plain) + taglen)
+ self.assertEqual(expected_ct, res[assoclen:-taglen])
+ self.assertEqual(expected_tag, res[-taglen:])
+@@ -5488,7 +5487,7 @@ class LinuxKernelCryptoAPI(unittest.Test
+ # now with msg
+ op, _ = algo.accept()
+ with op:
+-msg = assoc + plain + b'\x00' * taglen
++msg = assoc + plain
+ op.sendmsg_afalg([msg], op=socket.ALG_OP_ENCRYPT, iv=iv,
+  assoclen=assoclen)
+ res = op.recv(assoclen + len(plain) + taglen)
+@@ -5499,7 +5498,7 @@ class LinuxKernelCryptoAPI(unittest.Test
+ pack_uint32 = struct.Struct('I').pack
+ op, _ = algo.accept()
+ with op:
+-msg = assoc + plain + b'\x00' * taglen
++msg = assoc + plain
+ op.sendmsg(
+ [msg],
+   

[arch-commits] Commit in python/trunk (PKGBUILD)

2017-01-16 Thread Sven-Hendrik Haase
Date: Monday, January 16, 2017 @ 12:41:43
  Author: svenstaro
Revision: 286730

upgpkg: python 3.6.0-2

rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-01-16 11:48:38 UTC (rev 286729)
+++ PKGBUILD2017-01-16 12:41:43 UTC (rev 286730)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.6.0
-pkgrel=1
+pkgrel=2
 _pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2016-12-24 Thread Felix Yan
Date: Saturday, December 24, 2016 @ 08:57:29
  Author: felixonmars
Revision: 284550

upgpkg: python 3.6.0-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   45 +
 1 file changed, 17 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-24 08:49:23 UTC (rev 284549)
+++ PKGBUILD2016-12-24 08:57:29 UTC (rev 284550)
@@ -6,16 +6,15 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.5.2
-pkgrel=3
-_pybasever=3.5
+pkgver=3.6.0
+pkgrel=1
+_pybasever=3.6
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
-checkdepends=('gdb' 'xorg-server-xvfb')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
 optdepends=('python-setuptools'
 'python-pip'
 'sqlite'
@@ -22,15 +21,14 @@
 'mpdecimal: for decimal'
 'xz: for lzma'
 'tk: for tkinter')
-options=('!makeflags')
 provides=('python3')
 replaces=('python3')
 
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch)
-sha1sums=('4843aabacec5bc0cdd3e1f778faa926e532794d2'
+sha1sums=('18ebf7d726782967d967dc00e3aa08b334fbdd5c'
   'SKIP'
   'c22b24324b8e53326702de439c401d97927ee3f2')
-validpgpkeys=('97FC712E4C024BBEA48A61ED3A5CA953F73C700D')  # Larry Hastings 

+validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
 
 prepare() {
   cd Python-${pkgver}
@@ -57,6 +55,8 @@
   --enable-shared \
   --with-threads \
   --with-computed-gotos \
+  --enable-optimizations \
+  --with-lto \
   --enable-ipv6 \
   --with-system-expat \
   --with-dbmliborder=gdbm:ndbm \
@@ -65,30 +65,26 @@
   --enable-loadable-sqlite-extensions \
   --without-ensurepip
 
-  make EXTRA_CFLAGS="$CFLAGS"
+  LC_CTYPE=en_US.UTF-8 xvfb-run make EXTRA_CFLAGS="$CFLAGS"
 }
 
 check() {
-  # Failures:
-  # test_distutils: because of our EXTRA_CFLAGS
-  # test_socket
+  # test_gdb is expected to fail with LTO
 
-  # Hacks:
-  # test_tk: xvfb-run
-  # test_unicode_file: LC_CTYPE=en_US.utf-8
-  # test_gdb: SHELL=/bin/sh
-
   cd Python-${pkgver}
-  SHELL=/bin/sh \
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
-  LC_CTYPE=en_US.utf-8 xvfb-run \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall || warning 
"Expected failure"
+  LC_CTYPE=en_US.UTF-8 xvfb-run \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb
 }
 
 package() {
   cd Python-${pkgver}
-  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install maninstall
 
+  # Hack to avoid building again
+  sed -i 's/^all:.*$/all: build_all/' Makefile
+
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install
+
   # Why are these not done by default...
   ln -s python3   "${pkgdir}"/usr/bin/python
   ln -s python3-config"${pkgdir}"/usr/bin/python-config
@@ -96,18 +92,11 @@
   ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
   ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
 
-  # Fix FS#22552
-  ln -sf ../../libpython${_pybasever}m.so \
-
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
-
   # some useful "stuff" FS#46146
   install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
   install -m755 Tools/i18n/{msgfmt,pygettext}.py 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/i18n/
   install -m755 Tools/scripts/{README,*py} 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/scripts/
 
-  # Clean-up reference to build directory
-  sed -i "s|$srcdir/Python-${pkgver}:||" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile"
-
   # License
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }


[arch-commits] Commit in python/trunk (PKGBUILD)

2016-11-07 Thread Bartłomiej Piotrowski
Date: Monday, November 7, 2016 @ 10:50:13
  Author: bpiotrowski
Revision: 280024

readline 7.0 rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-11-07 10:16:41 UTC (rev 280023)
+++ PKGBUILD2016-11-07 10:50:13 UTC (rev 280024)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.5.2
-pkgrel=2
+pkgrel=3
 _pybasever=3.5
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2016-11-07 Thread Bartłomiej Piotrowski
Date: Monday, November 7, 2016 @ 10:08:34
  Author: bpiotrowski
Revision: 280020

readline 7.0 rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-11-07 10:07:04 UTC (rev 280019)
+++ PKGBUILD2016-11-07 10:08:34 UTC (rev 280020)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.5.2
-pkgrel=1
+pkgrel=2
 _pybasever=3.5
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD)

2016-07-03 Thread Felix Yan
Date: Monday, July 4, 2016 @ 02:10:36
  Author: felixonmars
Revision: 270923

use https source and enable pgp check (FS#49929)

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-07-04 01:41:42 UTC (rev 270922)
+++ PKGBUILD2016-07-04 02:10:36 UTC (rev 270923)
@@ -25,10 +25,12 @@
 options=('!makeflags')
 provides=('python3')
 replaces=('python3')
-source=("http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz";
+source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
 dont-make-libpython-readonly.patch)
 sha1sums=('4843aabacec5bc0cdd3e1f778faa926e532794d2'
+  'SKIP'
   'c22b24324b8e53326702de439c401d97927ee3f2')
+validpgpkeys=('97FC712E4C024BBEA48A61ED3A5CA953F73C700D')  # Larry Hastings 

 
 prepare() {
   cd Python-${pkgver}


[arch-commits] Commit in python/trunk (PKGBUILD)

2016-06-28 Thread Felix Yan
Date: Tuesday, June 28, 2016 @ 09:05:39
  Author: felixonmars
Revision: 270754

upgpkg: python 3.5.2-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-06-28 08:45:16 UTC (rev 270753)
+++ PKGBUILD2016-06-28 09:05:39 UTC (rev 270754)
@@ -6,8 +6,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.5.1
-pkgrel=2
+pkgver=3.5.2
+pkgrel=1
 _pybasever=3.5
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -27,7 +27,7 @@
 replaces=('python3')
 
source=("http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz";
 dont-make-libpython-readonly.patch)
-sha1sums=('0186da436db76776196612b98bb9c2f76acfe90e'
+sha1sums=('4843aabacec5bc0cdd3e1f778faa926e532794d2'
   'c22b24324b8e53326702de439c401d97927ee3f2')
 
 prepare() {
@@ -68,10 +68,8 @@
 
 check() {
   # Failures:
-  # test_pathlib & test_posixpath: https://bugs.python.org/issue24950
-  # test_gdb
   # test_distutils: because of our EXTRA_CFLAGS
-  # test_nntplib: downloading external files and failed
+  # test_socket
 
   # Hacks:
   # test_tk: xvfb-run


[arch-commits] Commit in python/trunk (PKGBUILD)

2016-03-03 Thread Evangelos Foutras
Date: Thursday, March 3, 2016 @ 10:45:38
  Author: foutrelis
Revision: 260598

OpenSSL 1.0.2g rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-03-03 09:44:29 UTC (rev 260597)
+++ PKGBUILD2016-03-03 09:45:38 UTC (rev 260598)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.5.1
-pkgrel=1
+pkgrel=2
 _pybasever=3.5
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD PKGBUILD.3.5 issue25150.patch)

2015-09-20 Thread Felix Yan
Date: Sunday, September 20, 2015 @ 14:49:06
  Author: fyan
Revision: 247006

upgpkg: python 3.5.0-2

add a patch for compatible with OpenMP

Added:
  python/trunk/issue25150.patch
Modified:
  python/trunk/PKGBUILD
Deleted:
  python/trunk/PKGBUILD.3.5

--+
 PKGBUILD |   11 --
 PKGBUILD.3.5 |   93 -
 issue25150.patch |   78 
 3 files changed, 86 insertions(+), 96 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-09-20 11:57:08 UTC (rev 247005)
+++ PKGBUILD2015-09-20 12:49:06 UTC (rev 247006)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.5.0
-pkgrel=1
+pkgrel=2
 _pybasever=3.5
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -27,10 +27,12 @@
 replaces=('python3')
 
source=("http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz";
 test_gdb-version-fix.patch
-dont-make-libpython-readonly.patch)
+dont-make-libpython-readonly.patch
+issue25150.patch)
 sha1sums=('871a06df9ab70984b7398ac53047fe125c757a70'
   'ab86515aff465385675e2e6e593f09596e0a8db0'
-  'c22b24324b8e53326702de439c401d97927ee3f2')
+  'c22b24324b8e53326702de439c401d97927ee3f2'
+  'bd068695d22931320069200f240c425096bb5011')
 
 prepare() {
   cd Python-${pkgver}
@@ -41,6 +43,9 @@
   # FS#45809
   patch -p1 -i ../dont-make-libpython-readonly.patch
 
+  # https://bugs.python.org/issue25150
+  patch -p1 -i ../issue25150.patch
+
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 

Deleted: PKGBUILD.3.5
===
--- PKGBUILD.3.52015-09-20 11:57:08 UTC (rev 247005)
+++ PKGBUILD.3.52015-09-20 12:49:06 UTC (rev 247006)
@@ -1,93 +0,0 @@
-# $Id: PKGBUILD 234956 2015-03-26 07:56:56Z fyan $
-# Maintainer: Angel Velasquez 
-# Maintainer: Felix Yan 
-# Contributor: Stéphane Gaudreault 
-# Contributor: Allan McRae 
-# Contributor: Jason Chu 
-
-pkgname=python
-pkgver=3.5.0rc3
-pkgrel=1
-_pybasever=3.4
-pkgdesc="Next generation of the python high-level scripting language"
-arch=('i686' 'x86_64')
-license=('custom')
-url="http://www.python.org/";
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 
'hardening-wrapper')
-checkdepends=('gdb' 'xorg-server-xvfb')
-optdepends=('python-setuptools'
-'python-pip'
-'sqlite'
-'mpdecimal: for decimal'
-'xz: for lzma'
-'tk: for tkinter')
-options=('!makeflags')
-provides=('python3')
-replaces=('python3')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('d4f5a75142bd9290cd7603db5f26fa62a25ef273')
-
-prepare() {
-  cd Python-${pkgver}
-
-  # FS#23997
-  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
-
-  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
-  # rather than copies shipped in the tarball
-  rm -r Modules/expat
-  rm -r Modules/zlib
-  rm -r Modules/_ctypes/{darwin,libffi}*
-  rm -r Modules/_decimal/libmpdec
-}
-
-build() {
-  cd Python-${pkgver}
-
-  # Disable bundled pip & setuptools
-  ./configure --prefix=/usr \
-  --enable-shared \
-  --with-threads \
-  --with-computed-gotos \
-  --enable-ipv6 \
-  --with-system-expat \
-  --with-dbmliborder=gdbm:ndbm \
-  --with-system-ffi \
-  --with-system-libmpdec \
-  --enable-loadable-sqlite-extensions \
-  --without-ensurepip
-
-  make
-}
-
-check() {
-  # test_pathlib/test_posixpath: http://bugs.python.org/issue24950
-
-  cd Python-${pkgver}
-  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
-  TERM=screen HOME="$srcdir" xvfb-run \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall
-}
-
-package() {
-  cd Python-${pkgver}
-  make DESTDIR="${pkgdir}" install maninstall
-
-  # Why are these not done by default...
-  ln -s python3   "${pkgdir}"/usr/bin/python
-  ln -s python3-config"${pkgdir}"/usr/bin/python-config
-  ln -s idle3 "${pkgdir}"/usr/bin/idle
-  ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
-  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
-
-  # Fix FS#22552
-  ln -sf ../../libpython${_pybasever}m.so \
-
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
-
-  # Clean-up reference to build directory
-  sed -i "s|$srcdir/Python-${pkgver}:||" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile"
-
-  # License
-  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Added: issue25150.patch

[arch-commits] Commit in python/trunk (PKGBUILD dont-make-libpython-readonly.patch)

2015-09-15 Thread Felix Yan
Date: Tuesday, September 15, 2015 @ 15:51:23
  Author: fyan
Revision: 246367

add patch for FS#45809 and make their build system respect our CFLAGS

Added:
  python/trunk/dont-make-libpython-readonly.patch
Modified:
  python/trunk/PKGBUILD

+
 PKGBUILD   |   15 ++-
 dont-make-libpython-readonly.patch |   13 +
 2 files changed, 23 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-09-15 12:36:32 UTC (rev 246366)
+++ PKGBUILD2015-09-15 13:51:23 UTC (rev 246367)
@@ -14,7 +14,7 @@
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 
'hardening-wrapper')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
 checkdepends=('gdb' 'xorg-server-xvfb')
 optdepends=('python-setuptools'
 'python-pip'
@@ -26,9 +26,11 @@
 provides=('python3')
 replaces=('python3')
 
source=("http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz";
-test_gdb-version-fix.patch)
+test_gdb-version-fix.patch
+dont-make-libpython-readonly.patch)
 sha1sums=('871a06df9ab70984b7398ac53047fe125c757a70'
-  'ab86515aff465385675e2e6e593f09596e0a8db0')
+  'ab86515aff465385675e2e6e593f09596e0a8db0'
+  'c22b24324b8e53326702de439c401d97927ee3f2')
 
 prepare() {
   cd Python-${pkgver}
@@ -36,6 +38,9 @@
   # https://bugs.python.org/issue25096
   patch -p1 -i ../test_gdb-version-fix.patch
 
+  # FS#45809
+  patch -p1 -i ../dont-make-libpython-readonly.patch
+
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
@@ -63,7 +68,7 @@
   --enable-loadable-sqlite-extensions \
   --without-ensurepip
 
-  make
+  make EXTRA_CFLAGS="$CFLAGS"
 }
 
 check() {
@@ -82,7 +87,7 @@
 
 package() {
   cd Python-${pkgver}
-  make DESTDIR="${pkgdir}" install maninstall
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install maninstall
 
   # Why are these not done by default...
   ln -s python3   "${pkgdir}"/usr/bin/python

Added: dont-make-libpython-readonly.patch
===
--- dont-make-libpython-readonly.patch  (rev 0)
+++ dont-make-libpython-readonly.patch  2015-09-15 13:51:23 UTC (rev 246367)
@@ -0,0 +1,13 @@
+diff --git a/Makefile.pre.in b/Makefile.pre.in
+index ce2c0aa..7d6dcf7 100644
+--- a/Makefile.pre.in
 b/Makefile.pre.in
+@@ -60,7 +60,7 @@ INSTALL_DATA=@INSTALL_DATA@
+ # Shared libraries must be installed with executable mode on some systems;
+ # rather than figuring out exactly which, we always give them executable mode.
+ # Also, making them read-only seems to be a good idea...
+-INSTALL_SHARED= ${INSTALL} -m 555
++INSTALL_SHARED= ${INSTALL} -m 755
+ 
+ MKDIR_P=  @MKDIR_P@
+ 


[arch-commits] Commit in python/trunk (PKGBUILD.3.5)

2015-09-09 Thread Felix Yan
Date: Wednesday, September 9, 2015 @ 15:59:25
  Author: fyan
Revision: 245624

3.5.0rc3

Modified:
  python/trunk/PKGBUILD.3.5

--+
 PKGBUILD.3.5 |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD.3.5
===
--- PKGBUILD.3.52015-09-09 13:00:05 UTC (rev 245623)
+++ PKGBUILD.3.52015-09-09 13:59:25 UTC (rev 245624)
@@ -6,7 +6,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.5.0rc2
+pkgver=3.5.0rc3
 pkgrel=1
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
@@ -26,7 +26,7 @@
 provides=('python3')
 replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('101e5c4d25a94ec0c92509d4b6c83ad8e496ae4d')
+sha1sums=('d4f5a75142bd9290cd7603db5f26fa62a25ef273')
 
 prepare() {
   cd Python-${pkgver}


[arch-commits] Commit in python/trunk (PKGBUILD)

2015-09-07 Thread Evangelos Foutras
Date: Monday, September 7, 2015 @ 15:27:35
  Author: foutrelis
Revision: 245452

ncurses 6.0 rebuild.

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-09-07 12:38:38 UTC (rev 245451)
+++ PKGBUILD2015-09-07 13:27:35 UTC (rev 245452)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.4.3
-pkgrel=2
+pkgrel=3
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')


[arch-commits] Commit in python/trunk (PKGBUILD increase-dh-key-size.patch)

2015-09-07 Thread Evangelos Foutras
Date: Monday, September 7, 2015 @ 12:44:58
  Author: foutrelis
Revision: 245450

Add upstream patch to increase DH key size in tests

This fixes a failure in test_ssl.

Added:
  python/trunk/increase-dh-key-size.patch
Modified:
  python/trunk/PKGBUILD

+
 PKGBUILD   |9 ++-
 increase-dh-key-size.patch |   49 +++
 2 files changed, 56 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-09-07 10:31:10 UTC (rev 245449)
+++ PKGBUILD2015-09-07 10:44:58 UTC (rev 245450)
@@ -25,12 +25,17 @@
 options=('!makeflags')
 provides=('python3')
 replaces=('python3')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('7ca5cd664598bea96eec105aa6453223bb6b4456')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
+increase-dh-key-size.patch)
+sha1sums=('7ca5cd664598bea96eec105aa6453223bb6b4456'
+  '924393ee68a39ba4931a49045895db8786b5e178')
 
 prepare() {
   cd Python-${pkgver}
 
+  # http://bugs.python.org/issue23844
+  patch -Np1 -i ../increase-dh-key-size.patch
+
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 

Added: increase-dh-key-size.patch
===
--- increase-dh-key-size.patch  (rev 0)
+++ increase-dh-key-size.patch  2015-09-07 10:44:58 UTC (rev 245450)
@@ -0,0 +1,49 @@
+
+# HG changeset patch
+# User Benjamin Peterson 
+# Date 1427947446 14400
+# Node ID 1ad7c0253abe1252128d61c3d0127d22144cb354
+# Parent  47451f6e7e7528a6647dbdc435e9a9f5c13c0080
+replace 512 bit dh key with a 2014 bit one (closes #23844)
+
+Patch by Cédric Krier.
+
+diff --git a/Lib/test/dh1024.pem b/Lib/test/dh1024.pem
+new file mode 100644
+--- /dev/null
 b/Lib/test/dh1024.pem
+@@ -0,0 +1,7 @@
++-BEGIN DH PARAMETERS-
++MIGHAoGBAIbzw1s9CT8SV5yv6L7esdAdZYZjPi3qWFs61CYTFFQnf2s/d09NYaJt
++rrvJhIzWavqnue71qXCf83/J3nz3FEwUU/L0mGyheVbsSHiI64wUo3u50wK5Igo0
++RNs/LD0irs7m0icZ//hijafTU+JOBiuA8zMI+oZfU7BGuc9XrUprAgEC
++-END DH PARAMETERS-
++
++Generated with: openssl dhparam -out dh1024.pem  1024
+diff --git a/Lib/test/dh512.pem b/Lib/test/dh512.pem
+deleted file mode 100644
+--- a/Lib/test/dh512.pem
 /dev/null
+@@ -1,9 +0,0 @@
+--BEGIN DH PARAMETERS-
+-MEYCQQD1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWak
+-XUGfnHy9iUsiGSa6q6Jew1XpKgVfAgEC
+--END DH PARAMETERS-
+-
+-These are the 512 bit DH parameters from "Assigned Number for SKIP Protocols"
+-(http://www.skip-vpn.org/spec/numbers.html).
+-See there for how they were generated.
+-Note that g is not a generator, but this is not a problem since p is a safe 
prime.
+diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
+--- a/Lib/test/test_ssl.py
 b/Lib/test/test_ssl.py
+@@ -64,7 +64,7 @@ BADKEY = data_file("badkey.pem")
+ NOKIACERT = data_file("nokia.pem")
+ NULLBYTECERT = data_file("nullbytecert.pem")
+ 
+-DHFILE = data_file("dh512.pem")
++DHFILE = data_file("dh1024.pem")
+ BYTES_DHFILE = os.fsencode(DHFILE)
+ 
+ 
+


[arch-commits] Commit in python/trunk (PKGBUILD.3.5)

2015-08-27 Thread Felix Yan
Date: Friday, August 28, 2015 @ 05:43:58
  Author: fyan
Revision: 244949

prepare PKGBUILD for 3.5.0

Added:
  python/trunk/PKGBUILD.3.5

--+
 PKGBUILD.3.5 |   93 +
 1 file changed, 93 insertions(+)

Added: PKGBUILD.3.5
===
--- PKGBUILD.3.5(rev 0)
+++ PKGBUILD.3.52015-08-28 03:43:58 UTC (rev 244949)
@@ -0,0 +1,93 @@
+# $Id: PKGBUILD 234956 2015-03-26 07:56:56Z fyan $
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Stéphane Gaudreault 
+# Contributor: Allan McRae 
+# Contributor: Jason Chu 
+
+pkgname=python
+pkgver=3.5.0rc2
+pkgrel=1
+_pybasever=3.4
+pkgdesc="Next generation of the python high-level scripting language"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.python.org/";
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 
'hardening-wrapper')
+checkdepends=('gdb' 'xorg-server-xvfb')
+optdepends=('python-setuptools'
+'python-pip'
+'sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
+options=('!makeflags')
+provides=('python3')
+replaces=('python3')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('101e5c4d25a94ec0c92509d4b6c83ad8e496ae4d')
+
+prepare() {
+  cd Python-${pkgver}
+
+  # FS#23997
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+  rm -r Modules/_decimal/libmpdec
+}
+
+build() {
+  cd Python-${pkgver}
+
+  # Disable bundled pip & setuptools
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi \
+  --with-system-libmpdec \
+  --enable-loadable-sqlite-extensions \
+  --without-ensurepip
+
+  make
+}
+
+check() {
+  # test_pathlib/test_posixpath: http://bugs.python.org/issue24950
+
+  cd Python-${pkgver}
+  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+  TERM=screen HOME="$srcdir" xvfb-run \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall
+}
+
+package() {
+  cd Python-${pkgver}
+  make DESTDIR="${pkgdir}" install maninstall
+
+  # Why are these not done by default...
+  ln -s python3   "${pkgdir}"/usr/bin/python
+  ln -s python3-config"${pkgdir}"/usr/bin/python-config
+  ln -s idle3 "${pkgdir}"/usr/bin/idle
+  ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
+
+  # Clean-up reference to build directory
+  sed -i "s|$srcdir/Python-${pkgver}:||" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile"
+
+  # License
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}


[arch-commits] Commit in python/trunk (PKGBUILD)

2015-03-26 Thread Felix Yan
Date: Thursday, March 26, 2015 @ 08:56:56
  Author: fyan
Revision: 234956

upgpkg: python 3.4.3-2

disable valgrind.

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-03-26 07:54:29 UTC (rev 234955)
+++ PKGBUILD2015-03-26 07:56:56 UTC (rev 234956)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.4.3
-pkgrel=1
+pkgrel=2
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -51,7 +51,6 @@
   --with-threads \
   --with-computed-gotos \
   --enable-ipv6 \
-  --with-valgrind \
   --with-system-expat \
   --with-dbmliborder=gdbm:ndbm \
   --with-system-ffi \


[arch-commits] Commit in python/trunk (PKGBUILD)

2015-02-26 Thread Felix Yan
Date: Thursday, February 26, 2015 @ 18:10:43
  Author: fyan
Revision: 232003

upgpkg: python 3.4.3-1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-26 15:21:26 UTC (rev 232002)
+++ PKGBUILD2015-02-26 17:10:43 UTC (rev 232003)
@@ -6,8 +6,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.4.2
-pkgrel=2
+pkgver=3.4.3
+pkgrel=1
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -26,7 +26,7 @@
 provides=('python3')
 replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('0727d8a8498733baabe6f51632b9bab0cbaa9ada')
+sha1sums=('7ca5cd664598bea96eec105aa6453223bb6b4456')
 
 prepare() {
   cd Python-${pkgver}
@@ -64,13 +64,11 @@
 
 check() {
   # test_site: http://bugs.python.org/issue21535
-  # test_urllib2_localnet: domain "blackhole.snakebite.net" not exist ?!
-  # test_socket: domain "испытание.python.org" could not be resolved.
 
   cd Python-${pkgver}
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   TERM=screen \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x 
test_posixpath test_uuid test_site test_urllib2_localnet test_socket test_gdb
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x test_site 
test_posixpath test_urllib2_localnet
 }
 
 package() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2015-01-11 Thread Felix Yan
Date: Monday, January 12, 2015 @ 05:23:48
  Author: fyan
Revision: 228932

upgpkg: python 3.4.2-2

enable loadable sqlite extensions (FS#43372)

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-01-12 04:23:15 UTC (rev 228931)
+++ PKGBUILD2015-01-12 04:23:48 UTC (rev 228932)
@@ -7,7 +7,7 @@
 
 pkgname=python
 pkgver=3.4.2
-pkgrel=1
+pkgrel=2
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -14,7 +14,7 @@
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 
'hardening-wrapper')
 checkdepends=('gdb')
 optdepends=('python-setuptools'
 'python-pip'
@@ -56,6 +56,7 @@
   --with-dbmliborder=gdbm:ndbm \
   --with-system-ffi \
   --with-system-libmpdec \
+  --enable-loadable-sqlite-extensions \
   --without-ensurepip
 
   make
@@ -64,11 +65,12 @@
 check() {
   # test_site: http://bugs.python.org/issue21535
   # test_urllib2_localnet: domain "blackhole.snakebite.net" not exist ?!
+  # test_socket: domain "испытание.python.org" could not be resolved.
 
   cd Python-${pkgver}
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   TERM=screen \
-"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x 
test_posixpath test_uuid test_site test_urllib2_localnet test_gdb
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x 
test_posixpath test_uuid test_site test_urllib2_localnet test_socket test_gdb
 }
 
 package() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2014-10-08 Thread Felix Yan
Date: Wednesday, October 8, 2014 @ 17:05:46
  Author: fyan
Revision: 224085

upgpkg: python 3.4.2-1

upstream new release

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-10-08 14:26:36 UTC (rev 224084)
+++ PKGBUILD2014-10-08 15:05:46 UTC (rev 224085)
@@ -1,12 +1,12 @@
 # $Id$
 # Maintainer: Angel Velasquez 
-# Maintainer: Felix Yan 
+# Maintainer: Felix Yan 
 # Contributor: Stéphane Gaudreault 
 # Contributor: Allan McRae 
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.4.1
+pkgver=3.4.2
 pkgrel=1
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
@@ -26,7 +26,7 @@
 provides=('python3')
 replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('143e098efe7ee7bec8a4904ec4b322f28a067a03')
+sha1sums=('0727d8a8498733baabe6f51632b9bab0cbaa9ada')
 
 prepare() {
   cd Python-${pkgver}
@@ -68,7 +68,7 @@
   cd Python-${pkgver}
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
   TERM=screen \
- "${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x 
test_posixpath test_uuid test_site test_urllib2_localnet
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x 
test_posixpath test_uuid test_site test_urllib2_localnet test_gdb
 }
 
 package() {


[arch-commits] Commit in python/trunk (PKGBUILD)

2014-05-19 Thread Felix Yan
Date: Monday, May 19, 2014 @ 19:56:53
  Author: fyan
Revision: 213316

upgpkg: python 3.4.1-1

- upstream new release

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   47 ---
 1 file changed, 20 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-05-19 17:54:16 UTC (rev 213315)
+++ PKGBUILD2014-05-19 17:56:53 UTC (rev 213316)
@@ -6,8 +6,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.4.0
-pkgrel=3
+pkgver=3.4.1
+pkgrel=1
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -14,7 +14,8 @@
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+checkdepends=('gdb')
 optdepends=('python-setuptools'
 'python-pip'
 'sqlite'
@@ -24,26 +25,15 @@
 options=('!makeflags')
 provides=('python3')
 replaces=('python3')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
-
python3.4-test_sqlite.patch::http://hg.python.org/cpython/raw-rev/4d626a9df062
-issue21207.patch::http://hg.python.org/cpython/raw-rev/a66524ce9551)
-sha1sums=('f54d7cf6af5dbd9bddbe31cf4772f39711381dbe'
-  'b13a0b728d8e1fe1d81dea501b064cb1032f183b'
-  '67486ae413698d6bd3c32de10a9a1e885d0097b8')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('143e098efe7ee7bec8a4904ec4b322f28a067a03')
 
 prepare() {
-  cd "${srcdir}/Python-${pkgver}"
+  cd Python-${pkgver}
 
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
-  # http://bugs.python.org/issue20901
-  patch -p1 -i "$srcdir/python3.4-test_sqlite.patch"
-
-  # http://bugs.python.org/issue21207 FS#40108
-  sed -i "62,74d" "$srcdir/issue21207.patch" # Remove conflicting NEWS part
-  patch -p1 -i "$srcdir/issue21207.patch"
-
   # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
@@ -53,7 +43,7 @@
 }
 
 build() {
-  cd "${srcdir}/Python-${pkgver}"
+  cd Python-${pkgver}
 
   # Disable bundled pip & setuptools
   ./configure --prefix=/usr \
@@ -72,22 +62,25 @@
 }
 
 check() {
-  cd "${srcdir}/Python-${pkgver}"
+  # test_site: http://bugs.python.org/issue21535
+  # test_urllib2_localnet: domain "blackhole.snakebite.net" not exist ?!
+
+  cd Python-${pkgver}
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
- "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_posixpath 
test_logging test_uuid
+  TERM=screen \
+ "${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x 
test_posixpath test_uuid test_site test_urllib2_localnet
 }
 
 package() {
-  cd "${srcdir}/Python-${pkgver}"
+  cd Python-${pkgver}
   make DESTDIR="${pkgdir}" install maninstall
 
   # Why are these not done by default...
-  ln -sf python3   "${pkgdir}"/usr/bin/python
-  ln -sf python3-config"${pkgdir}"/usr/bin/python-config
-  ln -sf idle3 "${pkgdir}"/usr/bin/idle
-  ln -sf pydoc3"${pkgdir}"/usr/bin/pydoc
-  ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python3.1
-  ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
+  ln -s python3   "${pkgdir}"/usr/bin/python
+  ln -s python3-config"${pkgdir}"/usr/bin/python-config
+  ln -s idle3 "${pkgdir}"/usr/bin/idle
+  ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
 
   # Fix FS#22552
   ln -sf ../../libpython${_pybasever}m.so \



[arch-commits] Commit in python/trunk (PKGBUILD)

2014-04-27 Thread Felix Yan
Date: Sunday, April 27, 2014 @ 18:12:06
  Author: fyan
Revision: 211813

upgpkg: python 3.4.0-3

- add upstream fix for FS#40108

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   15 +++
 1 file changed, 11 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-04-27 13:51:04 UTC (rev 211812)
+++ PKGBUILD2014-04-27 16:12:06 UTC (rev 211813)
@@ -1,5 +1,6 @@
 # $Id$
-# Maintainer: Angel Velasquez  
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
 # Contributor: Stéphane Gaudreault 
 # Contributor: Allan McRae 
 # Contributor: Jason Chu 
@@ -6,7 +7,7 @@
 
 pkgname=python
 pkgver=3.4.0
-pkgrel=2
+pkgrel=3
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -24,9 +25,11 @@
 provides=('python3')
 replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
-
python3.4-test_sqlite.patch::http://hg.python.org/cpython/raw-rev/4d626a9df062)
+
python3.4-test_sqlite.patch::http://hg.python.org/cpython/raw-rev/4d626a9df062
+issue21207.patch::http://hg.python.org/cpython/raw-rev/a66524ce9551)
 sha1sums=('f54d7cf6af5dbd9bddbe31cf4772f39711381dbe'
-  'b13a0b728d8e1fe1d81dea501b064cb1032f183b')
+  'b13a0b728d8e1fe1d81dea501b064cb1032f183b'
+  '67486ae413698d6bd3c32de10a9a1e885d0097b8')
 
 prepare() {
   cd "${srcdir}/Python-${pkgver}"
@@ -37,6 +40,10 @@
   # http://bugs.python.org/issue20901
   patch -p1 -i "$srcdir/python3.4-test_sqlite.patch"
 
+  # http://bugs.python.org/issue21207 FS#40108
+  sed -i "62,74d" "$srcdir/issue21207.patch" # Remove conflicting NEWS part
+  patch -p1 -i "$srcdir/issue21207.patch"
+
   # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
   # rather than copies shipped in the tarball
   rm -r Modules/expat



[arch-commits] Commit in python/trunk (PKGBUILD)

2014-03-17 Thread Felix Yan
Date: Monday, March 17, 2014 @ 16:39:39
  Author: fyan
Revision: 208073

upgpkg: python 3.4.0-2

- add upstream patch to pass test, enabled test again

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   13 -
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-17 15:10:52 UTC (rev 208072)
+++ PKGBUILD2014-03-17 15:39:39 UTC (rev 208073)
@@ -6,7 +6,7 @@
 
 pkgname=python
 pkgver=3.4.0
-pkgrel=1
+pkgrel=2
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -23,8 +23,10 @@
 options=('!makeflags')
 provides=('python3')
 replaces=('python3')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('f54d7cf6af5dbd9bddbe31cf4772f39711381dbe')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
+
python3.4-test_sqlite.patch::http://hg.python.org/cpython/raw-rev/4d626a9df062)
+sha1sums=('f54d7cf6af5dbd9bddbe31cf4772f39711381dbe'
+  'b13a0b728d8e1fe1d81dea501b064cb1032f183b')
 
 prepare() {
   cd "${srcdir}/Python-${pkgver}"
@@ -32,6 +34,9 @@
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
+  # http://bugs.python.org/issue20901
+  patch -p1 -i "$srcdir/python3.4-test_sqlite.patch"
+
   # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
@@ -59,13 +64,11 @@
   make
 }
 
-<

[arch-commits] Commit in python/trunk (PKGBUILD PKGBUILD.3.4)

2014-03-16 Thread Felix Yan
Date: Monday, March 17, 2014 @ 04:38:23
  Author: fyan
Revision: 207996

upgpkg: python 3.4.0-1

- upstream new release
- disable check (there is an error)

Modified:
  python/trunk/PKGBUILD
Deleted:
  python/trunk/PKGBUILD.3.4

--+
 PKGBUILD |   21 -
 PKGBUILD.3.4 |   89 -
 2 files changed, 13 insertions(+), 97 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-17 03:37:58 UTC (rev 207995)
+++ PKGBUILD2014-03-17 03:38:23 UTC (rev 207996)
@@ -1,14 +1,13 @@
 # $Id$
-# Maintainer: Angel Velasquez 
-# Maintainer: Felix Yan 
+# Maintainer: Angel Velasquez  
 # Contributor: Stéphane Gaudreault 
 # Contributor: Allan McRae 
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.3.5
+pkgver=3.4.0
 pkgrel=1
-_pybasever=3.3
+_pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
 license=('custom')
@@ -15,7 +14,9 @@
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
 makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
-optdepends=('sqlite'
+optdepends=('python-setuptools'
+'python-pip'
+'sqlite'
 'mpdecimal: for decimal'
 'xz: for lzma'
 'tk: for tkinter')
@@ -23,7 +24,7 @@
 provides=('python3')
 replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('6683b26dd2cfd23af852abfcf1aedf25bbd44839')
+sha1sums=('f54d7cf6af5dbd9bddbe31cf4772f39711381dbe')
 
 prepare() {
   cd "${srcdir}/Python-${pkgver}"
@@ -31,7 +32,7 @@
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
-  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
   rm -r Modules/zlib
@@ -42,6 +43,7 @@
 build() {
   cd "${srcdir}/Python-${pkgver}"
 
+  # Disable bundled pip & setuptools
   ./configure --prefix=/usr \
   --enable-shared \
   --with-threads \
@@ -51,16 +53,19 @@
   --with-system-expat \
   --with-dbmliborder=gdbm:ndbm \
   --with-system-ffi \
-  --with-system-libmpdec
+  --with-system-libmpdec \
+  --without-ensurepip
 
   make
 }
 
+< 
-# Contributor: Stéphane Gaudreault 
-# Contributor: Allan McRae 
-# Contributor: Jason Chu 
-
-pkgname=python
-pkgver=3.4.0rc3
-pkgrel=1
-_pybasever=3.4
-pkgdesc="Next generation of the python high-level scripting language"
-arch=('i686' 'x86_64')
-license=('custom')
-url="http://www.python.org/";
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
-optdepends=('python-setuptools'
-'python-pip'
-'sqlite'
-'mpdecimal: for decimal'
-'xz: for lzma'
-'tk: for tkinter')
-options=('!makeflags')
-provides=('python3')
-replaces=('python3')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('3e5893a8a3a066876acc06eb3656be2cd29ed18c')
-
-prepare() {
-  cd "${srcdir}/Python-${pkgver}"
-
-  # FS#23997
-  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
-
-  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
-  # rather than copies shipped in the tarball
-  rm -r Modules/expat
-  rm -r Modules/zlib
-  rm -r Modules/_ctypes/{darwin,libffi}*
-  rm -r Modules/_decimal/libmpdec
-}
-
-build() {
-  cd "${srcdir}/Python-${pkgver}"
-
-  # Disable bundled pip & setuptools
-  ./configure --prefix=/usr \
-  --enable-shared \
-  --with-threads \
-  --with-computed-gotos \
-  --enable-ipv6 \
-  --with-valgrind \
-  --with-system-expat \
-  --with-dbmliborder=gdbm:ndbm \
-  --with-system-ffi \
-  --with-system-libmpdec \
-  --without-ensurepip
-
-  make
-}
-
-check() {
-  cd "${srcdir}/Python-${pkgver}"
-  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
- "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_posixpath 
test_logging test_uuid
-}
-
-package() {
-  cd "${srcdir}/Python-${pkgver}"
-  make DESTDIR="${pkgdir}" install maninstall
-
-  # Why are these not done by default...
-  ln -sf python3   "${pkgdir}"/usr/bin/python
-  ln -sf python3-config"${pkgdir}"/usr/bin/python-config
-  ln -sf idle3 "${pkgdir}"/usr/bin/idle
-  ln -sf pydoc3"${pkgdir}"/usr/bin/pydoc
-  ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python3.1
-  ln -sf python${_py

[arch-commits] Commit in python/trunk (PKGBUILD.3.4)

2014-03-12 Thread Felix Yan
Date: Thursday, March 13, 2014 @ 07:30:19
  Author: fyan
Revision: 207679

3.4: update to 3.4 rc3

- fix makedepends on mpdecimal

Modified:
  python/trunk/PKGBUILD.3.4

--+
 PKGBUILD.3.4 |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD.3.4
===
--- PKGBUILD.3.42014-03-13 05:00:23 UTC (rev 207678)
+++ PKGBUILD.3.42014-03-13 06:30:19 UTC (rev 207679)
@@ -5,7 +5,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.4.0rc2
+pkgver=3.4.0rc3
 pkgrel=1
 _pybasever=3.4
 pkgdesc="Next generation of the python high-level scripting language"
@@ -13,7 +13,7 @@
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs')
+makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
 optdepends=('python-setuptools'
 'python-pip'
 'sqlite'
@@ -24,7 +24,7 @@
 provides=('python3')
 replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('f03216f4b537c284afacb1e8308a52b9a62368e9')
+sha1sums=('3e5893a8a3a066876acc06eb3656be2cd29ed18c')
 
 prepare() {
   cd "${srcdir}/Python-${pkgver}"



[arch-commits] Commit in python/trunk (PKGBUILD)

2014-03-09 Thread Felix Yan
Date: Monday, March 10, 2014 @ 06:11:02
  Author: fyan
Revision: 207465

upgpkg: python 3.3.5-1

- use system libmpdec, please test if anything break without installing 
mpdecimal, and file a bug to get the corresponding package depend on mpdecimal
- add xz and mpdecimal as optdepends

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   19 ---
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-10 03:48:02 UTC (rev 207464)
+++ PKGBUILD2014-03-10 05:11:02 UTC (rev 207465)
@@ -1,11 +1,12 @@
 # $Id$
-# Maintainer: Angel Velasquez  
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
 # Contributor: Stéphane Gaudreault 
 # Contributor: Allan McRae 
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.3.4
+pkgver=3.3.5
 pkgrel=1
 _pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
@@ -13,13 +14,16 @@
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs')
-optdepends=('tk: for tkinter' 'sqlite')
+makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+optdepends=('sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
 options=('!makeflags')
 provides=('python3')
 replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('2c9586eeb4b6e45e9ebc28372c0856c709d9a522')
+sha1sums=('6683b26dd2cfd23af852abfcf1aedf25bbd44839')
 
 prepare() {
   cd "${srcdir}/Python-${pkgver}"
@@ -32,7 +36,7 @@
   rm -r Modules/expat
   rm -r Modules/zlib
   rm -r Modules/_ctypes/{darwin,libffi}*
-
+  rm -r Modules/_decimal/libmpdec
 }
 
 build() {
@@ -46,7 +50,8 @@
   --with-valgrind \
   --with-system-expat \
   --with-dbmliborder=gdbm:ndbm \
-  --with-system-ffi
+  --with-system-ffi \
+  --with-system-libmpdec
 
   make
 }



[arch-commits] Commit in python/trunk (PKGBUILD.3.4)

2014-03-07 Thread Felix Yan
Date: Saturday, March 8, 2014 @ 07:20:24
  Author: fyan
Revision: 207161

3.4: update dependencies

- list all libs needed under lib-dynload as optdepends

Modified:
  python/trunk/PKGBUILD.3.4

--+
 PKGBUILD.3.4 |   10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD.3.4
===
--- PKGBUILD.3.42014-03-08 04:43:32 UTC (rev 207160)
+++ PKGBUILD.3.42014-03-08 06:20:24 UTC (rev 207161)
@@ -12,12 +12,14 @@
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.python.org/";
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'mpdecimal')
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
 makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs')
-optdepends=('tk: for tkinter'
-'python-setuptools'
+optdepends=('python-setuptools'
 'python-pip'
-'sqlite')
+'sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
 options=('!makeflags')
 provides=('python3')
 replaces=('python3')



[arch-commits] Commit in python/trunk (PKGBUILD.3.4)

2014-03-07 Thread Felix Yan
Date: Friday, March 7, 2014 @ 18:54:47
  Author: fyan
Revision: 207145

update 3.4 PKGBUILD, use --with-system-libmpdec and --without-ensurepip

Modified:
  python/trunk/PKGBUILD.3.4

--+
 PKGBUILD.3.4 |   24 +---
 1 file changed, 13 insertions(+), 11 deletions(-)

Modified: PKGBUILD.3.4
===
--- PKGBUILD.3.42014-03-07 17:07:29 UTC (rev 207144)
+++ PKGBUILD.3.42014-03-07 17:54:47 UTC (rev 207145)
@@ -12,14 +12,15 @@
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.python.org/";
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'mpdecimal')
 makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs')
-optdepends=('tk: for tkinter' 'sqlite')
+optdepends=('tk: for tkinter'
+'python-setuptools'
+'python-pip'
+'sqlite')
 options=('!makeflags')
-# Should we provide setuptools & pip this way, or just remove them from python 
package and
-# keep them as seperated packages, for easier upgrades?
-provides=('python3' 'python-setuptools' 'python-pip')
-replaces=('python3' 'python-setuptools' 'python-pip')
+provides=('python3')
+replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
 sha1sums=('f03216f4b537c284afacb1e8308a52b9a62368e9')
 
@@ -29,17 +30,18 @@
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
-  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
   rm -r Modules/zlib
   rm -r Modules/_ctypes/{darwin,libffi}*
-
+  rm -r Modules/_decimal/libmpdec
 }
 
 build() {
   cd "${srcdir}/Python-${pkgver}"
 
+  # Disable bundled pip & setuptools
   ./configure --prefix=/usr \
   --enable-shared \
   --with-threads \
@@ -48,7 +50,9 @@
   --with-valgrind \
   --with-system-expat \
   --with-dbmliborder=gdbm:ndbm \
-  --with-system-ffi
+  --with-system-ffi \
+  --with-system-libmpdec \
+  --without-ensurepip
 
   make
 }
@@ -68,8 +72,6 @@
   ln -sf python3-config"${pkgdir}"/usr/bin/python-config
   ln -sf idle3 "${pkgdir}"/usr/bin/idle
   ln -sf pydoc3"${pkgdir}"/usr/bin/pydoc
-  ln -sf pip3  "${pkgdir}"/usr/bin/pip
-  ln -sf easy_install-3.4  "${pkgdir}"/usr/bin/easy_install
   ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python3.1
   ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
 



[arch-commits] Commit in python/trunk (PKGBUILD.3.4)

2014-03-05 Thread Felix Yan
Date: Thursday, March 6, 2014 @ 07:22:04
  Author: fyan
Revision: 206921

prepare PKGBUILD for the coming 3.4 release

Added:
  python/trunk/PKGBUILD.3.4

--+
 PKGBUILD.3.4 |   85 +
 1 file changed, 85 insertions(+)

Added: PKGBUILD.3.4
===
--- PKGBUILD.3.4(rev 0)
+++ PKGBUILD.3.42014-03-06 06:22:04 UTC (rev 206921)
@@ -0,0 +1,85 @@
+# $Id: PKGBUILD 205852 2014-02-11 19:50:22Z angvp $
+# Maintainer: Angel Velasquez  
+# Contributor: Stéphane Gaudreault 
+# Contributor: Allan McRae 
+# Contributor: Jason Chu 
+
+pkgname=python
+pkgver=3.4.0rc2
+pkgrel=1
+_pybasever=3.4
+pkgdesc="Next generation of the python high-level scripting language"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.python.org/";
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs')
+optdepends=('tk: for tkinter' 'sqlite')
+options=('!makeflags')
+# Should we provide setuptools & pip this way, or just remove them from python 
package and
+# keep them as seperated packages, for easier upgrades?
+provides=('python3' 'python-setuptools' 'python-pip')
+replaces=('python3' 'python-setuptools' 'python-pip')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('f03216f4b537c284afacb1e8308a52b9a62368e9')
+
+prepare() {
+  cd "${srcdir}/Python-${pkgver}"
+
+  # FS#23997
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+}
+
+build() {
+  cd "${srcdir}/Python-${pkgver}"
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-valgrind \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi
+
+  make
+}
+
+check() {
+  cd "${srcdir}/Python-${pkgver}"
+  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+ "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_posixpath 
test_logging test_uuid
+}
+
+package() {
+  cd "${srcdir}/Python-${pkgver}"
+  make DESTDIR="${pkgdir}" install maninstall
+
+  # Why are these not done by default...
+  ln -sf python3   "${pkgdir}"/usr/bin/python
+  ln -sf python3-config"${pkgdir}"/usr/bin/python-config
+  ln -sf idle3 "${pkgdir}"/usr/bin/idle
+  ln -sf pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -sf pip3  "${pkgdir}"/usr/bin/pip
+  ln -sf easy_install-3.4  "${pkgdir}"/usr/bin/easy_install
+  ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python3.1
+  ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
+
+  # Clean-up reference to build directory
+  sed -i "s|$srcdir/Python-${pkgver}:||" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile"
+
+  # License
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



[arch-commits] Commit in python/trunk (PKGBUILD)

2014-02-11 Thread Ángel Velásquez
Date: Tuesday, February 11, 2014 @ 20:50:22
  Author: angvp
Revision: 205852

upgpkg: python 3.3.4-1

Version bump to 3.3.4

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-02-11 19:46:24 UTC (rev 205851)
+++ PKGBUILD2014-02-11 19:50:22 UTC (rev 205852)
@@ -5,7 +5,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.3.3
+pkgver=3.3.4
 pkgrel=1
 _pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
@@ -19,7 +19,7 @@
 provides=('python3')
 replaces=('python3')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('af4e75a34bd538c79b9871227c2e7f56569ac107')
+sha1sums=('2c9586eeb4b6e45e9ebc28372c0856c709d9a522')
 
 prepare() {
   cd "${srcdir}/Python-${pkgver}"



[arch-commits] Commit in python/trunk (PKGBUILD)

2013-06-02 Thread Tom Gundersen
Date: Sunday, June 2, 2013 @ 10:08:21
  Author: tomegun
Revision: 186975

change bluez dep

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-06-02 04:09:22 UTC (rev 186974)
+++ PKGBUILD2013-06-02 08:08:21 UTC (rev 186975)
@@ -12,7 +12,7 @@
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez')
+makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez-libs')
 optdepends=('tk: for tkinter' 'sqlite')
 provides=('python3')
 replaces=('python3')



[arch-commits] Commit in python/trunk (PKGBUILD)

2013-05-21 Thread Stéphane Gaudreault
Date: Wednesday, May 22, 2013 @ 03:10:58
  Author: stephane
Revision: 186203

fix man-page symlink

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-22 00:52:23 UTC (rev 186202)
+++ PKGBUILD2013-05-22 01:10:58 UTC (rev 186203)
@@ -60,11 +60,12 @@
   make DESTDIR="${pkgdir}" install maninstall
 
   # Why are these not done by default...
-  ln -sf python3   "${pkgdir}/usr/bin/python"
-  ln -sf python3-config"${pkgdir}/usr/bin/python-config"
-  ln -sf idle3 "${pkgdir}/usr/bin/idle"
-  ln -sf pydoc3"${pkgdir}/usr/bin/pydoc"
-  ln -sf python${_pybasever}.1 "${pkgdir}/usr/share/man/man1/python3.1"
+  ln -sf python3   "${pkgdir}"/usr/bin/python
+  ln -sf python3-config"${pkgdir}"/usr/bin/python-config
+  ln -sf idle3 "${pkgdir}"/usr/bin/idle
+  ln -sf pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python3.1
+  ln -sf python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
 
   # Fix FS#22552
   ln -sf ../../libpython${_pybasever}m.so \



[arch-commits] Commit in python/trunk (PKGBUILD python-3.3.2-CVE-2013-2099.patch)

2013-05-21 Thread Stéphane Gaudreault
Date: Tuesday, May 21, 2013 @ 18:50:15
  Author: stephane
Revision: 186171

upgpkg: python 3.3.2-1

upstream update + fix for CVE-2013-2099

Added:
  python/trunk/python-3.3.2-CVE-2013-2099.patch
Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   13 +
 python-3.3.2-CVE-2013-2099.patch |   50 +
 2 files changed, 58 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-21 16:12:01 UTC (rev 186170)
+++ PKGBUILD2013-05-21 16:50:15 UTC (rev 186171)
@@ -4,7 +4,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.3.1
+pkgver=3.3.2
 pkgrel=1
 _pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
@@ -17,8 +17,10 @@
 provides=('python3')
 replaces=('python3')
 options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('393d7302c48bc911cd7faa7fa9b5fbcb9919bddc')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
+python-3.3.2-CVE-2013-2099.patch)
+sha1sums=('87009d0c156c6e1354dfec5c98c328cae93950ad'
+  'b7a386b2e2f0811b344898500860ec31ba81ed4d')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"
@@ -32,6 +34,8 @@
   rm -r Modules/zlib
   rm -r Modules/_ctypes/{darwin,libffi}*
 
+  patch -Np1 -i ../python-3.3.2-CVE-2013-2099.patch
+
   ./configure --prefix=/usr \
   --enable-shared \
   --with-threads \
@@ -48,8 +52,7 @@
 check() {
   cd "${srcdir}/Python-${pkgver}"
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
- "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils 
test_site \
- test_urllib test_uuid test_pydoc test_logging
+ "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_posixpath 
test_logging
 }
 
 package() {

Added: python-3.3.2-CVE-2013-2099.patch
===
--- python-3.3.2-CVE-2013-2099.patch(rev 0)
+++ python-3.3.2-CVE-2013-2099.patch2013-05-21 16:50:15 UTC (rev 186171)
@@ -0,0 +1,50 @@
+
+# HG changeset patch
+# User Antoine Pitrou 
+# Date 1368892602 -7200
+# Node ID c627638753e2d25a98950585b259104a025937a9
+# Parent  9682241dc8fcb4b1aef083bd30860efa070c3d6d
+Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service 
using certificates with many wildcards (CVE-2013-2099).
+
+diff --git a/Lib/ssl.py b/Lib/ssl.py
+--- a/Lib/ssl.py
 b/Lib/ssl.py
+@@ -129,9 +129,16 @@ class CertificateError(ValueError):
+ pass
+ 
+ 
+-def _dnsname_to_pat(dn):
++def _dnsname_to_pat(dn, max_wildcards=1):
+ pats = []
+ for frag in dn.split(r'.'):
++if frag.count('*') > max_wildcards:
++# Issue #17980: avoid denials of service by refusing more
++# than one wildcard per fragment.  A survery of established
++# policy among SSL implementations showed it to be a
++# reasonable choice.
++raise CertificateError(
++"too many wildcards in certificate DNS name: " + repr(dn))
+ if frag == '*':
+ # When '*' is a fragment by itself, it matches a non-empty dotless
+ # fragment.
+diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
+--- a/Lib/test/test_ssl.py
 b/Lib/test/test_ssl.py
+@@ -349,6 +349,17 @@ class BasicSocketTests(unittest.TestCase
+ self.assertRaises(ValueError, ssl.match_hostname, None, 'example.com')
+ self.assertRaises(ValueError, ssl.match_hostname, {}, 'example.com')
+ 
++# Issue #17980: avoid denials of service by refusing more than one
++# wildcard per fragment.
++cert = {'subject': ((('commonName', 'a*b.com'),),)}
++ok(cert, 'axxb.com')
++cert = {'subject': ((('commonName', 'a*b.co*'),),)}
++ok(cert, 'axxb.com')
++cert = {'subject': ((('commonName', 'a*b*.com'),),)}
++with self.assertRaises(ssl.CertificateError) as cm:
++ssl.match_hostname(cert, 'axxbxxc.com')
++self.assertIn("too many wildcards", str(cm.exception))
++
+ def test_server_side(self):
+ # server_hostname doesn't work for server sockets
+ ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)



[arch-commits] Commit in python/trunk (PKGBUILD)

2013-04-06 Thread Stéphane Gaudreault
Date: Sunday, April 7, 2013 @ 01:26:20
  Author: stephane
Revision: 182102

upgpkg: python 3.3.1-1

upstream update

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-04-06 21:59:09 UTC (rev 182101)
+++ PKGBUILD2013-04-06 23:26:20 UTC (rev 182102)
@@ -4,8 +4,8 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.3.0
-pkgrel=3
+pkgver=3.3.1
+pkgrel=1
 _pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -18,7 +18,7 @@
 replaces=('python3')
 options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
+sha1sums=('393d7302c48bc911cd7faa7fa9b5fbcb9919bddc')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"



[arch-commits] Commit in python/trunk (PKGBUILD)

2012-12-22 Thread andyrtr
Date: Saturday, December 22, 2012 @ 15:26:27
  Author: andyrtr
Revision: 173775

upgpkg: python 3.3.0-3

rebuild for tcl/tk 8.6.0

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-12-22 20:11:34 UTC (rev 173774)
+++ PKGBUILD2012-12-22 20:26:27 UTC (rev 173775)
@@ -5,14 +5,14 @@
 
 pkgname=python
 pkgver=3.3.0
-pkgrel=2
+pkgrel=3
 _pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind' 'bluez')
+makedepends=('tk>=8.6.0' 'sqlite' 'valgrind' 'bluez')
 optdepends=('tk: for tkinter' 'sqlite')
 provides=('python3')
 replaces=('python3')



[arch-commits] Commit in python/trunk (PKGBUILD)

2012-12-12 Thread Stéphane Gaudreault
Date: Wednesday, December 12, 2012 @ 07:47:29
  Author: stephane
Revision: 173190

upgpkg: python 3.3.0-2

Add Bluetooth support

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-12-12 12:20:03 UTC (rev 173189)
+++ PKGBUILD2012-12-12 12:47:29 UTC (rev 173190)
@@ -5,14 +5,14 @@
 
 pkgname=python
 pkgver=3.3.0
-pkgrel=1
+pkgrel=2
 _pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez')
 optdepends=('tk: for tkinter' 'sqlite')
 provides=('python3')
 replaces=('python3')
@@ -49,7 +49,7 @@
   cd "${srcdir}/Python-${pkgver}"
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
  "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils 
test_site \
- test_urllib test_uuid test_pydoc
+ test_urllib test_uuid test_pydoc test_logging
 }
 
 package() {



[arch-commits] Commit in python/trunk (PKGBUILD)

2012-09-29 Thread Stéphane Gaudreault
Date: Saturday, September 29, 2012 @ 12:34:48
  Author: stephane
Revision: 167271

upgpkg: python 3.3.0-1

version bump to 3.3.0 final

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-09-29 15:04:11 UTC (rev 167270)
+++ PKGBUILD2012-09-29 16:34:48 UTC (rev 167271)
@@ -4,7 +4,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.3.0rc3
+pkgver=3.3.0
 pkgrel=1
 _pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
@@ -18,7 +18,7 @@
 replaces=('python3')
 options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('a5601d2c5744df53f57277af77e7a0975fdeb331')
+sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"



[arch-commits] Commit in python/trunk (PKGBUILD)

2012-09-24 Thread Stéphane Gaudreault
Date: Monday, September 24, 2012 @ 16:43:56
  Author: stephane
Revision: 167045

3.3.0rc3

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-09-24 20:43:36 UTC (rev 167044)
+++ PKGBUILD2012-09-24 20:43:56 UTC (rev 167045)
@@ -4,7 +4,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.3.0rc2
+pkgver=3.3.0rc3
 pkgrel=1
 _pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
@@ -18,7 +18,7 @@
 replaces=('python3')
 options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('c1df20da541905ecc397783ac99d99a791c8f8e7')
+sha1sums=('a5601d2c5744df53f57277af77e7a0975fdeb331')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"



[arch-commits] Commit in python/trunk (PKGBUILD)

2012-09-09 Thread Stéphane Gaudreault
Date: Sunday, September 9, 2012 @ 18:17:14
  Author: stephane
Revision: 166536

prepare for 3.3.0

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |   15 +++
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-09-09 20:43:05 UTC (rev 166535)
+++ PKGBUILD2012-09-09 22:17:14 UTC (rev 166536)
@@ -4,9 +4,9 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.2.3
-pkgrel=3
-_pybasever=3.2
+pkgver=3.3.0rc2
+pkgrel=1
+_pybasever=3.3
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
 license=('custom')
@@ -18,7 +18,7 @@
 replaces=('python3')
 options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('3d607dbcfdf100dd659978195ccf3ade9d221823')
+sha1sums=('c1df20da541905ecc397783ac99d99a791c8f8e7')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"
@@ -38,7 +38,6 @@
   --with-computed-gotos \
   --enable-ipv6 \
   --with-valgrind \
-  --with-wide-unicode \
   --with-system-expat \
   --with-dbmliborder=gdbm:ndbm \
   --with-system-ffi
@@ -65,11 +64,11 @@
   ln -sf python${_pybasever}.1 "${pkgdir}/usr/share/man/man1/python3.1"
 
   # Fix FS#22552
-  ln -sf ../../libpython${_pybasever}mu.so \
-
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}mu/libpython${_pybasever}mu.so"
+  ln -sf ../../libpython${_pybasever}m.so \
+
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
 
   # Clean-up reference to build directory
-  sed -i "s|$srcdir/Python-${pkgver}:||" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}mu/Makefile"
+  sed -i "s|$srcdir/Python-${pkgver}:||" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile"
 
   # License
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"



[arch-commits] Commit in python/trunk (PKGBUILD)

2012-04-23 Thread Stéphane Gaudreault
Date: Monday, April 23, 2012 @ 19:55:35
  Author: stephane
Revision: 157112

upgpkg: python 3.2.3-3

rebuild with libffi for real ...

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-04-23 23:54:24 UTC (rev 157111)
+++ PKGBUILD2012-04-23 23:55:35 UTC (rev 157112)
@@ -5,7 +5,7 @@
 
 pkgname=python
 pkgver=3.2.3
-pkgrel=2
+pkgrel=3
 _pybasever=3.2
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')



[arch-commits] Commit in python/trunk (PKGBUILD)

2012-04-23 Thread Stéphane Gaudreault
Date: Monday, April 23, 2012 @ 10:07:55
  Author: stephane
Revision: 157085

upgpkg: python 3.2.3-2

libffi-3.0.11 rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-04-23 13:56:25 UTC (rev 157084)
+++ PKGBUILD2012-04-23 14:07:55 UTC (rev 157085)
@@ -5,7 +5,7 @@
 
 pkgname=python
 pkgver=3.2.3
-pkgrel=1
+pkgrel=2
 _pybasever=3.2
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')



[arch-commits] Commit in python/trunk (PKGBUILD gdbm-magic-values.patch)

2011-11-21 Thread Stéphane Gaudreault
Date: Monday, November 21, 2011 @ 12:38:37
  Author: stephane
Revision: 143040

upgpkg: python 3.2.2-2

gdbm 1.10 rebuild

Added:
  python/trunk/gdbm-magic-values.patch
Modified:
  python/trunk/PKGBUILD

-+
 PKGBUILD|   15 +++
 gdbm-magic-values.patch |   13 +
 2 files changed, 24 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-11-21 17:36:08 UTC (rev 143039)
+++ PKGBUILD2011-11-21 17:38:37 UTC (rev 143040)
@@ -5,7 +5,7 @@
 
 pkgname=python
 pkgver=3.2.2
-pkgrel=1
+pkgrel=2
 _pybasever=3.2
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -17,8 +17,10 @@
 provides=('python3')
 replaces=('python3')
 options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('5e654dbd48476193ccdef4d604ed4f45b48c6769')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
+gdbm-magic-values.patch)
+sha1sums=('5e654dbd48476193ccdef4d604ed4f45b48c6769'
+  '43bfbe3e23360f412b95cb284ff29b2cbe338be9')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"
@@ -26,6 +28,10 @@
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
+  # gdbm has new magic that whichdb does not recognize
+  # http://bugs.python.org/issue13007
+  patch -Np1 -i ../gdbm-magic-values.patch
+
   # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
@@ -40,6 +46,7 @@
   --with-valgrind \
   --with-wide-unicode \
   --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
   --with-system-ffi
 
   make
@@ -48,7 +55,7 @@
 check() {
   cd "${srcdir}/Python-${pkgver}"
   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
- "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils 
test_site
+ "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils 
test_site test_uuid
 }
 
 package() {

Added: gdbm-magic-values.patch
===
--- gdbm-magic-values.patch (rev 0)
+++ gdbm-magic-values.patch 2011-11-21 17:38:37 UTC (rev 143040)
@@ -0,0 +1,13 @@
+diff -up Python-3.2.2/Lib/dbm/__init__.py.gdbm-1.9-magic 
Python-3.2.2/Lib/dbm/__init__.py
+--- Python-3.2.2/Lib/dbm/__init__.py.gdbm-1.9-magic2011-09-03 
12:16:40.0 -0400
 Python-3.2.2/Lib/dbm/__init__.py   2011-09-30 15:47:27.488863694 -0400
+@@ -166,7 +166,7 @@ def whichdb(filename):
+ return ""
+ 
+ # Check for GNU dbm
+-if magic == 0x13579ace:
++if magic in (0x13579ace, 0x13579acd, 0x13579acf):
+ return "dbm.gnu"
+ 
+ # Later versions of Berkeley db hash file have a 12-byte pad in
+diff -up Python-3.2.2/Misc/NEWS.gdbm-1.9-magic Python-3.2.2/Misc/NEWS



[arch-commits] Commit in python/trunk (PKGBUILD)

2011-09-04 Thread Allan McRae
Date: Monday, September 5, 2011 @ 01:46:29
  Author: allan
Revision: 136998

upgpkg: python 3.2.2-1

upstream update

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-09-05 01:18:48 UTC (rev 136997)
+++ PKGBUILD2011-09-05 05:46:29 UTC (rev 136998)
@@ -4,7 +4,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.2.1
+pkgver=3.2.2
 pkgrel=1
 _pybasever=3.2
 pkgdesc="Next generation of the python high-level scripting language"
@@ -18,7 +18,7 @@
 replaces=('python3')
 options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('ab5cf4a4c21abe590dea87473a1dee6820699d79')
+sha1sums=('5e654dbd48476193ccdef4d604ed4f45b48c6769')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"



[arch-commits] Commit in python/trunk (PKGBUILD)

2011-07-11 Thread Stéphane Gaudreault
Date: Monday, July 11, 2011 @ 09:06:25
  Author: stephane
Revision: 131166

upgpkg: python 3.2.1-1
version bump

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-07-11 12:44:56 UTC (rev 131165)
+++ PKGBUILD2011-07-11 13:06:25 UTC (rev 131166)
@@ -4,7 +4,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.2.1rc2
+pkgver=3.2.1
 pkgrel=1
 _pybasever=3.2
 pkgdesc="Next generation of the python high-level scripting language"
@@ -13,12 +13,12 @@
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
 makedepends=('tk' 'sqlite3' 'valgrind')
-optdepends=('tk: for tkinter')
+optdepends=('tk: for tkinter' 'sqlite3')
 provides=('python3')
 replaces=('python3')
 options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('bbd451136ee9db12b24fd507682cdf769d7931c1')
+sha1sums=('ab5cf4a4c21abe590dea87473a1dee6820699d79')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"



[arch-commits] Commit in python/trunk (PKGBUILD)

2011-07-04 Thread Stéphane Gaudreault
Date: Monday, July 4, 2011 @ 09:05:23
  Author: stephane
Revision: 130227

3.2.1rc2, preparing python 3.2.1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-07-04 13:03:50 UTC (rev 130226)
+++ PKGBUILD2011-07-04 13:05:23 UTC (rev 130227)
@@ -4,7 +4,7 @@
 # Contributor: Jason Chu 
 
 pkgname=python
-pkgver=3.2.1rc1
+pkgver=3.2.1rc2
 pkgrel=1
 _pybasever=3.2
 pkgdesc="Next generation of the python high-level scripting language"
@@ -18,7 +18,7 @@
 replaces=('python3')
 options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('e1241ea5269535089878d12d03147b47ef4612d3')
+sha1sums=('bbd451136ee9db12b24fd507682cdf769d7931c1')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"



[arch-commits] Commit in python/trunk (PKGBUILD)

2011-06-13 Thread Andrea Scarpino
Date: Tuesday, June 14, 2011 @ 02:49:14
  Author: andrea
Revision: 127383

typo

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-06-14 06:48:31 UTC (rev 127382)
+++ PKGBUILD2011-06-14 06:49:14 UTC (rev 127383)
@@ -1,7 +1,7 @@
 # $Id$
 # Maintainer: Stéphane Gaudreault 
 # Maintainer: Allan McRae 
-# Contributer: Jason Chu 
+# Contributor: Jason Chu 
 
 pkgname=python
 pkgver=3.2.1rc1
@@ -23,7 +23,7 @@
 build() {
   cd "${srcdir}/Python-${pkgver}"
 
-  # FS#2399
+  # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
   # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),



[arch-commits] Commit in python/trunk (PKGBUILD)

2011-06-13 Thread Stéphane Gaudreault
Date: Monday, June 13, 2011 @ 20:31:12
  Author: stephane
Revision: 127379

FS#2399, prepare 3.2.1

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-06-14 00:07:11 UTC (rev 127378)
+++ PKGBUILD2011-06-14 00:31:12 UTC (rev 127379)
@@ -23,6 +23,9 @@
 build() {
   cd "${srcdir}/Python-${pkgver}"
 
+  # FS#2399
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
   # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
@@ -64,7 +67,7 @@
 
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}mu/libpython${_pybasever}mu.so"
 
   # Clean-up reference to build directory
-  sed -i "s#$srcdir/Python-${pkgver}:##" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}mu/Makefile"
+  sed -i "s|$srcdir/Python-${pkgver}:||" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}mu/Makefile"
 
   # License
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"



[arch-commits] Commit in python/trunk (PKGBUILD python-internal-expat.patch)

2011-02-20 Thread Stéphane Gaudreault
Date: Sunday, February 20, 2011 @ 20:21:12
  Author: stephane
Revision: 110651

update to 3.2

Modified:
  python/trunk/PKGBUILD
Deleted:
  python/trunk/python-internal-expat.patch

-+
 PKGBUILD|   58 ++
 python-internal-expat.patch |   33 ---
 2 files changed, 25 insertions(+), 66 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-02-21 01:06:01 UTC (rev 110650)
+++ PKGBUILD2011-02-21 01:21:12 UTC (rev 110651)
@@ -1,77 +1,69 @@
 # $Id$
+# Maintainer: Stéphane Gaudreault 
 # Maintainer: Allan McRae 
 # Contributer: Jason Chu 
 
 pkgname=python
-pkgver=3.1.3
-pkgrel=2
-_pybasever=3.1
+pkgver=3.2
+pkgrel=1
+_pybasever=3.2
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite3')
+makedepends=('tk' 'sqlite3' 'valgrind')
 optdepends=('tk: for tkinter')
 provides=('python3')
 replaces=('python3')
 options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.bz2
-python-internal-expat.patch)
-md5sums=('ad5e5f1c07e829321e0a015f8cafe245'
- '57fa26dd3353a697e8262d926aa035ad')
+source=(http://www.python.org/ftp/python/${_pybasever}/Python-${pkgver}.tar.xz)
+sha1sums=('55a3a9d39f31563370d0c494373bb6d38e4d1a00')
 
 build() {
   cd "${srcdir}/Python-${pkgver}"
 
   # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
   # rather than copies shipped in the tarball
-  patch -Np0 -i ../python-internal-expat.patch
   rm -r Modules/expat
   rm -r Modules/zlib
   rm -r Modules/_ctypes/{darwin,libffi}*
 
-  export OPT="${CFLAGS}"
-  export CPPFLAGS+="`pkg-config --cflags-only-I libffi`"
   ./configure --prefix=/usr \
   --enable-shared \
   --with-threads \
   --with-computed-gotos \
   --enable-ipv6 \
+  --with-valgrind \
   --with-wide-unicode \
+  --with-system-expat \
   --with-system-ffi
 
   make
 
   # Run the upstream test suite
-  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} 
PYTHON=./python \
- ./runtests.sh -x test_distutils
-  for testname in $(cat BAD); do
- echo "== ${testname} =="
- cat OUT/${testname}.out
-  done
+#  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+# "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils
 }
 
 package() {
   cd "${srcdir}/Python-${pkgver}"
-  make DESTDIR=${pkgdir} install
+  make DESTDIR="${pkgdir}" install maninstall
 
-  # why are these not done by default...
-  ln -sf python3 ${pkgdir}/usr/bin/python
-  ln -sf python3-config ${pkgdir}/usr/bin/python-config
-  ln -sf idle3 ${pkgdir}/usr/bin/idle
-  ln -sf pydoc3 ${pkgdir}/usr/bin/pydoc
+  # Why are these not done by default...
+  ln -sf python3   "${pkgdir}/usr/bin/python"
+  ln -sf python3-config"${pkgdir}/usr/bin/python-config"
+  ln -sf idle3 "${pkgdir}/usr/bin/idle"
+  ln -sf pydoc3"${pkgdir}/usr/bin/pydoc"
+  ln -sf python${_pybasever}.1 "${pkgdir}/usr/share/man/man1/python3.1"
 
-  # fix FS#22552
-  ln -sf ../../libpython${_pybasever}.so \
-${pkgdir}/usr/lib/python${_pybasever}/config/libpython${_pybasever}.so
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}mu.so \
+
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}mu/libpython${_pybasever}mu.so"
 
-  # clean-up reference to build directory
-  sed -i "s#$srcdir/Python-${pkgver}:##" 
$pkgdir/usr/lib/python3.1/config/Makefile
+  # Clean-up reference to build directory
+  sed -i "s#$srcdir/Python-${pkgver}:##" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}mu/Makefile"
 
-  # Fix conflicts with python2 - python2 version is newer...
-  rm ${pkgdir}/usr/bin/2to3
-
-  # license
-  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+  # License
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

Deleted: python-internal-expat.patch
===
--- python-internal-expat.patch 2011-02-21 01:06:01 UTC (rev 110650)
+++ python-internal-expat.patch 2011-02-21 01:21:12 UTC (rev 110651)
@@ -1,33 +0,0 @@
 setup.py   2010-11-26 06:56:26.0 -0500
-+++ setup.py   2010-11-29 07:51:25.00031 -0500
-@@ -1227,18 +1227,15 @@
- #
- # More information on Expat can be found at www.libexpat.org.
- #
--expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
--define_macros = [
--('HAVE_EXPAT_CONFIG_H', '1'),
--]
-+# Use system expat
-+expatinc = '/usr/include'
-+define_macros = []
- 
- ext

[arch-commits] Commit in python/trunk (PKGBUILD)

2011-01-28 Thread Stéphane Gaudreault
Date: Friday, January 28, 2011 @ 15:13:06
  Author: stephane
Revision: 107995

upgpkg: python 3.1.3-2
Add link to libpython3.1.so in /usr/lib/python3.1/config (fix FS#22552)

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-01-28 20:09:26 UTC (rev 107994)
+++ PKGBUILD2011-01-28 20:13:06 UTC (rev 107995)
@@ -4,12 +4,12 @@
 
 pkgname=python
 pkgver=3.1.3
-pkgrel=1
+pkgrel=2
 _pybasever=3.1
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
 license=('custom')
-url="http://www.python.org";
+url="http://www.python.org/";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
 makedepends=('tk' 'sqlite3')
 optdepends=('tk: for tkinter')
@@ -62,6 +62,10 @@
   ln -sf idle3 ${pkgdir}/usr/bin/idle
   ln -sf pydoc3 ${pkgdir}/usr/bin/pydoc
 
+  # fix FS#22552
+  ln -sf ../../libpython${_pybasever}.so \
+${pkgdir}/usr/lib/python${_pybasever}/config/libpython${_pybasever}.so
+
   # clean-up reference to build directory
   sed -i "s#$srcdir/Python-${pkgver}:##" 
$pkgdir/usr/lib/python3.1/config/Makefile
 



[arch-commits] Commit in python/trunk (PKGBUILD)

2010-12-01 Thread Stéphane Gaudreault
Date: Wednesday, December 1, 2010 @ 07:46:53
  Author: stephane
Revision: 101741

upgpkg: python 3.1.3-1
Do not overriding CPPFLAGS

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-12-01 12:22:05 UTC (rev 101740)
+++ PKGBUILD2010-12-01 12:46:53 UTC (rev 101741)
@@ -32,7 +32,7 @@
   rm -r Modules/_ctypes/{darwin,libffi}*
 
   export OPT="${CFLAGS}"
-  export CPPFLAGS="`pkg-config --cflags-only-I libffi`"
+  export CPPFLAGS+="`pkg-config --cflags-only-I libffi`"
   ./configure --prefix=/usr \
   --enable-shared \
   --with-threads \
@@ -44,7 +44,7 @@
   make
 
   # Run the upstream test suite
-  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:build/lib.linux-*-${_pybasever} 
PYTHON=./python \
+  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} 
PYTHON=./python \
  ./runtests.sh -x test_distutils
   for testname in $(cat BAD); do
  echo "== ${testname} =="



[arch-commits] Commit in python/trunk (PKGBUILD)

2010-11-29 Thread Stéphane Gaudreault
Date: Monday, November 29, 2010 @ 23:42:19
  Author: stephane
Revision: 101660

do not hardcode arch

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-11-30 01:42:35 UTC (rev 101659)
+++ PKGBUILD2010-11-30 04:42:19 UTC (rev 101660)
@@ -44,11 +44,11 @@
   make
 
   # Run the upstream test suite
-  
LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:build/lib.linux-x86_64-${_pybasever} 
PYTHON=./python \
+  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:build/lib.linux-*-${_pybasever} 
PYTHON=./python \
  ./runtests.sh -x test_distutils
-  for TESTNAME in $(cat BAD); do
- echo "== $TESTNAME =="
- cat OUT/$TESTNAME.out
+  for testname in $(cat BAD); do
+ echo "== ${testname} =="
+ cat OUT/${testname}.out
   done
 }
 



[arch-commits] Commit in python/trunk (PKGBUILD)

2010-11-29 Thread Stéphane Gaudreault
Date: Monday, November 29, 2010 @ 18:54:19
  Author: stephane
Revision: 101653

minor typo

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-11-29 23:34:02 UTC (rev 101652)
+++ PKGBUILD2010-11-29 23:54:19 UTC (rev 101653)
@@ -32,7 +32,7 @@
   rm -r Modules/_ctypes/{darwin,libffi}*
 
   export OPT="${CFLAGS}"
-  export export CPPFLAGS="`pkg-config --cflags-only-I libffi`"
+  export CPPFLAGS="`pkg-config --cflags-only-I libffi`"
   ./configure --prefix=/usr \
   --enable-shared \
   --with-threads \



[arch-commits] Commit in python/trunk (PKGBUILD python-internal-expat.patch)

2010-11-29 Thread Stéphane Gaudreault
Date: Monday, November 29, 2010 @ 18:26:44
  Author: stephane
Revision: 101643

upgpkg: python 3.1.3-1
upstream update, use system libraries, run testsuite

Modified:
  python/trunk/PKGBUILD
  python/trunk/python-internal-expat.patch

-+
 PKGBUILD|   39 +--
 python-internal-expat.patch |   14 +++---
 2 files changed, 36 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-11-29 23:20:37 UTC (rev 101642)
+++ PKGBUILD2010-11-29 23:26:44 UTC (rev 101643)
@@ -3,14 +3,14 @@
 # Contributer: Jason Chu 
 
 pkgname=python
-pkgver=3.1.2
-pkgrel=2
+pkgver=3.1.3
+pkgrel=1
 _pybasever=3.1
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.python.org";
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'zlib')
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
 makedepends=('tk' 'sqlite3')
 optdepends=('tk: for tkinter')
 provides=('python3')
@@ -18,23 +18,42 @@
 options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.bz2
 python-internal-expat.patch)
-md5sums=('45350b51b58a46b029fb06c61257e350'
- '993800dbcc0c4f199c1ceee998a06e71')
+md5sums=('ad5e5f1c07e829321e0a015f8cafe245'
+ '57fa26dd3353a697e8262d926aa035ad')
 
 build() {
-  cd ${srcdir}/Python-${pkgver}
+  cd "${srcdir}/Python-${pkgver}"
 
-  patch -Np0 -i ${srcdir}/python-internal-expat.patch
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  patch -Np0 -i ../python-internal-expat.patch
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
 
   export OPT="${CFLAGS}"
-  ./configure --prefix=/usr --enable-shared --with-threads 
--with-computed-gotos \
-  --enable-unicode --with-wide-unicode
+  export export CPPFLAGS="`pkg-config --cflags-only-I libffi`"
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-wide-unicode \
+  --with-system-ffi
 
   make
+
+  # Run the upstream test suite
+  
LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:build/lib.linux-x86_64-${_pybasever} 
PYTHON=./python \
+ ./runtests.sh -x test_distutils
+  for TESTNAME in $(cat BAD); do
+ echo "== $TESTNAME =="
+ cat OUT/$TESTNAME.out
+  done
 }
 
 package() {
-  cd ${srcdir}/Python-${pkgver}
+  cd "${srcdir}/Python-${pkgver}"
   make DESTDIR=${pkgdir} install
 
   # why are these not done by default...

Modified: python-internal-expat.patch
===
--- python-internal-expat.patch 2010-11-29 23:20:37 UTC (rev 101642)
+++ python-internal-expat.patch 2010-11-29 23:26:44 UTC (rev 101643)
@@ -1,6 +1,6 @@
 setup.py2008-04-22 12:12:24.613554757 +0300
-+++ setup.py2008-04-22 12:13:09.276544063 +0300
-@@ -1035,18 +1035,15 @@
+--- setup.py   2010-11-26 06:56:26.0 -0500
 setup.py   2010-11-29 07:51:25.00031 -0500
+@@ -1227,18 +1227,15 @@
  #
  # More information on Expat can be found at www.libexpat.org.
  #
@@ -11,7 +11,7 @@
 +# Use system expat
 +expatinc = '/usr/include'
 +define_macros = []
-
+ 
  exts.append(Extension('pyexpat',
define_macros = define_macros,
include_dirs = [expatinc],
@@ -22,12 +22,12 @@
 - 'expat/xmltok.c',
   ],
))
-
-@@ -1058,6 +1055,7 @@
+ 
+@@ -1250,6 +1247,7 @@
  exts.append(Extension('_elementtree',
define_macros = define_macros,
include_dirs = [expatinc],
 +  libraries = ['expat'],
sources = ['_elementtree.c'],
))
-
+ else:



[arch-commits] Commit in python/trunk (PKGBUILD)

2010-10-04 Thread Allan McRae
Date: Monday, October 4, 2010 @ 08:47:13
  Author: allan
Revision: 94083

upgpkg: python 3.1.2-2
replace python3, add tk optdep

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-10-04 12:45:55 UTC (rev 94082)
+++ PKGBUILD2010-10-04 12:47:13 UTC (rev 94083)
@@ -4,7 +4,7 @@
 
 pkgname=python
 pkgver=3.1.2
-pkgrel=1
+pkgrel=2
 _pybasever=3.1
 pkgdesc="Next generation of the python high-level scripting language"
 arch=('i686' 'x86_64')
@@ -12,7 +12,10 @@
 url="http://www.python.org";
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'zlib')
 makedepends=('tk' 'sqlite3')
-#optdepends=('tk: for tkinter')
+optdepends=('tk: for tkinter')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
 source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.bz2
 python-internal-expat.patch)
 md5sums=('45350b51b58a46b029fb06c61257e350'



[arch-commits] Commit in python/trunk (PKGBUILD)

2010-03-31 Thread Allan McRae
Date: Thursday, April 1, 2010 @ 01:30:58
  Author: allan
Revision: 75257

upgpkg: python 2.6.5-3
openssl rebuild

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-04-01 05:05:59 UTC (rev 75256)
+++ PKGBUILD2010-04-01 05:30:58 UTC (rev 75257)
@@ -4,7 +4,7 @@
 
 pkgname=python
 pkgver=2.6.5
-pkgrel=2
+pkgrel=3
 _pybasever=2.6
 pkgdesc="A high-level scripting language"
 arch=('i686' 'x86_64')



[arch-commits] Commit in python/trunk (PKGBUILD)

2010-03-19 Thread Allan McRae
Date: Friday, March 19, 2010 @ 20:29:56
  Author: allan
Revision: 72783

upgpkg: python 2.6.5-1
upstream update

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-03-19 22:45:40 UTC (rev 72782)
+++ PKGBUILD2010-03-20 00:29:56 UTC (rev 72783)
@@ -3,8 +3,8 @@
 # Contributer: Jason Chu 
 
 pkgname=python
-pkgver=2.6.4
-pkgrel=2
+pkgver=2.6.5
+pkgrel=1
 _pybasever=2.6
 pkgdesc="A high-level scripting language"
 arch=('i686' 'x86_64')
@@ -22,7 +22,7 @@
python-2.6-db-4.8.patch
modulator-launcher
pynche-launcher)
-md5sums=('fee5408634a54e721a93531aba37f8c1'
+md5sums=('6bef0417e71a1a1737ccf5750420fdb3'
  '993800dbcc0c4f199c1ceee998a06e71'
  '13fab4bb2cacbc433e62d7191a17f71e'
  '1f0aed8b96d4531f40fd3e24a80157a5'



[arch-commits] Commit in python/trunk (PKGBUILD)

2010-01-25 Thread Allan McRae
Date: Monday, January 25, 2010 @ 04:22:16
  Author: allan
Revision: 65224

upgpkg: python 2.6.4-2
remove executable permissions from README file (FS#17554)

Modified:
  python/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-01-25 07:34:29 UTC (rev 65223)
+++ PKGBUILD2010-01-25 09:22:16 UTC (rev 65224)
@@ -4,7 +4,7 @@
 
 pkgname=python
 pkgver=2.6.4
-pkgrel=1
+pkgrel=2
 _pybasever=2.6
 pkgdesc="A high-level scripting language"
 arch=('i686' 'x86_64')
@@ -70,8 +70,8 @@
   install -m755 Tools/i18n/msgfmt.py ${pkgdir}/usr/bin/
 
   mkdir -p ${pkgdir}/usr/lib/python${_pybasever}/Tools/scripts
-  install Tools/scripts/README 
${pkgdir}/usr/lib/python${_pybasever}/Tools/scripts/
-  install Tools/scripts/*py 
${pkgdir}/usr/lib/python${_pybasever}/Tools/scripts/
+  install -m644 Tools/scripts/README 
${pkgdir}/usr/lib/python${_pybasever}/Tools/scripts/
+  install -m755 Tools/scripts/*py 
${pkgdir}/usr/lib/python${_pybasever}/Tools/scripts/
 
   # license
   install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE