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

Evangelos Foutras foutrelis at archlinux.org
Thu Sep 10 02:08:27 UTC 2015


    Date: Thursday, September 10, 2015 @ 04:08:27
  Author: foutrelis
Revision: 139711

ncurses 6.0 rebuild.

Modified:
  pypy3/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-10 00:20:09 UTC (rev 139710)
+++ PKGBUILD	2015-09-10 02:08:27 UTC (rev 139711)
@@ -7,7 +7,7 @@
 pkgver=2.4.0
 _pkgver=2.4.0
 #[[ -n $_hgrev ]] && pkgver=2.0beta2.$_hgrev
-pkgrel=2
+pkgrel=3
 pkgdesc="A Python3 implementation written in Python, JIT enabled"
 url="http://pypy.org"
 arch=('i686' 'x86_64')
@@ -26,6 +26,18 @@
 prepare() {
   cd ${pkgname}-${_pkgver}-src
   patch -Np1 -i ../trackgcroot-new-ops.patch
+
+  # Hacky fix to allow the curses module to build on x86_64; otherwise we get:
+  #   cffi.ffiplatform.VerificationError: anonymous MEVENT: wrong total size
+  #                                       (we have 24, but C compiler says 20)
+  if [[ $CARCH == x86_64 ]]; then
+    _type=unsigned
+  else
+    _type=uint32_t
+  fi
+  sed -i -e "s/typedef unsigned long mmask_t/typedef $_type mmask_t/" \
+         -e "s/typedef unsigned long chtype/typedef $_type chtype/" \
+    lib_pypy/_curses.py
 }
 
 build() {



More information about the arch-commits mailing list