diff options
Diffstat (limited to 'dev-python/gmpy/files')
-rw-r--r-- | dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch | 17 | ||||
-rw-r--r-- | dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch | 41 |
2 files changed, 0 insertions, 58 deletions
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 deleted file mode 100644 index d21e5a55510d..000000000000 --- a/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch +++ /dev/null @@ -1,17 +0,0 @@ -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/files/gmpy-2.0.8-test-exit-status.patch b/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch deleted file mode 100644 index ab4128ff55ca..000000000000 --- a/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -dupr a/test2/gmpy_test.py b/test2/gmpy_test.py ---- a/test2/gmpy_test.py 2019-11-22 09:21:42.313037873 +0100 -+++ b/test2/gmpy_test.py 2013-08-20 22:17:52.000000000 +0200 -@@ -34,11 +34,15 @@ writeln(" Caching Values: (Number) - writeln(" Caching Values: (Size, limbs) {0}".format(_g.get_cache()[1])) - - pf, pt = 0, 0 -+ret = 0 - for x in test_modules: - testit = x._test() - failures, tests = testit - if tests == 0: continue -+ if failures > 0: ret = 1 - writeln("%s %3d tests, %d failures" % (x.__name__, tests-pt, failures-pf)) - pf, pt = failures, tests - - doctest.master.summarize(1) -+ -+sys.exit(ret) -diff -dupr a/test3/gmpy_test.py b/test3/gmpy_test.py ---- a/test3/gmpy_test.py 2019-11-22 09:21:30.421908749 +0100 -+++ b/test3/gmpy_test.py 2013-08-20 22:17:52.000000000 +0200 -@@ -28,10 +28,12 @@ print(" Caching Values: (Number) { - print(" Caching Values: (Size, limbs) {0}".format(_g.get_cache()[1])) - - pf, pt = 0, 0 -+ret = 0 - for x in test_modules: - testit = x._test() - failures, tests = testit - if tests == 0: continue -+ if failures > 0: ret = 1 - print("%s %3d tests, %d failures" % (x.__name__, tests-pt, failures-pf)) - pf, pt = failures, tests - -@@ -41,3 +43,5 @@ if sys.version_info < (3,1,1): - print("There is a known bug with Fraction == mpq for versions of Python") - print("less than 3.1.1. Please upgrade if you rely on comparisons between") - print("Python's Fraction and gmpy2's mpq.") -+ -+sys.exit(ret) |