From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3D5401382C5 for ; Fri, 6 Apr 2018 05:23:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 74565E0908; Fri, 6 Apr 2018 05:23:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 56B32E0908 for ; Fri, 6 Apr 2018 05:23:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2CACD335C7D for ; Fri, 6 Apr 2018 05:23:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 483BA266 for ; Fri, 6 Apr 2018 05:23:03 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1522992168.0d16531e438828335a8e7616c0ee33b9a32bc1cf.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/, dev-python/gmpy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch dev-python/gmpy/gmpy-2.0.8.ebuild X-VCS-Directories: dev-python/gmpy/ dev-python/gmpy/files/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 0d16531e438828335a8e7616c0ee33b9a32bc1cf X-VCS-Branch: master Date: Fri, 6 Apr 2018 05:23:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 37afb14b-e55a-4d33-a0bb-8f37b57cb48d X-Archives-Hash: c711c8bebd9149565ed7b524bed89ab4 commit: 0d16531e438828335a8e7616c0ee33b9a32bc1cf Author: Matt Turner gentoo org> AuthorDate: Fri Apr 6 05:13:50 2018 +0000 Commit: Matt Turner gentoo org> CommitDate: Fri Apr 6 05:22:48 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d16531e dev-python/gmpy: Add patch to fix mpir types on mips/n32 Committed with floppym's blessing. Closes: https://bugs.gentoo.org/608496 dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch | 17 +++++++++++++++++ dev-python/gmpy/gmpy-2.0.8.ebuild | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch b/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch new file mode 100644 index 00000000000..d21e5a55510 --- /dev/null +++ b/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch @@ -0,0 +1,17 @@ +diff -ur gmpy2-2.0.8.orig/src/gmpy.h gmpy2-2.0.8/src/gmpy.h +--- gmpy2-2.0.8.orig/src/gmpy.h 2018-04-03 22:44:35.494621951 -0700 ++++ gmpy2-2.0.8/src/gmpy.h 2018-04-03 22:45:33.580835296 -0700 +@@ -129,8 +129,13 @@ + #ifndef BITS_PER_UI + /* Assume we are NOT using MPIR > 2.5. */ + #define BITS_PER_UI BITS_PER_ULONG ++#if defined(__mips__) && (_MIPS_SIM == _ABIN32) ++typedef unsigned long long mpir_ui; ++typedef long long mpir_si; ++#else + typedef unsigned long mpir_ui; + typedef long mpir_si; ++#endif + #define mpz_fits_si_p mpz_fits_slong_p + #define mpz_fits_ui_p mpz_fits_ulong_p + #endif diff --git a/dev-python/gmpy/gmpy-2.0.8.ebuild b/dev-python/gmpy/gmpy-2.0.8.ebuild index 1d39738f918..41e247051af 100644 --- a/dev-python/gmpy/gmpy-2.0.8.ebuild +++ b/dev-python/gmpy/gmpy-2.0.8.ebuild @@ -30,6 +30,10 @@ DEPEND="${RDEPEND} S="${WORKDIR}"/${MY_P} +PATCHES=( + "${FILESDIR}"/${P}-fix-mpir-types.patch +) + python_prepare_all() { # rm non std test file rm test*/gmpy_test_thr.py || die