summaryrefslogtreecommitdiff
path: root/dev-libs/libtommath
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-09-10 04:21:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-09-10 04:21:55 +0100
commit677b7ba5c317778df2ad7e70df94b9b7eec4adbc (patch)
tree6c418a1546fff5becab5d8b9ed6803323e7f316e /dev-libs/libtommath
parentfbda87924e6faa7a1919f1a2b4182490bde5ec5c (diff)
gentoo resync : 10.09.2021
Diffstat (limited to 'dev-libs/libtommath')
-rw-r--r--dev-libs/libtommath/Manifest3
-rw-r--r--dev-libs/libtommath/files/libtommath-1.2.0-sparc.patch22
-rw-r--r--dev-libs/libtommath/libtommath-1.2.0.ebuild4
3 files changed, 28 insertions, 1 deletions
diff --git a/dev-libs/libtommath/Manifest b/dev-libs/libtommath/Manifest
index 0360163feec2..60926db11f7d 100644
--- a/dev-libs/libtommath/Manifest
+++ b/dev-libs/libtommath/Manifest
@@ -1,3 +1,4 @@
+AUX libtommath-1.2.0-sparc.patch 1011 BLAKE2B 40eb13efa4e39ed5a3d22c122e808fc7ba33694adbd0c12996aa3b49d599da8795c95ab8d9e1241de4e28f731fe9872f9db1fdd4a872ff0701cf806547c094c0 SHA512 09095a9c4a41f49db14b1dffd766d57f18b2d031920328cc3a8334b452032b9310547807eaf8b4805936082528fff5ce7945e07164a81b556685efbeed6987be
DIST ltm-1.2.0.tar.xz 622120 BLAKE2B 1537dad7da5c14264f03280e9d49fa0b7e6c1c4924c805f202d31c60569b9e3bee40674301d67b0f5b049c1c2dc5ec71b6c566ff5c9b8168d16840b031acc400 SHA512 6f9ccd0691831f07f86ddc81cb6145504b3d5da66dd3e92312c64cce0ea986fa4e08ba65ca8991aaebe56702c2d7c15f309696785b813dffb4c112a4ad04b203
-EBUILD libtommath-1.2.0.ebuild 1899 BLAKE2B 46d16de4749e57c61f145ae4897cfcc29f47fbe0d2b34a68f9dc65b7387a330027b35bdc65546b223b22ba3313e7bea5ae29c9f9c4fdcbc0368a86c90813a6ba SHA512 9d744518c7c02779b0c30effdb0cac333fc796d4b53d0bbf9a7d41a039a13338f8534cb716a73dc2500ca4e30a6b97c31212ae2d04c6764db35804f5eef616da
+EBUILD libtommath-1.2.0.ebuild 1944 BLAKE2B d99c8d29662583c85e021a64017bd451a382f6d029d1d7fd1cbc6d7b30a0b7c5981f839062701947fcd5fab6d568d213dc3652251fb2a3cf0f23a47397cc35c8 SHA512 728872bb002797c165a06cc9b3ac2aba67df67d0dd59ab7abd33e3d9642e814496285b277a9884e512c153c37f31094124e0131bb1ca4523ea5954467ed87027
MISC metadata.xml 3151 BLAKE2B ee84d117d269999fd851b96ec99892d504d95252303fef90979a79472cf24c338a2dc0f5c7b2c45e5040ca5e0768df8cd63eb004f530842aef8b5681939c820b SHA512 a459604058515a87ee3b4521569e94c3cb9ead69f5f3086b5e2de906d561bb11049d719aa38d80bb6b6880b61ea0d9536e55bfa1337ccb0f4b5ccfeeda15f00e
diff --git a/dev-libs/libtommath/files/libtommath-1.2.0-sparc.patch b/dev-libs/libtommath/files/libtommath-1.2.0-sparc.patch
new file mode 100644
index 000000000000..3ed8aedf398c
--- /dev/null
+++ b/dev-libs/libtommath/files/libtommath-1.2.0-sparc.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/781938
+https://github.com/libtom/libtommath/issues/509
+https://github.com/libtom/libtommath/pull/510 (didn't apply)
+https://github.com/tcltk/tcl/commit/dadb2c18d0b1b2bd26628aded323e9df4566d463
+
+From: "jan.nijtmans" <nijtmans@users.sourceforge.net>
+Date: Wed, 14 Jul 2021 15:54:56 +0000
+Subject: [PATCH] Fix build on Linux/Sparc with 32 bit userspace. See:
+ [https://github.com/libtom/libtommath/issues/509] for the upstream libtommath
+ fix
+
+--- a/tommath.h
++++ b/tommath.h
+@@ -45,7 +45,7 @@ extern "C" {
+ defined(__ia64) || defined(__ia64__) || defined(__itanium__) || defined(_M_IA64) || \
+ defined(__LP64__) || defined(_LP64) || defined(__64BIT__)
+ # if !(defined(MP_64BIT) || defined(MP_32BIT) || defined(MP_16BIT) || defined(MP_8BIT))
+-# if defined(__GNUC__) && !defined(__hppa)
++# if defined(__GNUC__) && defined(__SIZEOF_INT128__) && !defined(__hppa)
+ /* we support 128bit integers only via: __attribute__((mode(TI))) */
+ # define MP_64BIT
+ # else
diff --git a/dev-libs/libtommath/libtommath-1.2.0.ebuild b/dev-libs/libtommath/libtommath-1.2.0.ebuild
index e65ded25c030..fd90c3f29816 100644
--- a/dev-libs/libtommath/libtommath-1.2.0.ebuild
+++ b/dev-libs/libtommath/libtommath-1.2.0.ebuild
@@ -16,6 +16,10 @@ IUSE="doc examples static-libs"
BDEPEND="sys-devel/libtool"
+PATCHES=(
+ "${FILESDIR}"/${P}-sparc.patch
+)
+
src_prepare() {
default