[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/files/, dev-libs/gmp/

2024-03-04 Thread Sam James
commit: b94ba407279f795e4302935504fbcc4df2ed5644
Author: Sam James  gentoo  org>
AuthorDate: Mon Mar  4 12:00:05 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Mar  4 12:00:05 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b94ba407

dev-libs/gmp: drop 6.2.1-r5

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/Manifest |   2 -
 dev-libs/gmp/files/gmp-6.2.1-CVE-2021-43618.patch |  17 --
 dev-libs/gmp/gmp-6.2.1-r5.ebuild  | 182 --
 3 files changed, 201 deletions(-)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index bb161b9f1dee..9ad925e475bf 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,4 +1,2 @@
-DIST gmp-6.2.1-arm64-darwin.patch.bz2 2520 BLAKE2B 
3d4e9dbd29dc9aa81f0c9e0de4a5904c989d54148c9e3dcc5097a43b3fb1ecd17802dacfc71ee131c0805a345f5dce9009e88439758d3a0ed8b3a88526353b4a
 SHA512 
72d49f09c3facd75036c945e076207e72e5673ba9605999c32a122e43e8b970ed646c8ca8f07acbb62bff5e7c387d4c8e1f73ca73e50ac3f574b5f6471d66d56
-DIST gmp-6.2.1.tar.xz 2027316 BLAKE2B 
c0d85f175392a50cfa01bc6b0a312b235946ad8b4f6f84f6dabd33d7a6f2cc75c9b0e1e33057be07750bfa0145b7c4cf3b6188a5be6ca9d7271ec2276c84ebcb
 SHA512 
c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
 DIST gmp-6.3.0.tar.xz 2094196 BLAKE2B 
a865129e2b3f634ec5bad7f97ed89532e43f5662ac47a7d8ab7f0df8c9f8d0886bd984651422e2573c2163bca69c0547c248147ec90880accbd53db97dc0ddee
 SHA512 
e85a0dab5195889948a3462189f0e0598d331d3457612e2d3350799dba2e244316d256f8161df5219538eb003e4b5343f989aaa00f96321559063ed8c8f29fd2
 DIST gmp-man-6.2.1.pdf 827583 BLAKE2B 
9aa25457a3c488e37cc7d54d825253ab749a3780919570579b319cf607001de50b212ca387b70213abcc5ab428b4525bdb9cd8ae932798a2d7928da98ce3f353
 SHA512 
f2d9d02e97975355ef490e921fedc94fb7687c3661eec8fa2e94a1622b6e59b17b3879eb3ec1f2df8edac100f727175144d107f4c49c602b773c43bc9e91dbcb

diff --git a/dev-libs/gmp/files/gmp-6.2.1-CVE-2021-43618.patch 
b/dev-libs/gmp/files/gmp-6.2.1-CVE-2021-43618.patch
deleted file mode 100644
index 90129ec5b2bd..
--- a/dev-libs/gmp/files/gmp-6.2.1-CVE-2021-43618.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-https://bugs.gentoo.org/823804
-https://gmplib.org/repo/gmp-6.2/rev/561a9c25298e
 a/mpz/inp_raw.c
-+++ b/mpz/inp_raw.c
-@@ -88,8 +88,11 @@ mpz_inp_raw (mpz_ptr x, FILE *fp)
- 
-   abs_csize = ABS (csize);
- 
-+  if (UNLIKELY (abs_csize > ~(mp_bitcnt_t) 0 / 8))
-+return 0; /* Bit size overflows */
-+
-   /* round up to a multiple of limbs */
--  abs_xsize = BITS_TO_LIMBS (abs_csize*8);
-+  abs_xsize = BITS_TO_LIMBS ((mp_bitcnt_t) abs_csize * 8);
- 
-   if (abs_xsize != 0)
- {

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
deleted file mode 100644
index dc9a1c129771..
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ /dev/null
@@ -1,182 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit gnuconfig libtool flag-o-matic multilib-minimal toolchain-funcs
-
-MY_PV=${PV/_p*}
-MY_PV=${MY_PV/_/-}
-
-MANUAL_PV=6.2.1
-
-MY_P=${PN}-${MY_PV}
-PLEVEL=${PV/*p}
-
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="
-   https://gmplib.org/download/gmp/${MY_P}.tar.xz
-   mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )
-"
-SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-darwin.patch.bz2;
-S="${WORKDIR}"/${MY_P%a}
-
-LICENSE="|| ( LGPL-3+ GPL-2+ )"
-# The subslot reflects the C & C++ SONAMEs.
-SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
-IUSE="+asm doc +cpudetection +cxx pic static-libs"
-REQUIRED_USE="cpudetection? ( asm )"
-RESTRICT="!cpudetection? ( bindist )"
-
-BDEPEND="
-   app-arch/xz-utils
-   sys-devel/m4
-"
-
-DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
-HTML_DOCS=( doc )
-
-MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
-   "${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
-   "${WORKDIR}"/${P}-arm64-darwin.patch
-   "${FILESDIR}"/${P}-CVE-2021-43618.patch
-)
-
-pkg_pretend() {
-   if use cpudetection && ! use amd64 && ! use x86 ; then
-   elog "Using generic C implementation on non-amd64/x86 with 
USE=cpudetection"
-   elog "--enable-fat is a no-op on alternative arches."
-   elog "To obtain an optimized build, set USE=-cpudetection, but 
binpkgs should not then be made."
-   fi
-}
-
-src_prepare() {
-   default
-
-   # We cannot run autotools here as gcc depends on this package
-   

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-12-14 Thread Sam James
commit: 9c2e28f75caf3d9ada6f570e70500e00c2d6cd5d
Author: George Burgess IV  google  com>
AuthorDate: Mon Oct 30 16:25:14 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 15 03:17:36 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c2e28f7

dev-libs/gmp: add -fno-sanitize-address-globals-dead-stripping

Clang recently defaulted `-fsanitize-address-globals-dead-stripping` to
'on' for ELF: https://reviews.llvm.org/D152604. This breaks gmp's
configure checks, as it detects that rodata sections should be declared
with:
```
.rodata.foo,"aG",@progbits,foo,comdat
```

instead of:
```
.rodata,"a",@progbits
```

Since Clang uses LLVM-specific assembler extensions to make this ASAN
symbol GCing work, disable the feature for this package.

Signed-off-by: George Burgess IV  google.com>
Closes: https://github.com/gentoo/gentoo/pull/33592
Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/{gmp-6.3.0.ebuild => gmp-6.3.0-r1.ebuild} | 8 
 1 file changed, 8 insertions(+)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0-r1.ebuild
similarity index 93%
rename from dev-libs/gmp/gmp-6.3.0.ebuild
rename to dev-libs/gmp/gmp-6.3.0-r1.ebuild
index 2cb6293940af..ee4311e99aaa 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0-r1.ebuild
@@ -163,6 +163,14 @@ multilib_src_configure() {
export ac_cv_host="${gmp_host}"
fi
 
+   # Clang with -fsanitize=address may emit weird section names in its asm,
+   # which causes gmp's configure checks to select a broken way of
+   # specifying `.rodata`. Disable this feature, which was introduced in
+   # Clang 15 (and defaulted to on in Clang 18).
+   if tc-is-clang && [[ "$(clang-major-version)" -ge 15 ]]; then
+   append-cxxflags "-fno-sanitize-address-globals-dead-stripping"
+   fi
+
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-24 Thread Arthur Zamarin
commit: 451ef3cc41128ddb79b68e582251c3dd19c6c2bd
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Sep 24 15:44:19 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Sep 24 15:44:19 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=451ef3cc

dev-libs/gmp: Stabilize 6.3.0 ppc, #913815

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index 49dbe63773ed..2cb6293940af 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -25,7 +25,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-08 Thread Andreas K. Hüttel
commit: fdf13622bc8247238caba73912518cfef2c6ce3b
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Fri Sep  8 23:29:39 2023 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Fri Sep  8 23:30:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdf13622

dev-libs/gmp: drop 6.2.1-r2

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 118 ---
 1 file changed, 118 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
deleted file mode 100644
index 7f25f4bab2a8..
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ /dev/null
@@ -1,118 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit libtool flag-o-matic multilib-minimal toolchain-funcs
-
-MY_PV=${PV/_p*}
-MY_PV=${MY_PV/_/-}
-MANUAL_PV=${MY_PV}
-MANUAL_PV=6.2.1
-MY_P=${PN}-${MY_PV}
-PLEVEL=${PV/*p}
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="
-   https://gmplib.org/download/gmp/${MY_P}.tar.xz
-   mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )
-"
-SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-darwin.patch.bz2;
-
-LICENSE="|| ( LGPL-3+ GPL-2+ )"
-# The subslot reflects the C & C++ SONAMEs.
-SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
-IUSE="+asm doc +cxx pic static-libs"
-
-BDEPEND="sys-devel/m4
-   app-arch/xz-utils"
-
-S=${WORKDIR}/${MY_P%a}
-
-DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
-HTML_DOCS=( doc )
-MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
-   "${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
-   "${WORKDIR}"/${P}-arm64-darwin.patch
-   "${FILESDIR}"/${P}-CVE-2021-43618.patch
-)
-
-src_prepare() {
-   default
-
-   # We cannot run autotools here as gcc depends on this package
-   elibtoolize
-
-   # bug #536894
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
-   fi
-
-   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
-   # So, to avoid patching the source constantly, wrap things up.
-   mv configure configure.wrapped || die
-   cat <<-\EOF > configure
-   #!/usr/bin/env sh
-   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
-   EOF
-
-   # Patches to original configure might have lost the +x bit.
-   chmod a+rx configure{,.wrapped} || die
-}
-
-multilib_src_configure() {
-   # Generally a very fragile package
-   strip-flags
-   # Miscompiled with LTO at least on arm64, bug #889948
-   filter-lto
-
-   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
-   if [[ ${CHOST} == hppa2.0-* ]] ; then
-   GMPABI="1.0"
-   fi
-
-   # ABI mappings (needs all architectures supported)
-   case ${ABI} in
-   32|x86)   GMPABI=32;;
-   64|amd64|n64) GMPABI=64;;
-   [onx]32)  GMPABI=${ABI};;
-   esac
-   export GMPABI
-
-   tc-export CC
-
-   # --with-pic forces static libraries to be built as PIC
-   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
-   ECONF_SOURCE="${S}" econf \
-   CC_FOR_BUILD="$(tc-getBUILD_CC)" \
-   --localstatedir="${EPREFIX}"/var/state/gmp \
-   --enable-shared \
-   $(use_enable asm assembly) \
-   $(use_enable cxx) \
-   $(use pic && echo --with-pic) \
-   $(use_enable static-libs static)
-}
-
-multilib_src_install() {
-   emake DESTDIR="${D}" install
-
-   # Should be a standalone lib
-   rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
-
-   # This requires libgmp
-   local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
-   if ! use static-libs ; then
-   rm -f "${la}"
-   fi
-}
-
-multilib_src_install_all() {
-   einstalldocs
-   use doc && cp "${DISTDIR}"/gmp-man-${MANUAL_PV}.pdf 
"${ED}"/usr/share/doc/${PF}/
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-07 Thread Sam James
commit: a8886ad6e766552def104d2f21d0686442d74f57
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep  7 23:27:31 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep  7 23:27:31 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8886ad6

dev-libs/gmp: Stabilize 6.3.0 hppa, #913815

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index 5dc638f79b18..0ec36d5b7796 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -26,7 +26,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-07 Thread Sam James
commit: 2cd848d0903c2d417e26d5a1e57476631434b2c7
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep  7 23:01:49 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep  7 23:01:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cd848d0

dev-libs/gmp: Stabilize 6.3.0 ppc64, #913815

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index 8fef640bf2f9..672b8152e73a 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -26,7 +26,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-07 Thread Sam James
commit: 95b41a962bac8edf688703b96f927d0aba0ac748
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep  7 23:01:50 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep  7 23:01:50 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95b41a96

dev-libs/gmp: Stabilize 6.3.0 amd64, #913815

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index 672b8152e73a..5dc638f79b18 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -26,7 +26,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-07 Thread Sam James
commit: 8e9845773aecb57bc9d7441d21211dd0cd8c1a3b
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep  7 20:52:38 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep  7 20:52:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e984577

dev-libs/gmp: Stabilize 6.3.0 sparc, #913815

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index 4bd29835409a..8fef640bf2f9 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -26,7 +26,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-07 Thread Sam James
commit: 77d24014fb6e588a28b149fca92381b349da769a
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep  7 20:52:37 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep  7 20:52:37 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77d24014

dev-libs/gmp: Stabilize 6.3.0 arm64, #913815

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index 503807184731..4bd29835409a 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -26,7 +26,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-07 Thread Sam James
commit: dbcdc84332b25ee08db5594ab4be223713a18198
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep  7 20:52:35 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep  7 20:52:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbcdc843

dev-libs/gmp: Stabilize 6.3.0 x86, #913815

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index f96c0cf02b30..91bd6a7c5ee3 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -26,7 +26,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-09-07 Thread Sam James
commit: e8630e3b5896b1c99a102fe760eb80f74b6f895f
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep  7 20:52:36 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep  7 20:52:36 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8630e3b

dev-libs/gmp: Stabilize 6.3.0 arm, #913815

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index 91bd6a7c5ee3..503807184731 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -26,7 +26,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-07-30 Thread Sam James
commit: d89510821e84ece8bf057f57f297016fae114e06
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 30 17:01:19 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 30 17:01:19 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8951082

dev-libs/gmp: add comment wrt no pgo

Bug: https://bugs.gentoo.org/454912
Bug: https://bugs.gentoo.org/650558
Bug: https://bugs.gentoo.org/658688
Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 4 
 1 file changed, 4 insertions(+)

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
index 0891330f69e3..f96c0cf02b30 100644
--- a/dev-libs/gmp/gmp-6.3.0.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -140,6 +140,10 @@ multilib_src_configure() {
# --with-pic forces static libraries to be built as PIC
# and without TEXTRELs. musl does not support TEXTRELs: bug 
#707332
$(use pic && echo --with-pic)
+
+   # XXX: In the past, we had PGO support with upstream's 'tuneup' 
script
+   # per https://gmplib.org/manual/Performance-optimization, but 
we had
+   # a variety of issues with it: bug #454912, bug #650558, and 
bug #658688.
)
 
# Move the wrappers from GMP back into place (may have been destroyed 
by previous econf run)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-07-30 Thread Sam James
commit: a879c9754ae3013f31fae0cac7b5d93c078543a7
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 30 13:49:28 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 30 13:49:28 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a879c975

dev-libs/gmp: add 6.3.0

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/Manifest |   1 +
 dev-libs/gmp/gmp-6.3.0.ebuild | 182 ++
 2 files changed, 183 insertions(+)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index 846b78dc7601..bb161b9f1dee 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,3 +1,4 @@
 DIST gmp-6.2.1-arm64-darwin.patch.bz2 2520 BLAKE2B 
3d4e9dbd29dc9aa81f0c9e0de4a5904c989d54148c9e3dcc5097a43b3fb1ecd17802dacfc71ee131c0805a345f5dce9009e88439758d3a0ed8b3a88526353b4a
 SHA512 
72d49f09c3facd75036c945e076207e72e5673ba9605999c32a122e43e8b970ed646c8ca8f07acbb62bff5e7c387d4c8e1f73ca73e50ac3f574b5f6471d66d56
 DIST gmp-6.2.1.tar.xz 2027316 BLAKE2B 
c0d85f175392a50cfa01bc6b0a312b235946ad8b4f6f84f6dabd33d7a6f2cc75c9b0e1e33057be07750bfa0145b7c4cf3b6188a5be6ca9d7271ec2276c84ebcb
 SHA512 
c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
+DIST gmp-6.3.0.tar.xz 2094196 BLAKE2B 
a865129e2b3f634ec5bad7f97ed89532e43f5662ac47a7d8ab7f0df8c9f8d0886bd984651422e2573c2163bca69c0547c248147ec90880accbd53db97dc0ddee
 SHA512 
e85a0dab5195889948a3462189f0e0598d331d3457612e2d3350799dba2e244316d256f8161df5219538eb003e4b5343f989aaa00f96321559063ed8c8f29fd2
 DIST gmp-man-6.2.1.pdf 827583 BLAKE2B 
9aa25457a3c488e37cc7d54d825253ab749a3780919570579b319cf607001de50b212ca387b70213abcc5ab428b4525bdb9cd8ae932798a2d7928da98ce3f353
 SHA512 
f2d9d02e97975355ef490e921fedc94fb7687c3661eec8fa2e94a1622b6e59b17b3879eb3ec1f2df8edac100f727175144d107f4c49c602b773c43bc9e91dbcb

diff --git a/dev-libs/gmp/gmp-6.3.0.ebuild b/dev-libs/gmp/gmp-6.3.0.ebuild
new file mode 100644
index ..0891330f69e3
--- /dev/null
+++ b/dev-libs/gmp/gmp-6.3.0.ebuild
@@ -0,0 +1,182 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit gnuconfig libtool flag-o-matic multilib-minimal toolchain-funcs
+
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+
+MANUAL_PV=${MY_PV}
+MANUAL_PV=6.2.1
+
+MY_P=${PN}-${MY_PV}
+PLEVEL=${PV/*p}
+
+DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
+HOMEPAGE="https://gmplib.org/;
+SRC_URI="
+   https://gmplib.org/download/gmp/${MY_P}.tar.xz
+   mirror://gnu/${PN}/${MY_P}.tar.xz
+   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )
+"
+S="${WORKDIR}"/${MY_P%a}
+
+LICENSE="|| ( LGPL-3+ GPL-2+ )"
+# The subslot reflects the C & C++ SONAMEs.
+SLOT="0/10.4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+IUSE="+asm doc +cpudetection +cxx pic static-libs"
+REQUIRED_USE="cpudetection? ( asm )"
+RESTRICT="!cpudetection? ( bindist )"
+
+BDEPEND="
+   app-arch/xz-utils
+   sys-devel/m4
+"
+
+DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
+HTML_DOCS=( doc )
+
+MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
+   "${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
+)
+
+pkg_pretend() {
+   if use cpudetection && ! use amd64 && ! use x86 ; then
+   elog "Using generic C implementation on non-amd64/x86 with 
USE=cpudetection"
+   elog "--enable-fat is a no-op on alternative arches."
+   elog "To obtain an optimized build, set USE=-cpudetection, but 
binpkgs should not then be made."
+   fi
+}
+
+src_prepare() {
+   default
+
+   # We cannot run autotools here as gcc depends on this package
+   elibtoolize
+
+   # bug #536894
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
+   fi
+
+   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
+   # So, to avoid patching the source constantly, wrap things up.
+   mv configure configure.wrapped || die
+   cat <<-\EOF > configure
+   #!/usr/bin/env sh
+   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
+   EOF
+
+   # Patches to original configure might have lost the +x bit.
+   chmod a+rx configure{,.wrapped} || die
+
+   # Save the upstream files named config.{guess,sub} which are
+   # wrappers around the gnuconfig versions.
+   mkdir "${T}"/gmp-gnuconfig || die
+   mv config.guess "${T}"/gmp-gnuconfig/config.guess || die
+   mv config.sub "${T}"/gmp-gnuconfig/config.sub || die
+   # Grab fresh copies from gnuconfig.
+   touch config.guess config.sub || die
+   gnuconfig_update
+   # Rename 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-05-08 Thread Sam James
commit: 28a7be8c9e3b551771c4ba5ad6f31cd28c4074d9
Author: Sam James  gentoo  org>
AuthorDate: Mon May  8 07:35:40 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May  8 07:36:05 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28a7be8c

dev-libs/gmp: fix MissingInherits

Closes: https://bugs.gentoo.org/905920
Fixes: 570a3e436ff2a642f9470809fdc8ef63ce560494
Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 4fc7e6093e5d..f2cf7e98c6d9 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit libtool multilib-minimal toolchain-funcs
+inherit libtool flag-o-matic multilib-minimal toolchain-funcs
 
 MY_PV=${PV/_p*}
 MY_PV=${MY_PV/_/-}

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index 48ef9cdfac29..58542549983b 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit gnuconfig libtool multilib-minimal toolchain-funcs
+inherit gnuconfig libtool flag-o-matic multilib-minimal toolchain-funcs
 
 MY_PV=${PV/_p*}
 MY_PV=${MY_PV/_/-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-05-07 Thread Sam James
commit: 570a3e436ff2a642f9470809fdc8ef63ce560494
Author: Sam James  gentoo  org>
AuthorDate: Sun May  7 23:53:29 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun May  7 23:53:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=570a3e43

dev-libs/gmp: strip-flags & filter-lto for miscompilation

Miscompiled on arm64 with LTO at least. strip-flags as well because gmp is so
brittle (see e.g. the past configure mess).

Bug: https://bugs.gentoo.org/889948
Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 5 +
 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 5 +
 2 files changed, 10 insertions(+)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 6cabb0d5213b..4fc7e6093e5d 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -66,6 +66,11 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+   # Generally a very fragile package
+   strip-flags
+   # Miscompiled with LTO at least on arm64, bug #889948
+   filter-lto
+
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
# https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
if [[ ${CHOST} == hppa2.0-* ]] ; then

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index a3c223b16e40..48ef9cdfac29 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -94,6 +94,11 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+   # Generally a very fragile package
+   strip-flags
+   # Miscompiled with LTO at least on arm64, bug #889948
+   filter-lto
+
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
# https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
if [[ ${CHOST} == hppa2.0-* ]] ; then



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-01-28 Thread Arthur Zamarin
commit: 41be178f55e7a4f36b9d287398d679fd7877d8bd
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Jan 28 19:07:20 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Jan 28 19:07:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41be178f

dev-libs/gmp: Stabilize 6.2.1-r5 hppa, #892157

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index 6c7b9275a84a..be3203afdc82 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -27,7 +27,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-01-27 Thread Jakov Smolić
commit: 3e46a98b6d36cbdc822656f70b833770b0c36621
Author: Jakov Smolić  gentoo  org>
AuthorDate: Fri Jan 27 10:10:13 2023 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Fri Jan 27 10:10:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e46a98b

dev-libs/gmp: Stabilize 6.2.1-r5 amd64, #892157

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index 497071d248dc..6c7b9275a84a 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -27,7 +27,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-01-26 Thread Sam James
commit: d6ec6218cbdb5612add8ebd3953620a27f66a2cb
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 27 06:31:44 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 27 06:31:44 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ec6218

dev-libs/gmp: Stabilize 6.2.1-r5 arm, #892157

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index 8ad086d2e52f..4512e22e2c27 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -27,7 +27,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-01-26 Thread Sam James
commit: ccce7403dfc7988e0150ac0ef0955534dcf86d27
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 27 06:30:29 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 27 06:30:29 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccce7403

dev-libs/gmp: Stabilize 6.2.1-r5 ppc, #892157

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index c26bb0b6b9c7..8ad086d2e52f 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -27,7 +27,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-01-26 Thread Sam James
commit: 72dba0d308c44f419ceeae50e441555d41061213
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 27 06:27:13 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 27 06:27:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72dba0d3

dev-libs/gmp: Stabilize 6.2.1-r5 arm64, #892157

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index 9b476e64b0cb..b7397f83874f 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -27,7 +27,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-01-26 Thread Sam James
commit: ec31264de0c68a2edd37a0961f51bf14ad932dcb
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 27 06:27:14 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 27 06:27:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec31264d

dev-libs/gmp: Stabilize 6.2.1-r5 sparc, #892157

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index b7397f83874f..c26bb0b6b9c7 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -27,7 +27,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2023-01-26 Thread Sam James
commit: 051062996bfa7779e850ec53a1b8ab16b3787389
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 27 06:23:31 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 27 06:23:31 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05106299

dev-libs/gmp: Stabilize 6.2.1-r5 x86, #892157

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index 566858f65c45..9b476e64b0cb 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -27,7 +27,7 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
 RESTRICT="!cpudetection? ( bindist )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2022-12-15 Thread Sam James
commit: 06a2dd096bf3660adcbef250a2b79fdec3cd3a4b
Author: Sam James  gentoo  org>
AuthorDate: Fri Dec 16 07:11:22 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 16 07:16:40 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06a2dd09

dev-libs/gmp: switch to HTTPS for SRC_URI

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 6 --
 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 6 --
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 85974f6f50d9..ae2140240b2a 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -13,9 +13,11 @@ MY_P=${PN}-${MY_PV}
 PLEVEL=${PV/*p}
 DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
 HOMEPAGE="https://gmplib.org/;
-SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+SRC_URI="
+   https://gmplib.org/download/gmp/${MY_P}.tar.xz
mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
+   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )
+"
 SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-darwin.patch.bz2;
 
 LICENSE="|| ( LGPL-3+ GPL-2+ )"

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index 2e867d0047e9..566858f65c45 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -16,9 +16,11 @@ PLEVEL=${PV/*p}
 
 DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
 HOMEPAGE="https://gmplib.org/;
-SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+SRC_URI="
+   https://gmplib.org/download/gmp/${MY_P}.tar.xz
mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
+   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )
+"
 SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-darwin.patch.bz2;
 S="${WORKDIR}"/${MY_P%a}
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2022-12-06 Thread Sam James
commit: 2e58af672b41a624f84eb7fada145ab2f6c2b1b6
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec  6 10:48:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec  6 10:52:50 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e58af67

dev-libs/gmp: further econf fixes

* Use gnuconfig.eclass to update configfsf.{guess,sub} before the wrapped
  versions call them.
* Export CBUILD too just in case for the deduced host from upstream's wrapped
  config.guess (not the same as gnuconfig's at all, see bugs for details).
* Save/restore upstream's config.{guess,sub} to make sure that for the second
  multilib build we still have it available to run. In practice, this may not
  have mattered too much, as the exported ac_cv_host should've persisted, but
  it's still worth being (clearly) correct as is the case now.
* Move cpudetection warning into pkg_pretend so it's easier to spot and
  we also don't then repeat it for each ABI.

Bug: https://bugs.gentoo.org/235697
Bug: https://bugs.gentoo.org/545442
Bug: https://bugs.gentoo.org/883201
See: 78b4d4ebbcee12f5ef4c1dfa89f80c98a582db9d
See: 3fe1b5370c0cc1537d1249e8ec9d2fbcd8619499
See: bf286a7973d8b95dbef90f17cc8e2d66c19a47c8
See: 121152c38caefd8e94fb8c90cb51102693b6d6a8
Signed-off-by: Sam James  gentoo.org>

 .../{gmp-6.2.1-r4.ebuild => gmp-6.2.1-r5.ebuild}   | 32 ++
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r4.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
similarity index 84%
rename from dev-libs/gmp/gmp-6.2.1-r4.ebuild
rename to dev-libs/gmp/gmp-6.2.1-r5.ebuild
index 0a58fc8ba3b4..2e867d0047e9 100644
--- a/dev-libs/gmp/gmp-6.2.1-r4.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit libtool multilib-minimal toolchain-funcs
+inherit gnuconfig libtool multilib-minimal toolchain-funcs
 
 MY_PV=${PV/_p*}
 MY_PV=${MY_PV/_/-}
@@ -47,6 +47,14 @@ PATCHES=(
"${FILESDIR}"/${P}-CVE-2021-43618.patch
 )
 
+pkg_pretend() {
+   if use cpudetection && ! use amd64 && ! use x86 ; then
+   elog "Using generic C implementation on non-amd64/x86 with 
USE=cpudetection"
+   elog "--enable-fat is a no-op on alternative arches."
+   elog "To obtain an optimized build, set USE=-cpudetection, but 
binpkgs should not then be made."
+   fi
+}
+
 src_prepare() {
default
 
@@ -68,6 +76,19 @@ src_prepare() {
 
# Patches to original configure might have lost the +x bit.
chmod a+rx configure{,.wrapped} || die
+
+   # Save the upstream files named config.{guess,sub} which are
+   # wrappers around the gnuconfig versions.
+   mkdir "${T}"/gmp-gnuconfig || die
+   mv config.guess "${T}"/gmp-gnuconfig/config.guess || die
+   mv config.sub "${T}"/gmp-gnuconfig/config.sub || die
+   # Grab fresh copies from gnuconfig.
+   touch config.guess config.sub || die
+   gnuconfig_update
+   # Rename the fresh copies to the filenames the wrappers from GMP
+   # expect.
+   mv config.guess configfsf.guess || die
+   mv config.sub configfsf.sub || die
 }
 
 multilib_src_configure() {
@@ -115,11 +136,9 @@ multilib_src_configure() {
$(use pic && echo --with-pic)
)
 
-   if use cpudetection && ! use amd64 && ! use x86 ; then
-   elog "Using generic C implementation on non-amd64/x86 with 
USE=cpudetection"
-   elog "--enable-fat is a no-op on alternative arches."
-   elog "To obtain an optimized build, set USE=-cpudetection, but 
binpkgs should not then be made."
-   fi
+   # Move the wrappers from GMP back into place (may have been destroyed 
by previous econf run)
+   cp "${T}"/gmp-gnuconfig/config.guess "${S}"/config.guess || die
+   cp "${T}"/gmp-gnuconfig/config.sub "${S}"/config.sub || die
 
# See bug #883201 again.
if ! use cpudetection && ! tc-is-cross-compiler ; then
@@ -131,6 +150,7 @@ multilib_src_configure() {
 
einfo "GMP guessed processor type: ${gmp_host}"
ewarn "This build will only work on this machine. Enable 
USE=cpudetection for binary packages!"
+   export ac_cv_build="${gmp_host}"
export ac_cv_host="${gmp_host}"
fi
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/, profiles/arch/amd64/, profiles/arch/x86/, profiles/arch/base/

2022-11-30 Thread Sam James
commit: 121152c38caefd8e94fb8c90cb51102693b6d6a8
Author: Sam James  gentoo  org>
AuthorDate: Thu Dec  1 03:26:54 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Dec  1 03:41:54 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=121152c3

dev-libs/gmp: allow automatic detection of host for USE=-cpudetection

Bug: https://bugs.gentoo.org/883201
Closes: https://bugs.gentoo.org/235697
Closes: https://bugs.gentoo.org/545442
Signed-off-by: Sam James  gentoo.org>

 .../{gmp-6.2.1-r3.ebuild => gmp-6.2.1-r4.ebuild}   | 32 +++---
 dev-libs/gmp/metadata.xml  | 13 -
 profiles/arch/amd64/package.use.mask   |  4 ---
 profiles/arch/base/package.use.mask|  4 ---
 profiles/arch/x86/package.use.mask |  4 ---
 5 files changed, 40 insertions(+), 17 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r3.ebuild b/dev-libs/gmp/gmp-6.2.1-r4.ebuild
similarity index 71%
rename from dev-libs/gmp/gmp-6.2.1-r3.ebuild
rename to dev-libs/gmp/gmp-6.2.1-r4.ebuild
index 8e7bca104d30..0a58fc8ba3b4 100644
--- a/dev-libs/gmp/gmp-6.2.1-r3.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r4.ebuild
@@ -25,10 +25,10 @@ S="${WORKDIR}"/${MY_P%a}
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-# Unkeyworded temporarily for some more testing
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cpudetection +cxx pic static-libs"
 REQUIRED_USE="cpudetection? ( asm )"
+RESTRICT="!cpudetection? ( bindist )"
 
 BDEPEND="
app-arch/xz-utils
@@ -99,8 +99,13 @@ multilib_src_configure() {
# or specific-to-used-CPU (which our config.guess refresh 
prevents at the moment).
# Both Fedora and opensuse use this option to tackle the issue, 
bug #883201.
#
-   # This only works for x86, so we're still getting non-performant
-   # builds on other arches until we figure something out!
+   # This only works for amd64/x86, so to get accelerated 
performance
+   # (i.e. not using the generic C), one needs USE=-cpudetection if
+   # on non-amd64/x86.
+   #
+   # (We do not mask USE=cpudetection on !amd64/x86 because we want
+   # the flag to be useful on other arches to allow opting out of 
the
+   # config.guess logic below.)
$(use_enable cpudetection fat)
$(use_enable cxx)
$(use_enable static-libs static)
@@ -110,6 +115,25 @@ multilib_src_configure() {
$(use pic && echo --with-pic)
)
 
+   if use cpudetection && ! use amd64 && ! use x86 ; then
+   elog "Using generic C implementation on non-amd64/x86 with 
USE=cpudetection"
+   elog "--enable-fat is a no-op on alternative arches."
+   elog "To obtain an optimized build, set USE=-cpudetection, but 
binpkgs should not then be made."
+   fi
+
+   # See bug #883201 again.
+   if ! use cpudetection && ! tc-is-cross-compiler ; then
+   local gmp_host=$("${S}"/config.guess || die "failed to run 
config.guess")
+
+   if [[ -z ${gmp_host} ]] ; then
+   die "Empty result from GMP's custom config.guess!"
+   fi
+
+   einfo "GMP guessed processor type: ${gmp_host}"
+   ewarn "This build will only work on this machine. Enable 
USE=cpudetection for binary packages!"
+   export ac_cv_host="${gmp_host}"
+   fi
+
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 

diff --git a/dev-libs/gmp/metadata.xml b/dev-libs/gmp/metadata.xml
index 753f212d3e39..591e777c6165 100644
--- a/dev-libs/gmp/metadata.xml
+++ b/dev-libs/gmp/metadata.xml
@@ -7,7 +7,18 @@


Enable use of hand optimized assembly routines 
(faster execution)
-   Enables runtime CPU detection (useful 
for binpkgs, compatibility on other CPUs)
+   
+   Enables runtime CPU detection (useful for binpkgs, 
compatibility on other CPUs).
+
+   This only works on amd64/x86 at present.
+
+   If this flag is enabled, GMP will work on a variety of 
amd64/x86 CPUs and load accelerated
+   routines for use at runtime depending on the CPU in 
use. This makes it suitable
+   for binary packages (binpkgs).
+
+   If this flag is disabled, GMP will be tuned for the 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2022-11-30 Thread Sam James
commit: 3fe1b5370c0cc1537d1249e8ec9d2fbcd8619499
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 30 08:15:17 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 30 08:31:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fe1b537

dev-libs/gmp: link to upstream packaging notes

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r3.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-libs/gmp/gmp-6.2.1-r3.ebuild b/dev-libs/gmp/gmp-6.2.1-r3.ebuild
index 840288dd1207..dc0cb7b4c773 100644
--- a/dev-libs/gmp/gmp-6.2.1-r3.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r3.ebuild
@@ -86,6 +86,7 @@ multilib_src_configure() {
 
tc-export CC
 
+   # https://gmplib.org/manual/Notes-for-Package-Builds
local myeconfargs=(
CC_FOR_BUILD="$(tc-getBUILD_CC)"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2022-11-29 Thread Sam James
commit: ac6d65a9d950dc7355cb563ad152306c7d951e6b
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 30 07:22:19 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 30 07:22:19 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac6d65a9

dev-libs/gmp: drop 6.2.1-r1

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 108 ---
 1 file changed, 108 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
deleted file mode 100644
index 8f30f9f28ee6..
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit libtool multilib-minimal toolchain-funcs
-
-MY_PV=${PV/_p*}
-MY_PV=${MY_PV/_/-}
-MANUAL_PV=${MY_PV}
-MANUAL_PV=6.2.1
-MY_P=${PN}-${MY_PV}
-PLEVEL=${PV/*p}
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
-   mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
-
-LICENSE="|| ( LGPL-3+ GPL-2+ )"
-# The subslot reflects the C & C++ SONAMEs.
-SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc +cxx pic static-libs"
-
-BDEPEND="sys-devel/m4
-   app-arch/xz-utils"
-
-S=${WORKDIR}/${MY_P%a}
-
-DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
-HTML_DOCS=( doc )
-MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
-   "${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
-)
-
-src_prepare() {
-   default
-
-   # We cannot run autotools here as gcc depends on this package
-   elibtoolize
-
-   # bug #536894
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
-   fi
-
-   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
-   # So, to avoid patching the source constantly, wrap things up.
-   mv configure configure.wrapped || die
-   cat <<-\EOF > configure
-   #!/usr/bin/env sh
-   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
-   EOF
-
-   # Patches to original configure might have lost the +x bit.
-   chmod a+rx configure{,.wrapped} || die
-}
-
-multilib_src_configure() {
-   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
-   if [[ ${CHOST} == hppa2.0-* ]] ; then
-   GMPABI="1.0"
-   fi
-
-   # ABI mappings (needs all architectures supported)
-   case ${ABI} in
-   32|x86)   GMPABI=32;;
-   64|amd64|n64) GMPABI=64;;
-   [onx]32)  GMPABI=${ABI};;
-   esac
-   export GMPABI
-
-   tc-export CC
-
-   # --with-pic forces static libraries to be built as PIC
-   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
-   ECONF_SOURCE="${S}" econf \
-   CC_FOR_BUILD="$(tc-getBUILD_CC)" \
-   --localstatedir="${EPREFIX}"/var/state/gmp \
-   --enable-shared \
-   $(use_enable asm assembly) \
-   $(use_enable cxx) \
-   $(use pic && echo --with-pic) \
-   $(use_enable static-libs static)
-}
-
-multilib_src_install() {
-   emake DESTDIR="${D}" install
-
-   # Should be a standalone lib
-   rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
-
-   # This requires libgmp
-   local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
-   if ! use static-libs ; then
-   rm -f "${la}"
-   fi
-}
-
-multilib_src_install_all() {
-   einstalldocs
-   use doc && cp "${DISTDIR}"/gmp-man-${MANUAL_PV}.pdf 
"${ED}"/usr/share/doc/${PF}/
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2022-11-29 Thread Sam James
commit: 78b4d4ebbcee12f5ef4c1dfa89f80c98a582db9d
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 30 07:37:50 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 30 07:48:13 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78b4d4eb

dev-libs/gmp: pass --enable-fat for x86 (includes more asm)

Vanilla (_not_ from an ebuild) gmp will probe CHOST and then
deduce its *own* tuple based on the currently used CPU, abusing
its own custom config.guess (which our econf overwrites). This
value is used to decide which accelerated asm is compiled in (MPN_PATH).

In ebuilds, we override and refresh config.guess and friends because
it's a common portability problem to have stale versions which don't
even recognise e.g. riscv as an arch. But gmp's non-standard use
of these files poses a problem for us.

We can't simply resort to just not refreshing/changing the files
because we need to be able to build binary packages on a system
without them being super specific to the machine they were built
on with no way of controlling it (we may want to look at a USE
flag for this going forward though).

For now, we can use --enable-fat which produces a generic libgmp
which can load various asm at runtime based on the CPU in use - success!

Unfortunately, --enable-fat only does anything on x86 for the time
being, so !x86 is still in the same situation as before this commit,
but this is progress at least.

Thanks goes to Nikita Zlobin  gmail.com> for noticing
the problem originally (and being persistent with investigating it).

Temporarily unkeyworded until I can test this a bit more.

Bug: https://bugs.gentoo.org/883201
Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r3.ebuild | 130 +++
 1 file changed, 130 insertions(+)

diff --git a/dev-libs/gmp/gmp-6.2.1-r3.ebuild b/dev-libs/gmp/gmp-6.2.1-r3.ebuild
new file mode 100644
index ..840288dd1207
--- /dev/null
+++ b/dev-libs/gmp/gmp-6.2.1-r3.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit libtool multilib-minimal toolchain-funcs
+
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+
+MANUAL_PV=${MY_PV}
+MANUAL_PV=6.2.1
+
+MY_P=${PN}-${MY_PV}
+PLEVEL=${PV/*p}
+
+DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
+HOMEPAGE="https://gmplib.org/;
+SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+   mirror://gnu/${PN}/${MY_P}.tar.xz
+   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-darwin.patch.bz2;
+S="${WORKDIR}"/${MY_P%a}
+
+LICENSE="|| ( LGPL-3+ GPL-2+ )"
+# The subslot reflects the C & C++ SONAMEs.
+SLOT="0/10.4"
+# Unkeyworded temporarily for some more testing
+#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+asm doc +cxx pic static-libs"
+
+BDEPEND="
+   app-arch/xz-utils
+   sys-devel/m4
+"
+
+DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
+HTML_DOCS=( doc )
+
+MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
+   "${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
+   "${WORKDIR}"/${P}-arm64-darwin.patch
+   "${FILESDIR}"/${P}-CVE-2021-43618.patch
+)
+
+src_prepare() {
+   default
+
+   # We cannot run autotools here as gcc depends on this package
+   elibtoolize
+
+   # bug #536894
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
+   fi
+
+   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
+   # So, to avoid patching the source constantly, wrap things up.
+   mv configure configure.wrapped || die
+   cat <<-\EOF > configure
+   #!/usr/bin/env sh
+   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
+   EOF
+
+   # Patches to original configure might have lost the +x bit.
+   chmod a+rx configure{,.wrapped} || die
+}
+
+multilib_src_configure() {
+   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   if [[ ${CHOST} == hppa2.0-* ]] ; then
+   GMPABI="1.0"
+   fi
+
+   # ABI mappings (needs all architectures supported)
+   case ${ABI} in
+   32|x86)   GMPABI=32;;
+   64|amd64|n64) GMPABI=64;;
+   [onx]32)  GMPABI=${ABI};;
+   esac
+   export GMPABI
+
+   tc-export CC
+
+   local myeconfargs=(
+   CC_FOR_BUILD="$(tc-getBUILD_CC)"
+
+   --localstatedir="${EPREFIX}"/var/state/gmp
+   

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2022-01-02 Thread David Seifert
commit: b01137ded6d407d0e418c03b0442effa14327588
Author: David Seifert  gentoo  org>
AuthorDate: Sun Jan  2 09:13:22 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Jan  2 09:13:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b01137de

dev-libs/gmp: remove mintlib

Signed-off-by: David Seifert  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 9 ++---
 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 9 ++---
 2 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 2b5f277c706b..8f30f9f28ee6 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit flag-o-matic libtool multilib-minimal toolchain-funcs
+inherit libtool multilib-minimal toolchain-funcs
 
 MY_PV=${PV/_p*}
 MY_PV=${MY_PV/_/-}
@@ -75,11 +75,6 @@ multilib_src_configure() {
esac
export GMPABI
 
-   # bug #367719
-   if [[ ${CHOST} == *-mint* ]]; then
-   filter-flags -O?
-   fi
-
tc-export CC
 
# --with-pic forces static libraries to be built as PIC

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 9911396d0077..9f52d12e043a 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit flag-o-matic libtool multilib-minimal toolchain-funcs
+inherit libtool multilib-minimal toolchain-funcs
 
 MY_PV=${PV/_p*}
 MY_PV=${MY_PV/_/-}
@@ -78,11 +78,6 @@ multilib_src_configure() {
esac
export GMPABI
 
-   # bug #367719
-   if [[ ${CHOST} == *-mint* ]]; then
-   filter-flags -O?
-   fi
-
tc-export CC
 
# --with-pic forces static libraries to be built as PIC



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-12-21 Thread Sam James
commit: 26e7382699eb84b82b8a258e7e6b8990bdaaac17
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Tue Dec 21 08:44:57 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Dec 22 00:41:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26e73826

dev-libs/gmp: stable 6.2.1-r2 for hppa, bug #829387

Package-Manager: Portage-3.0.28, Repoman-3.0.3
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index c7ef5a043399..9911396d0077 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -21,7 +21,7 @@ SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-da
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-12-17 Thread Sam James
commit: 218813f920ce990dc17f66223307c9eaeeb43099
Author: Sam James  gentoo  org>
AuthorDate: Fri Dec 17 11:59:37 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 17 11:59:37 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=218813f9

dev-libs/gmp: Stabilize 6.2.1-r2 ppc, #829387

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 6e7140dac86d..b1e3cbc5edab 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -21,7 +21,7 @@ SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-da
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-12-17 Thread Sam James
commit: 687abb911eaa6c1071b5770462869742f5c5ca8d
Author: Sam James  gentoo  org>
AuthorDate: Fri Dec 17 11:59:54 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 17 11:59:54 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=687abb91

dev-libs/gmp: Stabilize 6.2.1-r2 ppc64, #829387

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index b1e3cbc5edab..c7ef5a043399 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -21,7 +21,7 @@ SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-da
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-12-17 Thread Jakov Smolić
commit: 4f5b1136ad8c7fec23f77dba21d3e9856a171940
Author: Jakov Smolić  gentoo  org>
AuthorDate: Fri Dec 17 09:18:47 2021 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Fri Dec 17 09:18:47 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f5b1136

dev-libs/gmp: Stabilize 6.2.1-r2 amd64, #829387

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 989c4b31e76b..fef6f8a9e582 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -21,7 +21,7 @@ SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-da
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-12-17 Thread Jakov Smolić
commit: 185dbdaf2cdb4b0380dfc34951ef01977b9f9be5
Author: Jakov Smolić  gentoo  org>
AuthorDate: Fri Dec 17 09:19:16 2021 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Fri Dec 17 09:19:16 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=185dbdaf

dev-libs/gmp: Stabilize 6.2.1-r2 x86, #829387

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index fef6f8a9e582..6e7140dac86d 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -21,7 +21,7 @@ SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-da
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-12-16 Thread Arthur Zamarin
commit: 9815f5c70fad37d4152470d6a0ea6018c9a2c286
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Dec 17 07:55:02 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Dec 17 07:55:16 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9815f5c7

dev-libs/gmp: Stabilize 6.2.1-r2 arm, #829387

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 3c1eea0e40e3..989c4b31e76b 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -21,7 +21,7 @@ SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-da
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-12-16 Thread Arthur Zamarin
commit: ff369f03eb69aa91021c58006098277ee6591af3
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Dec 17 07:32:17 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Dec 17 07:32:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff369f03

dev-libs/gmp: Stabilize 6.2.1-r2 arm64, #829387

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 1997cb21dcdb..3c1eea0e40e3 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -21,7 +21,7 @@ SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-da
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-12-16 Thread Arthur Zamarin
commit: c1e478965cfd3927a1d1bc7f23171a7770c8f1bc
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Dec 17 07:32:08 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Dec 17 07:32:49 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1e47896

dev-libs/gmp: Stabilize 6.2.1-r2 sparc, #829387

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index f228e714b6e2..1997cb21dcdb 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -21,7 +21,7 @@ SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-da
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/, dev-libs/gmp/files/

2021-11-24 Thread Sam James
commit: 0c55fe4bf46a1b867746a6ead419fce585d0d456
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov 25 02:41:44 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov 25 02:45:24 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c55fe4b

dev-libs/gmp: add patch for CVE-2021-43618; add Darwin arm64 patch

Apply two upstream patches:
- Fix CVE-2021-43618
- Fix incorrect use of reserved register on Darwin/arm64

Bug: https://bugs.gentoo.org/823804
Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/Manifest |   1 +
 dev-libs/gmp/files/gmp-6.2.1-CVE-2021-43618.patch |  17 
 dev-libs/gmp/gmp-6.2.1-r2.ebuild  | 116 ++
 3 files changed, 134 insertions(+)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index 4db6b7b96743..846b78dc7601 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,2 +1,3 @@
+DIST gmp-6.2.1-arm64-darwin.patch.bz2 2520 BLAKE2B 
3d4e9dbd29dc9aa81f0c9e0de4a5904c989d54148c9e3dcc5097a43b3fb1ecd17802dacfc71ee131c0805a345f5dce9009e88439758d3a0ed8b3a88526353b4a
 SHA512 
72d49f09c3facd75036c945e076207e72e5673ba9605999c32a122e43e8b970ed646c8ca8f07acbb62bff5e7c387d4c8e1f73ca73e50ac3f574b5f6471d66d56
 DIST gmp-6.2.1.tar.xz 2027316 BLAKE2B 
c0d85f175392a50cfa01bc6b0a312b235946ad8b4f6f84f6dabd33d7a6f2cc75c9b0e1e33057be07750bfa0145b7c4cf3b6188a5be6ca9d7271ec2276c84ebcb
 SHA512 
c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
 DIST gmp-man-6.2.1.pdf 827583 BLAKE2B 
9aa25457a3c488e37cc7d54d825253ab749a3780919570579b319cf607001de50b212ca387b70213abcc5ab428b4525bdb9cd8ae932798a2d7928da98ce3f353
 SHA512 
f2d9d02e97975355ef490e921fedc94fb7687c3661eec8fa2e94a1622b6e59b17b3879eb3ec1f2df8edac100f727175144d107f4c49c602b773c43bc9e91dbcb

diff --git a/dev-libs/gmp/files/gmp-6.2.1-CVE-2021-43618.patch 
b/dev-libs/gmp/files/gmp-6.2.1-CVE-2021-43618.patch
new file mode 100644
index ..90129ec5b2bd
--- /dev/null
+++ b/dev-libs/gmp/files/gmp-6.2.1-CVE-2021-43618.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/823804
+https://gmplib.org/repo/gmp-6.2/rev/561a9c25298e
+--- a/mpz/inp_raw.c
 b/mpz/inp_raw.c
+@@ -88,8 +88,11 @@ mpz_inp_raw (mpz_ptr x, FILE *fp)
+ 
+   abs_csize = ABS (csize);
+ 
++  if (UNLIKELY (abs_csize > ~(mp_bitcnt_t) 0 / 8))
++return 0; /* Bit size overflows */
++
+   /* round up to a multiple of limbs */
+-  abs_xsize = BITS_TO_LIMBS (abs_csize*8);
++  abs_xsize = BITS_TO_LIMBS ((mp_bitcnt_t) abs_csize * 8);
+ 
+   if (abs_xsize != 0)
+ {

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
new file mode 100644
index ..f228e714b6e2
--- /dev/null
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic libtool multilib-minimal toolchain-funcs
+
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+MANUAL_PV=${MY_PV}
+MANUAL_PV=6.2.1
+MY_P=${PN}-${MY_PV}
+PLEVEL=${PV/*p}
+DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
+HOMEPAGE="https://gmplib.org/;
+SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+   mirror://gnu/${PN}/${MY_P}.tar.xz
+   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-darwin.patch.bz2;
+
+LICENSE="|| ( LGPL-3+ GPL-2+ )"
+# The subslot reflects the C & C++ SONAMEs.
+SLOT="0/10.4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+asm doc +cxx pic static-libs"
+
+BDEPEND="sys-devel/m4
+   app-arch/xz-utils"
+
+S=${WORKDIR}/${MY_P%a}
+
+DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
+HTML_DOCS=( doc )
+MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
+   "${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
+   "${WORKDIR}"/${P}-arm64-darwin.patch
+   "${FILESDIR}"/${P}-CVE-2021-43618.patch
+)
+
+src_prepare() {
+   default
+
+   # We cannot run autotools here as gcc depends on this package
+   elibtoolize
+
+   # bug #536894
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
+   fi
+
+   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
+   # So, to avoid patching the source constantly, wrap things up.
+   mv configure configure.wrapped || die
+   cat <<-\EOF > configure
+   #!/usr/bin/env sh
+   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
+   EOF
+
+   # Patches to original configure might have lost the +x bit.
+   chmod a+rx 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-10-29 Thread Sam James
commit: 5c888a952dc942822d48a87fae24d36146b9fa87
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 08:36:30 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 08:48:50 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c888a95

dev-libs/gmp: use 6.2.1 docs (not 6.2.0) as they're released now

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/Manifest|  2 +-
 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 23 ++-
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index 60d06efdb2e..4db6b7b9674 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,2 +1,2 @@
 DIST gmp-6.2.1.tar.xz 2027316 BLAKE2B 
c0d85f175392a50cfa01bc6b0a312b235946ad8b4f6f84f6dabd33d7a6f2cc75c9b0e1e33057be07750bfa0145b7c4cf3b6188a5be6ca9d7271ec2276c84ebcb
 SHA512 
c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
-DIST gmp-man-6.2.0.pdf 828998 BLAKE2B 
0bf56bf0a6f1aac0e1fb9a5a37552f846a2d4a01bfd3f5b5c531d42a9afc48c19552e08971785805f59e3f2a5fd89e3f986f841dca2e340813596cfd76574e61
 SHA512 
25d129efedd329cd2d4535557c6912191f587bfd8ef028618b4ca6199ec7bf7a9ae862e7f5e5b5448c86888452a39fc7bf95cf9c18311858dd1aa9ae1c716239
+DIST gmp-man-6.2.1.pdf 827583 BLAKE2B 
9aa25457a3c488e37cc7d54d825253ab749a3780919570579b319cf607001de50b212ca387b70213abcc5ab428b4525bdb9cd8ae932798a2d7928da98ce3f353
 SHA512 
f2d9d02e97975355ef490e921fedc94fb7687c3661eec8fa2e94a1622b6e59b17b3879eb3ec1f2df8edac100f727175144d107f4c49c602b773c43bc9e91dbcb

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 46b021bec16..2b5f277c706 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -7,8 +7,8 @@ inherit flag-o-matic libtool multilib-minimal toolchain-funcs
 
 MY_PV=${PV/_p*}
 MY_PV=${MY_PV/_/-}
-MANUAL_PV=$MY_PV
-MANUAL_PV=6.2.0 # 6.2.1 manual is not ready yet
+MANUAL_PV=${MY_PV}
+MANUAL_PV=6.2.1
 MY_P=${PN}-${MY_PV}
 PLEVEL=${PV/*p}
 DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
@@ -40,10 +40,10 @@ PATCHES=(
 src_prepare() {
default
 
-   # note: we cannot run autotools here as gcc depends on this package
+   # We cannot run autotools here as gcc depends on this package
elibtoolize
 
-   # https://bugs.gentoo.org/536894
+   # bug #536894
if [[ ${CHOST} == *-darwin* ]] ; then
eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
fi
@@ -55,6 +55,7 @@ src_prepare() {
#!/usr/bin/env sh
exec env ABI="${GMPABI}" "$0.wrapped" "$@"
EOF
+
# Patches to original configure might have lost the +x bit.
chmod a+rx configure{,.wrapped} || die
 }
@@ -74,14 +75,15 @@ multilib_src_configure() {
esac
export GMPABI
 
-   #367719
+   # bug #367719
if [[ ${CHOST} == *-mint* ]]; then
filter-flags -O?
fi
 
+   tc-export CC
+
# --with-pic forces static libraries to be built as PIC
# and without TEXTRELs. musl does not support TEXTRELs: bug #707332
-   tc-export CC
ECONF_SOURCE="${S}" econf \
CC_FOR_BUILD="$(tc-getBUILD_CC)" \
--localstatedir="${EPREFIX}"/var/state/gmp \
@@ -95,11 +97,14 @@ multilib_src_configure() {
 multilib_src_install() {
emake DESTDIR="${D}" install
 
-   # should be a standalone lib
+   # Should be a standalone lib
rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
-   # this requires libgmp
+
+   # This requires libgmp
local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
-   use static-libs || rm -f "${la}"
+   if ! use static-libs ; then
+   rm -f "${la}"
+   fi
 }
 
 multilib_src_install_all() {



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-24 Thread Sergei Trofimovich
commit: 32e300df9e825f1a818054f3b6765577d694dbac
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Apr 24 12:30:17 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Apr 24 12:37:09 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32e300df

dev-libs/gmp: drop old

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 107 --
 1 file changed, 107 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
deleted file mode 100644
index 76ebdf131bd..000
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic libtool multilib-minimal toolchain-funcs
-
-MY_PV=${PV/_p*}
-MY_PV=${MY_PV/_/-}
-MANUAL_PV=$MY_PV
-MANUAL_PV=6.2.0 # 6.2.1 manual is not ready yet
-MY_P=${PN}-${MY_PV}
-PLEVEL=${PV/*p}
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
-   mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
-
-LICENSE="|| ( LGPL-3+ GPL-2+ )"
-# The subslot reflects the C & C++ SONAMEs.
-SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc +cxx pic static-libs"
-
-BDEPEND="sys-devel/m4
-   app-arch/xz-utils"
-
-S=${WORKDIR}/${MY_P%a}
-
-DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
-HTML_DOCS=( doc )
-MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
-)
-
-src_prepare() {
-   default
-
-   # note: we cannot run autotools here as gcc depends on this package
-   elibtoolize
-
-   # https://bugs.gentoo.org/536894
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
-   fi
-
-   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
-   # So, to avoid patching the source constantly, wrap things up.
-   mv configure configure.wrapped || die
-   cat <<-\EOF > configure
-   #!/usr/bin/env sh
-   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
-   EOF
-   # Patches to original configure might have lost the +x bit.
-   chmod a+rx configure{,.wrapped} || die
-}
-
-multilib_src_configure() {
-   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
-   if [[ ${CHOST} == hppa2.0-* ]] ; then
-   GMPABI="1.0"
-   fi
-
-   # ABI mappings (needs all architectures supported)
-   case ${ABI} in
-   32|x86)   GMPABI=32;;
-   64|amd64|n64) GMPABI=64;;
-   [onx]32)  GMPABI=${ABI};;
-   esac
-   export GMPABI
-
-   #367719
-   if [[ ${CHOST} == *-mint* ]]; then
-   filter-flags -O?
-   fi
-
-   # --with-pic forces static libraries to be built as PIC
-   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
-   tc-export CC
-   ECONF_SOURCE="${S}" econf \
-   CC_FOR_BUILD="$(tc-getBUILD_CC)" \
-   --localstatedir="${EPREFIX}"/var/state/gmp \
-   --enable-shared \
-   $(use_enable asm assembly) \
-   $(use_enable cxx) \
-   $(use pic && echo --with-pic) \
-   $(use_enable static-libs static)
-}
-
-multilib_src_install() {
-   emake DESTDIR="${D}" install
-
-   # should be a standalone lib
-   rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
-   # this requires libgmp
-   local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
-   use static-libs || rm -f "${la}"
-}
-
-multilib_src_install_all() {
-   einstalldocs
-   use doc && cp "${DISTDIR}"/gmp-man-${MANUAL_PV}.pdf 
"${ED}"/usr/share/doc/${PF}/
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-11 Thread Sergei Trofimovich
commit: dc6c97000695393ac10c46a68d67b2364e43a30f
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Sun Apr 11 08:35:15 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Apr 11 18:41:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc6c9700

dev-libs/gmp: stable 6.2.1-r1 for hppa, bug #779793

Package-Manager: Portage-3.0.17, Repoman-3.0.2
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index f7f50169e52..59acf2415f9 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-04 Thread Sergei Trofimovich
commit: 7d46bb9a153093500e880cd6156bbeaa3d73a3e3
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Apr  4 21:16:57 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Apr  4 21:21:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d46bb9a

dev-libs/gmp: stable 6.2.1-r1 for ppc

stable wrt bug #779793

Package-Manager: Portage-3.0.18, Repoman-3.0.3
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 824bbc01e50..f7f50169e52 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-02 Thread Sam James
commit: 411c00c6caceffa1422ff8963394cf9d483a2eb2
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr  2 14:14:05 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr  2 14:14:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=411c00c6

dev-libs/gmp: Stabilize 6.2.1-r1 sparc, #779793

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 6774058882e..4b3823ba922 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-02 Thread Sam James
commit: 66ae52b78bc5e4d8e6603ef901a03ac92873c576
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr  2 14:14:36 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr  2 14:14:36 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66ae52b7

dev-libs/gmp: Stabilize 6.2.1-r1 ppc64, #779793

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 4b3823ba922..824bbc01e50 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~riscv 
~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-02 Thread Sam James
commit: f4392daac2ce1f6ab27b3f992eeab75e67396234
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr  2 14:10:46 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr  2 14:10:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4392daa

dev-libs/gmp: Stabilize 6.2.1-r1 amd64, #779793

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 706e578d984..6774058882e 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-02 Thread Sam James
commit: d536ca054e37332367cbca87ebddafecb095546f
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr  2 14:09:33 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr  2 14:09:33 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d536ca05

dev-libs/gmp: Stabilize 6.2.1-r1 x86, #779793

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 3f36c3dd033..706e578d984 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-02 Thread Sam James
commit: 017e4c41a4afe221fcaa6e1f89772d7459069af6
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr  2 14:08:47 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr  2 14:08:47 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=017e4c41

dev-libs/gmp: Stabilize 6.2.1-r1 arm, #779793

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 69ec115cead..3f36c3dd033 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2021-04-02 Thread Sam James
commit: e19d3a1846be5afe1e06b6ca0069a15e2a6d672e
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr  2 14:07:49 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr  2 14:07:49 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e19d3a18

dev-libs/gmp: Stabilize 6.2.1-r1 arm64, #779793

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
index 9046e865110..69ec115cead 100644
--- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/, dev-libs/gmp/files/

2021-03-01 Thread Sergei Trofimovich
commit: e9697a383036e80b9d79a038d8b0e879f71db67c
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Mar  2 00:29:48 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Mar  2 00:33:33 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9697a38

dev-libs/gmp: fix s390 symbol leak on -mzarch

Reported-by: Sam James
Bug: https://bugs.gentoo.org/761310
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch |  20 ++
 dev-libs/gmp/gmp-6.2.1-r1.ebuild| 108 
 2 files changed, 128 insertions(+)

diff --git a/dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch 
b/dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch
new file mode 100644
index 000..6ba7c8aa561
--- /dev/null
+++ b/dev-libs/gmp/files/gmp-6.2.1-no-zarch.patch
@@ -0,0 +1,20 @@
+configure.ac decides whether udiv_w_sdiv.c fallback is needed
+based on $CHOST value (without $CFLAGS). longlong.h relies
+on compiler macros (relies on $CFLAGS implicitly).
+
+That leads to use of undefined macros. The workaround makes
+udiv_w_sdiv.c a no-on for -mzarch.
+
+https://bugs.gentoo.org/761310
+--- a/mpn/generic/udiv_w_sdiv.c
 b/mpn/generic/udiv_w_sdiv.c
+@@ -1,3 +1,4 @@
++#if !defined(__zarch__)
+ /* mpn_udiv_w_sdiv -- implement udiv_qrnnd on machines with only signed
+division.
+ 
+@@ -139,3 +140,4 @@ mpn_udiv_w_sdiv (mp_limb_t *rp, mp_limb_t a1, mp_limb_t 
a0, mp_limb_t d)
+   *rp = r;
+   return q;
+ }
++#endif

diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
new file mode 100644
index 000..9046e865110
--- /dev/null
+++ b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
+
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+MANUAL_PV=$MY_PV
+MANUAL_PV=6.2.0 # 6.2.1 manual is not ready yet
+MY_P=${PN}-${MY_PV}
+PLEVEL=${PV/*p}
+DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
+HOMEPAGE="https://gmplib.org/;
+SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+   mirror://gnu/${PN}/${MY_P}.tar.xz
+   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
+
+LICENSE="|| ( LGPL-3+ GPL-2+ )"
+# The subslot reflects the C & C++ SONAMEs.
+SLOT="0/10.4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+asm doc +cxx pic static-libs"
+
+BDEPEND="sys-devel/m4
+   app-arch/xz-utils"
+
+S=${WORKDIR}/${MY_P%a}
+
+DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
+HTML_DOCS=( doc )
+MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
+   "${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
+)
+
+src_prepare() {
+   default
+
+   # note: we cannot run autotools here as gcc depends on this package
+   elibtoolize
+
+   # https://bugs.gentoo.org/536894
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
+   fi
+
+   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
+   # So, to avoid patching the source constantly, wrap things up.
+   mv configure configure.wrapped || die
+   cat <<-\EOF > configure
+   #!/usr/bin/env sh
+   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
+   EOF
+   # Patches to original configure might have lost the +x bit.
+   chmod a+rx configure{,.wrapped} || die
+}
+
+multilib_src_configure() {
+   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   if [[ ${CHOST} == hppa2.0-* ]] ; then
+   GMPABI="1.0"
+   fi
+
+   # ABI mappings (needs all architectures supported)
+   case ${ABI} in
+   32|x86)   GMPABI=32;;
+   64|amd64|n64) GMPABI=64;;
+   [onx]32)  GMPABI=${ABI};;
+   esac
+   export GMPABI
+
+   #367719
+   if [[ ${CHOST} == *-mint* ]]; then
+   filter-flags -O?
+   fi
+
+   # --with-pic forces static libraries to be built as PIC
+   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
+   tc-export CC
+   ECONF_SOURCE="${S}" econf \
+   CC_FOR_BUILD="$(tc-getBUILD_CC)" \
+   --localstatedir="${EPREFIX}"/var/state/gmp \
+   --enable-shared \
+   $(use_enable asm assembly) \
+   $(use_enable cxx) \
+   $(use pic && echo --with-pic) \
+   $(use_enable static-libs static)
+}
+

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-25 Thread Sergei Trofimovich
commit: 5d1ce717bfa604e3d494798ad1b8ce983f883b4c
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Dec 25 12:12:45 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Dec 25 12:17:49 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d1ce717

dev-libs/gmp: drop old

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/Manifest|   1 -
 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 105 ---
 2 files changed, 106 deletions(-)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index 4f1e9ea0825..60d06efdb2e 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,3 +1,2 @@
-DIST gmp-6.2.0.tar.xz 2012444 BLAKE2B 
928141cf7b0b70f78b66e7bc52aecd39a5fc30e8865b6de6effb5b061ade05a5a51b4680ef2f36ea0d682b319d54ceb1c6c8ef93bde6c2eef2e8b826a34602c3
 SHA512 
a066f0456f0314a1359f553c49fc2587e484ff8ac390ff88537266a146ea373f97a1c0ba24608bf6756f4eab11c9056f103c8deb99e5b57741b4f7f0ec44b90c
 DIST gmp-6.2.1.tar.xz 2027316 BLAKE2B 
c0d85f175392a50cfa01bc6b0a312b235946ad8b4f6f84f6dabd33d7a6f2cc75c9b0e1e33057be07750bfa0145b7c4cf3b6188a5be6ca9d7271ec2276c84ebcb
 SHA512 
c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
 DIST gmp-man-6.2.0.pdf 828998 BLAKE2B 
0bf56bf0a6f1aac0e1fb9a5a37552f846a2d4a01bfd3f5b5c531d42a9afc48c19552e08971785805f59e3f2a5fd89e3f986f841dca2e340813596cfd76574e61
 SHA512 
25d129efedd329cd2d4535557c6912191f587bfd8ef028618b4ca6199ec7bf7a9ae862e7f5e5b5448c86888452a39fc7bf95cf9c18311858dd1aa9ae1c716239

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
deleted file mode 100644
index 4417fecb70c..000
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ /dev/null
@@ -1,105 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
-
-MY_PV=${PV/_p*}
-MY_PV=${MY_PV/_/-}
-MY_P=${PN}-${MY_PV}
-PLEVEL=${PV/*p}
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
-   mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
-
-LICENSE="|| ( LGPL-3+ GPL-2+ )"
-# The subslot reflects the C & C++ SONAMEs.
-SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc +cxx pic static-libs"
-
-BDEPEND="sys-devel/m4
-   app-arch/xz-utils"
-
-S=${WORKDIR}/${MY_P%a}
-
-DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
-HTML_DOCS=( doc )
-MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
-)
-
-src_prepare() {
-   default
-
-   # note: we cannot run autotools here as gcc depends on this package
-   elibtoolize
-
-   # https://bugs.gentoo.org/536894
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
-   fi
-
-   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
-   # So, to avoid patching the source constantly, wrap things up.
-   mv configure configure.wrapped || die
-   cat <<-\EOF > configure
-   #!/usr/bin/env sh
-   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
-   EOF
-   # Patches to original configure might have lost the +x bit.
-   chmod a+rx configure{,.wrapped} || die
-}
-
-multilib_src_configure() {
-   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
-   if [[ ${CHOST} == hppa2.0-* ]] ; then
-   GMPABI="1.0"
-   fi
-
-   # ABI mappings (needs all architectures supported)
-   case ${ABI} in
-   32|x86)   GMPABI=32;;
-   64|amd64|n64) GMPABI=64;;
-   [onx]32)  GMPABI=${ABI};;
-   esac
-   export GMPABI
-
-   #367719
-   if [[ ${CHOST} == *-mint* ]]; then
-   filter-flags -O?
-   fi
-
-   # --with-pic forces static libraries to be built as PIC
-   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
-   tc-export CC
-   ECONF_SOURCE="${S}" econf \
-   CC_FOR_BUILD="$(tc-getBUILD_CC)" \
-   --localstatedir="${EPREFIX}"/var/state/gmp \
-   --enable-shared \
-   $(use_enable asm assembly) \
-   $(use_enable cxx) \
-   $(use pic && echo --with-pic) \
-   $(use_enable static-libs static)
-}
-

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-23 Thread Sergei Trofimovich
commit: 959db2bc9686e70383bd096b978f97c0c5f9d675
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Wed Dec 23 13:02:44 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Dec 23 13:57:21 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=959db2bc

dev-libs/gmp: stable 6.2.1 for hppa, bug #760615

Package-Manager: Portage-3.0.9, Repoman-3.0.2
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index 1b063cd7709..4467d61aca9 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-21 Thread Sam James
commit: 992f182455e307738d5dc9ed6c6bcc8058850a18
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 22 06:28:23 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec 22 06:28:23 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=992f1824

dev-libs/gmp: Stabilize 6.2.1 s390, #760615

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index 4ffc61bb942..1b063cd7709 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-21 Thread Sam James
commit: 9460362862f82ced4f7d07c59219b188f61ea344
Author: Sam James  gentoo  org>
AuthorDate: Mon Dec 21 18:00:20 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Dec 21 18:01:04 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94603628

dev-libs/gmp: Stabilize 6.2.1 arm64, #760615

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index 84c3a6978e1..4ffc61bb942 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-21 Thread Sergei Trofimovich
commit: f08a3f7eac1371a8b25716df77d5fccd8f961032
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Dec 21 09:38:33 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Dec 21 09:38:33 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f08a3f7e

dev-libs/gmp: stable 6.2.1 for ppc64

stable wrt bug #760615

Package-Manager: Portage-3.0.12, Repoman-3.0.2
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index ad601ff0ae5..84c3a6978e1 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-20 Thread Sam James
commit: 569b2c3e84b9b130ee0dcd9abeb912f06aff6569
Author: Sam James  gentoo  org>
AuthorDate: Sun Dec 20 20:03:25 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Dec 20 20:03:25 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=569b2c3e

dev-libs/gmp: Stabilize 6.2.1 arm, #760615

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index f8fed8a6ca1..ad601ff0ae5 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-20 Thread Thomas Deutschmann
commit: 0ef19b12a2ec5b3edfa2c6110723d69c46070033
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Dec 20 16:03:32 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Dec 20 16:30:13 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ef19b12

dev-libs/gmp: x86 stable (bug #760615)

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index fcaa2178b8c..f8fed8a6ca1 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-20 Thread Sergei Trofimovich
commit: 980b52b43a64d1eca30e7b0a1a8fdf0bf25195fe
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Sun Dec 20 12:50:49 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Dec 20 12:56:15 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=980b52b4

dev-libs/gmp: stable 6.2.1 for sparc, bug #760615

Package-Manager: Portage-3.0.9, Repoman-3.0.2
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index dd9ebdde2a9..fcaa2178b8c 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-19 Thread Sam James
commit: dad68436e015a00d184fdbf9cc2d9e237ea09e44
Author: Sam James  gentoo  org>
AuthorDate: Sun Dec 20 06:33:33 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Dec 20 06:33:33 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dad68436

dev-libs/gmp: Stabilize 6.2.1 amd64, #760615

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index e117a562ea8..dd9ebdde2a9 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-12-18 Thread Sam James
commit: 30d01a616a2cf2c9fee088d6d64e68a3947f3da6
Author: Sam James  gentoo  org>
AuthorDate: Fri Dec 18 14:25:22 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 18 14:25:22 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30d01a61

dev-libs/gmp: Stabilize 6.2.1 ppc, #760615

Signed-off-by: Sam James  gentoo.org>

 dev-libs/gmp/gmp-6.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
index 85f0e1d3160..e117a562ea8 100644
--- a/dev-libs/gmp/gmp-6.2.1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -20,7 +20,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-11-15 Thread Sergei Trofimovich
commit: fa6f745b750eb668a12da9d8125edeee7008a4d4
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Nov 15 09:57:26 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Nov 15 10:24:47 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa6f745b

dev-libs/gmp: bump up to 6.2.1

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/Manifest |   1 +
 dev-libs/gmp/gmp-6.2.1.ebuild | 107 ++
 2 files changed, 108 insertions(+)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index eb46a81d00b..4f1e9ea0825 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,2 +1,3 @@
 DIST gmp-6.2.0.tar.xz 2012444 BLAKE2B 
928141cf7b0b70f78b66e7bc52aecd39a5fc30e8865b6de6effb5b061ade05a5a51b4680ef2f36ea0d682b319d54ceb1c6c8ef93bde6c2eef2e8b826a34602c3
 SHA512 
a066f0456f0314a1359f553c49fc2587e484ff8ac390ff88537266a146ea373f97a1c0ba24608bf6756f4eab11c9056f103c8deb99e5b57741b4f7f0ec44b90c
+DIST gmp-6.2.1.tar.xz 2027316 BLAKE2B 
c0d85f175392a50cfa01bc6b0a312b235946ad8b4f6f84f6dabd33d7a6f2cc75c9b0e1e33057be07750bfa0145b7c4cf3b6188a5be6ca9d7271ec2276c84ebcb
 SHA512 
c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
 DIST gmp-man-6.2.0.pdf 828998 BLAKE2B 
0bf56bf0a6f1aac0e1fb9a5a37552f846a2d4a01bfd3f5b5c531d42a9afc48c19552e08971785805f59e3f2a5fd89e3f986f841dca2e340813596cfd76574e61
 SHA512 
25d129efedd329cd2d4535557c6912191f587bfd8ef028618b4ca6199ec7bf7a9ae862e7f5e5b5448c86888452a39fc7bf95cf9c18311858dd1aa9ae1c716239

diff --git a/dev-libs/gmp/gmp-6.2.1.ebuild b/dev-libs/gmp/gmp-6.2.1.ebuild
new file mode 100644
index 000..85f0e1d3160
--- /dev/null
+++ b/dev-libs/gmp/gmp-6.2.1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
+
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+MANUAL_PV=$MY_PV
+MANUAL_PV=6.2.0 # 6.2.1 manual is not ready yet
+MY_P=${PN}-${MY_PV}
+PLEVEL=${PV/*p}
+DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
+HOMEPAGE="https://gmplib.org/;
+SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+   mirror://gnu/${PN}/${MY_P}.tar.xz
+   doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
+
+LICENSE="|| ( LGPL-3+ GPL-2+ )"
+# The subslot reflects the C & C++ SONAMEs.
+SLOT="0/10.4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+IUSE="+asm doc +cxx pic static-libs"
+
+BDEPEND="sys-devel/m4
+   app-arch/xz-utils"
+
+S=${WORKDIR}/${MY_P%a}
+
+DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
+HTML_DOCS=( doc )
+MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
+)
+
+src_prepare() {
+   default
+
+   # note: we cannot run autotools here as gcc depends on this package
+   elibtoolize
+
+   # https://bugs.gentoo.org/536894
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
+   fi
+
+   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
+   # So, to avoid patching the source constantly, wrap things up.
+   mv configure configure.wrapped || die
+   cat <<-\EOF > configure
+   #!/usr/bin/env sh
+   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
+   EOF
+   # Patches to original configure might have lost the +x bit.
+   chmod a+rx configure{,.wrapped} || die
+}
+
+multilib_src_configure() {
+   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   if [[ ${CHOST} == hppa2.0-* ]] ; then
+   GMPABI="1.0"
+   fi
+
+   # ABI mappings (needs all architectures supported)
+   case ${ABI} in
+   32|x86)   GMPABI=32;;
+   64|amd64|n64) GMPABI=64;;
+   [onx]32)  GMPABI=${ABI};;
+   esac
+   export GMPABI
+
+   #367719
+   if [[ ${CHOST} == *-mint* ]]; then
+   filter-flags -O?
+   fi
+
+   # --with-pic forces static libraries to be built as PIC
+   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
+   tc-export CC
+   ECONF_SOURCE="${S}" econf \
+   CC_FOR_BUILD="$(tc-getBUILD_CC)" \
+   --localstatedir="${EPREFIX}"/var/state/gmp \
+   --enable-shared \
+   $(use_enable asm assembly) \
+   $(use_enable cxx) \
+   $(use pic && echo 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-06-10 Thread Sergei Trofimovich
commit: e2f6c24fe4017ace9328db809422f50ccf129310
Author: Manoj Gupta  google  com>
AuthorDate: Tue Jun  9 21:06:27 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Jun 10 18:22:06 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2f6c24f

gmp: Respect portage host cc variable

Pass CC_FOR_BUILD to econf. Otherwise it invokes gcc instead of portage
specified HOST/BUILD CC.

Signed-off-by: Manoj Gupta  google.com>
Closes: https://github.com/gentoo/gentoo/pull/16150
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index 8296a51c8ed..4417fecb70c 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -80,6 +80,7 @@ multilib_src_configure() {
# and without TEXTRELs. musl does not support TEXTRELs: bug #707332
tc-export CC
ECONF_SOURCE="${S}" econf \
+   CC_FOR_BUILD="$(tc-getBUILD_CC)" \
--localstatedir="${EPREFIX}"/var/state/gmp \
--enable-shared \
$(use_enable asm assembly) \



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/files/

2020-05-21 Thread Sergei Trofimovich
commit: 387033fac6060d7c7705b53957c88064912b07c8
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Wed May 20 15:30:03 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu May 21 08:22:43 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=387033fa

dev-libs/gmp: remove unused patches

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/files/gmp-4.1.4-noexecstack.patch | 20 
 dev-libs/gmp/files/gmp-4.2.1-s390.diff | 68 --
 2 files changed, 88 deletions(-)

diff --git a/dev-libs/gmp/files/gmp-4.1.4-noexecstack.patch 
b/dev-libs/gmp/files/gmp-4.1.4-noexecstack.patch
deleted file mode 100644
index 093bec1a5dc..000
--- a/dev-libs/gmp/files/gmp-4.1.4-noexecstack.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-fixed executable stack
-
-http://bugs.gentoo.org/115038
-
 gmp-4.1.4/configure
-+++ gmp-4.1.4/configure
-@@ -21689,6 +21689,13 @@
- fi
- echo "')" >> $gmp_configm4
- echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
-+# Gentoo hack
-+case $host_os in
-+  *linux*)
-+  echo '.section .note.GNU-stack,"",%progbits' >> $gmp_configm4
-+  echo '.previous' >> $gmp_configm4
-+  ;;
-+esac
- 
- # Create Makefiles
- # FIXME: Upcoming version of autoconf/automake may not like broken lines.

diff --git a/dev-libs/gmp/files/gmp-4.2.1-s390.diff 
b/dev-libs/gmp/files/gmp-4.2.1-s390.diff
deleted file mode 100644
index 82dbb722eb1..000
--- a/dev-libs/gmp/files/gmp-4.2.1-s390.diff
+++ /dev/null
@@ -1,68 +0,0 @@
-stolen from SuSE
-
 configure.in
-+++ configure.in
-@@ -1050,6 +1050,9 @@
- ;;
- 
- 
-+  s390x-*-*)
-+   path="s390x" ;;
-+
-   # IBM s/370 and similar
-   [s3[6-9]0*-*-*])
- gcc_cflags="-O2 $fomit_frame_pointer"
 configure
-+++ configure
-@@ -1050,6 +1050,9 @@
- ;;
- 
- 
-+  s390x-*-*)
-+   path="s390x" ;;
-+
-   # IBM s/370 and similar
-   s3[6-9]0*-*-*)
- gcc_cflags="-O2 $fomit_frame_pointer"
 mpn/s390/gmp-mparam.h
-+++ mpn/s390/gmp-mparam.h
-@@ -20,7 +20,8 @@
- MA 02110-1301, USA. */
- 
- 
--/* BITS_PER_MP_LIMB etc generated by configure */
-+#define BITS_PER_MP_LIMB 32
-+#define BYTES_PER_MP_LIMB 4
- 
- 
- /* Generated by tuneup.c, 2001-12-03, gcc 2.95 */
 mpn/s390x/gmp-mparam.h
-+++ mpn/s390x/gmp-mparam.h
-@@ -0,0 +1,27 @@
-+/* gmp-mparam.h -- Compiler/machine parameter header file.
-+
-+Copyright (C) 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
-+
-+This file is part of the GNU MP Library.
-+
-+The GNU MP Library is free software; you can redistribute it and/or modify
-+it under the terms of the GNU Library General Public License as published by
-+the Free Software Foundation; either version 2 of the License, or (at your
-+option) any later version.
-+
-+The GNU MP Library is distributed in the hope that it will be useful, but
-+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-+or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
-+License for more details.
-+
-+You should have received a copy of the GNU Library General Public License
-+along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
-+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-+MA 02111-1307, USA. */
-+
-+#define BITS_PER_MP_LIMB 64
-+#define BYTES_PER_MP_LIMB 8
-+#define BITS_PER_LONGINT 64
-+#define BITS_PER_INT 32
-+#define BITS_PER_SHORTINT 16
-+#define BITS_PER_CHAR 8



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-05-02 Thread Sergei Trofimovich
commit: 0673552c80ed9d7d27ce90550754a31481a7f30c
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat May  2 17:42:32 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat May  2 17:51:28 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0673552c

dev-libs/gmp: drop old

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/Manifest|   2 -
 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 115 ---
 2 files changed, 117 deletions(-)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index c478576e2d4..eb46a81d00b 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,4 +1,2 @@
-DIST gmp-6.1.2.tar.xz 1946336 BLAKE2B 
2a864e80799471037a71c10d871f9782c37fe3a0a1734872e90f14a874ecd6551099d67b2ebd07f82a43b0522249a6b46e79952db11a278f87ca8013198f7604
 SHA512 
9f098281c0593b76ee174b722936952671fab1dae353ce3ed436a31fe2bc9d542eca752353f6645b7077c1f395ab4fdd355c58e08e2a801368f1375690eee2c6
 DIST gmp-6.2.0.tar.xz 2012444 BLAKE2B 
928141cf7b0b70f78b66e7bc52aecd39a5fc30e8865b6de6effb5b061ade05a5a51b4680ef2f36ea0d682b319d54ceb1c6c8ef93bde6c2eef2e8b826a34602c3
 SHA512 
a066f0456f0314a1359f553c49fc2587e484ff8ac390ff88537266a146ea373f97a1c0ba24608bf6756f4eab11c9056f103c8deb99e5b57741b4f7f0ec44b90c
-DIST gmp-man-6.1.2.pdf 825720 BLAKE2B 
b96340da5f534353b140b361fc1ff74757168024e8039d97a0ed1f14d874ff5fbc50abae2ff3505adc51d72e4acf2882ae6ca6405ae37b594f7b248e1ca05247
 SHA512 
85de10b2c03f7381881c3e95aa7fc53d8e018115028496ffbb5a79ab4967106c69ed7e97a5e434e6bb39752498aade8c2caa7cf77a8942b7ffd9150368a0d9c3
 DIST gmp-man-6.2.0.pdf 828998 BLAKE2B 
0bf56bf0a6f1aac0e1fb9a5a37552f846a2d4a01bfd3f5b5c531d42a9afc48c19552e08971785805f59e3f2a5fd89e3f986f841dca2e340813596cfd76574e61
 SHA512 
25d129efedd329cd2d4535557c6912191f587bfd8ef028618b4ca6199ec7bf7a9ae862e7f5e5b5448c86888452a39fc7bf95cf9c18311858dd1aa9ae1c716239

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
deleted file mode 100644
index bb5db01c1ab..000
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ /dev/null
@@ -1,115 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
-
-MY_PV=${PV/_p*}
-MY_PV=${MY_PV/_/-}
-MY_P=${PN}-${MY_PV}
-PLEVEL=${PV/*p}
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
-   mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
-
-LICENSE="|| ( LGPL-3+ GPL-2+ )"
-# The subslot reflects the C & C++ SONAMEs.
-SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc +cxx pic static-libs"
-
-DEPEND="sys-devel/m4
-   app-arch/xz-utils"
-RDEPEND=""
-
-S=${WORKDIR}/${MY_P%a}
-
-DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
-HTML_DOCS=( doc )
-MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
-)
-
-src_prepare() {
-   default
-
-   # note: we cannot run autotools here as gcc depends on this package
-   elibtoolize
-
-   # https://bugs.gentoo.org/536894
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
-   fi
-
-   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
-   # So, to avoid patching the source constantly, wrap things up.
-   mv configure configure.wrapped || die
-   cat <<-\EOF > configure
-   #!/usr/bin/env sh
-   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
-   EOF
-   # Patches to original configure might have lost the +x bit.
-   chmod a+rx configure{,.wrapped} || die
-}
-
-multilib_src_configure() {
-   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
-   if [[ ${CHOST} == hppa2.0-* ]] ; then
-   GMPABI="1.0"
-   fi
-
-   # ABI mappings (needs all architectures supported)
-   case ${ABI} in
-   32|x86)   GMPABI=32;;
-   64|amd64|n64) GMPABI=64;;
-   [onx]32)  GMPABI=${ABI};;
-   esac
-   export GMPABI
-
-   #367719
-   if [[ ${CHOST} == *-mint* ]]; then
-   filter-flags -O?
-   fi
-
-   # --with-pic forces static libraries to be built as PIC
-   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
-   tc-export CC
-   ECONF_SOURCE="${S}" econf \
-  

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-04-05 Thread Mart Raudsepp
commit: 337134be5087546fe58f72e66c70d28598f0b20f
Author: Sam James (sam_c)  cmpct  info>
AuthorDate: Sun Apr  5 12:46:37 2020 +
Commit: Mart Raudsepp  gentoo  org>
CommitDate: Sun Apr  5 20:05:23 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=337134be

dev-libs/gmp: arm64 stable (bug #713914)

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Mart Raudsepp  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index e9e85babe3a..8296a51c8ed 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-04-01 Thread Jeroen Roovers
commit: 11f39bd00ff600b7361542160f3cc4357b1f40ad
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Wed Apr  1 11:17:02 2020 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Wed Apr  1 11:17:05 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11f39bd0

dev-libs/gmp: Stable for HPPA

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Jeroen Roovers  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index e72d9578e31..a238bb901c2 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-29 Thread Sergei Trofimovich
commit: 0e9ce86bc544c0cc86b523d619669fa354d805af
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Mar 29 20:15:07 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Mar 29 20:16:10 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e9ce86b

dev-libs/gmp: drop SLOT=3, bug #697826

Bug: https://bugs.gentoo.org/697826
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/Manifest|  1 -
 dev-libs/gmp/gmp-4.3.2-r1.ebuild | 66 
 2 files changed, 67 deletions(-)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index 201af36a7c9..c478576e2d4 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,4 +1,3 @@
-DIST gmp-4.3.2.tar.bz2 1897483 BLAKE2B 
0efecd60c7a585f94ec8cbee77541d409c8e3bdeabaca09f7971560fb0fd504ae8e405256913acbef1434146868885c98068ff59efec92c92fdb73b853cf9396
 SHA512 
2e0b0fd23e6f10742a5517981e5171c6e88b0a93c83da701b296f5c0861d72c19782daab589a7eac3f9032152a0fc7eff7f5362db8fccc4859564a9aa82329cf
 DIST gmp-6.1.2.tar.xz 1946336 BLAKE2B 
2a864e80799471037a71c10d871f9782c37fe3a0a1734872e90f14a874ecd6551099d67b2ebd07f82a43b0522249a6b46e79952db11a278f87ca8013198f7604
 SHA512 
9f098281c0593b76ee174b722936952671fab1dae353ce3ed436a31fe2bc9d542eca752353f6645b7077c1f395ab4fdd355c58e08e2a801368f1375690eee2c6
 DIST gmp-6.2.0.tar.xz 2012444 BLAKE2B 
928141cf7b0b70f78b66e7bc52aecd39a5fc30e8865b6de6effb5b061ade05a5a51b4680ef2f36ea0d682b319d54ceb1c6c8ef93bde6c2eef2e8b826a34602c3
 SHA512 
a066f0456f0314a1359f553c49fc2587e484ff8ac390ff88537266a146ea373f97a1c0ba24608bf6756f4eab11c9056f103c8deb99e5b57741b4f7f0ec44b90c
 DIST gmp-man-6.1.2.pdf 825720 BLAKE2B 
b96340da5f534353b140b361fc1ff74757168024e8039d97a0ed1f14d874ff5fbc50abae2ff3505adc51d72e4acf2882ae6ca6405ae37b594f7b248e1ca05247
 SHA512 
85de10b2c03f7381881c3e95aa7fc53d8e018115028496ffbb5a79ab4967106c69ed7e97a5e434e6bb39752498aade8c2caa7cf77a8942b7ffd9150368a0d9c3

diff --git a/dev-libs/gmp/gmp-4.3.2-r1.ebuild b/dev-libs/gmp/gmp-4.3.2-r1.ebuild
deleted file mode 100644
index 0328809391d..000
--- a/dev-libs/gmp/gmp-4.3.2-r1.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# this ebuild is only for the libgmp.so.3 ABI SONAME
-
-EAPI="5"
-
-inherit eutils libtool toolchain-funcs multilib-minimal
-
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
-
-LICENSE="LGPL-3"
-SLOT="3"
-KEYWORDS="~alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
-IUSE=""
-
-DEPEND="sys-devel/m4"
-RDEPEND=""
-
-src_prepare() {
-   epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch
-   epatch "${FILESDIR}"/${PN}-4.2.1-s390.diff
-
-   # note: we cannot run autotools here as gcc depends on this package
-   elibtoolize
-
-   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
-   # So, to avoid patching the source constantly, wrap things up.
-   mv configure configure.wrapped || die
-   cat <<-\EOF > configure
-   #!/bin/sh
-   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
-   EOF
-   chmod a+rx configure
-}
-
-multilib_src_configure() {
-   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
-   if [[ ${CHOST} == hppa2.0-* ]] ; then
-   GMPABI="1.0"
-   fi
-
-   # ABI mappings (needs all architectures supported)
-   case ${ABI} in
-   32|x86)   GMPABI=32;;
-   64|amd64|n64) GMPABI=64;;
-   [onx]32)  GMPABI=${ABI};;
-   esac
-   export GMPABI
-
-   tc-export CC
-   ECONF_SOURCE="${S}" econf \
-   --localstatedir=/var/state/gmp \
-   --disable-mpfr \
-   --disable-mpbsd \
-   --disable-static \
-   --disable-cxx
-}
-
-multilib_src_install() {
-   emake DESTDIR="${D}" install-libLTLIBRARIES
-   rm "${D}"/usr/*/libgmp.{la,so} || die
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-29 Thread Sergei Trofimovich
commit: 59b1b7c2d93ff174a793197a37ac449cfec05afe
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Mar 29 10:13:33 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Mar 29 10:13:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b1b7c2

dev-libs/gmp: drop old

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2.ebuild | 114 --
 1 file changed, 114 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild
deleted file mode 100644
index 5f741645d4d..000
--- a/dev-libs/gmp/gmp-6.1.2.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
-
-MY_PV=${PV/_p*}
-MY_PV=${MY_PV/_/-}
-MY_P=${PN}-${MY_PV}
-PLEVEL=${PV/*p}
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
-   mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
-
-LICENSE="|| ( LGPL-3+ GPL-2+ )"
-# The subslot reflects the C & C++ SONAMEs.
-SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sparc 
x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc +cxx pic static-libs"
-
-DEPEND="sys-devel/m4
-   app-arch/xz-utils"
-RDEPEND=""
-
-S=${WORKDIR}/${MY_P%a}
-
-DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
-HTML_DOCS=( doc )
-MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
-
-src_prepare() {
-   [[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" 
epatch "${FILESDIR}"/${PV}
-
-   # note: we cannot run autotools here as gcc depends on this package
-   elibtoolize
-
-   epatch "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
-
-   # https://bugs.gentoo.org/536894
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   epatch "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
-   fi
-
-   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
-   # So, to avoid patching the source constantly, wrap things up.
-   mv configure configure.wrapped || die
-   cat <<-\EOF > configure
-   #!/usr/bin/env sh
-   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
-   EOF
-   # Patches to original configure might have lost the +x bit.
-   chmod a+rx configure{,.wrapped}
-   epatch_user
-}
-
-multilib_src_configure() {
-   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
-   if [[ ${CHOST} == hppa2.0-* ]] ; then
-   GMPABI="1.0"
-   fi
-
-   # ABI mappings (needs all architectures supported)
-   case ${ABI} in
-   32|x86)   GMPABI=32;;
-   64|amd64|n64) GMPABI=64;;
-   [onx]32)  GMPABI=${ABI};;
-   esac
-   export GMPABI
-
-   #367719
-   if [[ ${CHOST} == *-mint* ]]; then
-   filter-flags -O?
-   fi
-
-   # --with-pic forces static libraries to be built as PIC
-   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
-   tc-export CC
-   ECONF_SOURCE="${S}" econf \
-   --localstatedir="${EPREFIX}"/var/state/gmp \
-   --enable-shared \
-   $(use_enable asm assembly) \
-   $(use_enable cxx) \
-   $(use pic && echo --with-pic) \
-   $(use_enable static-libs static)
-}
-
-multilib_src_compile() {
-   emake
-}
-
-multilib_src_test() {
-   emake check
-}
-
-multilib_src_install() {
-   emake DESTDIR="${D}" install
-
-   # should be a standalone lib
-   rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
-   # this requires libgmp
-   local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
-   use static-libs \
-   && sed -i 's:/[^ ]*/libgmp.la:-lgmp:' "${la}" \
-   || rm -f "${la}"
-}
-
-multilib_src_install_all() {
-   einstalldocs
-   use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf 
"${ED}"/usr/share/doc/${PF}/
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-29 Thread Sergei Trofimovich
commit: 2724bf0da60a904d65437666beb2492dec3e7ebd
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Mar 29 10:13:06 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Mar 29 10:13:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2724bf0d

dev-libs/gmp: destabilize down to ~m68k

Bug: https://bugs.gentoo.org/693840
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-4.3.2-r1.ebuild | 2 +-
 dev-libs/gmp/gmp-6.1.2.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/gmp/gmp-4.3.2-r1.ebuild b/dev-libs/gmp/gmp-4.3.2-r1.ebuild
index e8a84aa9838..0328809391d 100644
--- a/dev-libs/gmp/gmp-4.3.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-4.3.2-r1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
 
 LICENSE="LGPL-3"
 SLOT="3"
-KEYWORDS="~alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86"
+KEYWORDS="~alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
 IUSE=""
 
 DEPEND="sys-devel/m4"

diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild
index 461da9749c1..5f741645d4d 100644
--- a/dev-libs/gmp/gmp-6.1.2.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 
~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sparc 
x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc +cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-26 Thread Sergei Trofimovich
commit: f8afd2fe54481894dd5f0b20219bfca0ae922e63
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Mar 26 21:47:08 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Mar 26 21:47:32 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8afd2fe

dev-libs/gmp: enable IUSE=+cxx by default, bug #714928

Reported-by: Andreas Sturmlechner
Closes: https://bugs.gentoo.org/714928
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 dev-libs/gmp/gmp-6.1.2.ebuild| 2 +-
 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index b26356aa24f..775f3a270fc 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -19,7 +19,7 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc cxx pic static-libs"
+IUSE="+asm doc +cxx pic static-libs"
 
 DEPEND="sys-devel/m4
app-arch/xz-utils"

diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild
index 1c93b139ce9..461da9749c1 100644
--- a/dev-libs/gmp/gmp-6.1.2.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2.ebuild
@@ -19,7 +19,7 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 
~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc cxx pic static-libs"
+IUSE="+asm doc +cxx pic static-libs"
 
 DEPEND="sys-devel/m4
app-arch/xz-utils"

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index ebe02da4173..e72d9578e31 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -19,7 +19,7 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc cxx pic static-libs"
+IUSE="+asm doc +cxx pic static-libs"
 
 BDEPEND="sys-devel/m4
app-arch/xz-utils"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-23 Thread Sergei Trofimovich
commit: 95fc3718af1d045eebf23b766a74dfabf154a307
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Mar 23 23:54:00 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Mar 23 23:57:58 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95fc3718

dev-libs/gmp: drop old

Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.0.ebuild | 106 --
 1 file changed, 106 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.0.ebuild b/dev-libs/gmp/gmp-6.2.0.ebuild
deleted file mode 100644
index 715f93b32dd..000
--- a/dev-libs/gmp/gmp-6.2.0.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
-
-MY_PV=${PV/_p*}
-MY_PV=${MY_PV/_/-}
-MY_P=${PN}-${MY_PV}
-PLEVEL=${PV/*p}
-DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="https://gmplib.org/;
-SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
-   mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
-
-LICENSE="|| ( LGPL-3+ GPL-2+ )"
-# The subslot reflects the C & C++ SONAMEs.
-SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
-IUSE="+asm doc cxx pic static-libs"
-
-BDEPEND="sys-devel/m4
-   app-arch/xz-utils"
-
-S=${WORKDIR}/${MY_P%a}
-
-DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
-HTML_DOCS=( doc )
-MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
-)
-
-src_prepare() {
-   default
-
-   # note: we cannot run autotools here as gcc depends on this package
-   elibtoolize
-
-   # https://bugs.gentoo.org/536894
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
-   fi
-
-   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
-   # So, to avoid patching the source constantly, wrap things up.
-   mv configure configure.wrapped || die
-   cat <<-\EOF > configure
-   #!/usr/bin/env sh
-   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
-   EOF
-   # Patches to original configure might have lost the +x bit.
-   chmod a+rx configure{,.wrapped} || die
-}
-
-multilib_src_configure() {
-   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
-   if [[ ${CHOST} == hppa2.0-* ]] ; then
-   GMPABI="1.0"
-   fi
-
-   # ABI mappings (needs all architectures supported)
-   case ${ABI} in
-   32|x86)   GMPABI=32;;
-   64|amd64|n64) GMPABI=64;;
-   [onx]32)  GMPABI=${ABI};;
-   esac
-   export GMPABI
-
-   #367719
-   if [[ ${CHOST} == *-mint* ]]; then
-   filter-flags -O?
-   fi
-
-   # --with-pic forces static libraries to be built as PIC
-   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
-   tc-export CC
-   ECONF_SOURCE="${S}" econf \
-   --localstatedir="${EPREFIX}"/var/state/gmp \
-   --enable-shared \
-   $(use_enable asm assembly) \
-   $(use_enable cxx) \
-   $(use pic && echo --with-pic) \
-   $(use_enable static-libs static)
-}
-
-multilib_src_install() {
-   emake DESTDIR="${D}" install
-
-   # should be a standalone lib
-   rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
-   # this requires libgmp
-   local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
-   use static-libs \
-   && sed -i 's:/[^ ]*/libgmp.la:-lgmp:' "${la}" \
-   || rm -f "${la}"
-}
-
-multilib_src_install_all() {
-   einstalldocs
-   use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf 
"${ED}"/usr/share/doc/${PF}/
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-23 Thread Sergei Trofimovich
commit: 1582ad6cf2dd4064083c26f65c9c22d53a17b6ce
Author: David Michael  gmail  com>
AuthorDate: Mon Mar 23 04:23:54 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Mar 23 18:22:55 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1582ad6c

dev-libs/gmp: Move host deps to BDEPEND for EAPI 7

Closes: https://bugs.gentoo.org/714010
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: David Michael  gmail.com>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 3 +--
 dev-libs/gmp/gmp-6.2.0.ebuild| 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index 606595641b8..c25f31fbdef 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -21,9 +21,8 @@ SLOT="0/10.4"
 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
-DEPEND="sys-devel/m4
+BDEPEND="sys-devel/m4
app-arch/xz-utils"
-RDEPEND=""
 
 S=${WORKDIR}/${MY_P%a}
 

diff --git a/dev-libs/gmp/gmp-6.2.0.ebuild b/dev-libs/gmp/gmp-6.2.0.ebuild
index 4aeb3ed6d00..715f93b32dd 100644
--- a/dev-libs/gmp/gmp-6.2.0.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0.ebuild
@@ -21,9 +21,8 @@ SLOT="0/10.4"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
-DEPEND="sys-devel/m4
+BDEPEND="sys-devel/m4
app-arch/xz-utils"
-RDEPEND=""
 
 S=${WORKDIR}/${MY_P%a}
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-22 Thread Agostino Sarubbo
commit: ad506dc44ec2f360f303977556763259f820d63e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 22 14:35:01 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 22 14:35:01 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad506dc4

dev-libs/gmp: sparc stable wrt bug #713914

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index dd8e3ceadab..606595641b8 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-22 Thread Agostino Sarubbo
commit: fc7dedf35239f1e80f05cb517df78ea38aa25c74
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 22 14:30:04 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 22 14:30:04 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc7dedf3

dev-libs/gmp: s390 stable wrt bug #713914

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="s390"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index a415467598d..dd8e3ceadab 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-22 Thread Agostino Sarubbo
commit: 6fa6b647cb68d496652cf8aca8c68e5acc227ac0
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 22 11:08:31 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 22 11:08:31 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fa6b647

dev-libs/gmp: ia64 stable wrt bug #713914

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="ia64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index d612fcb8a5b..a415467598d 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-22 Thread Agostino Sarubbo
commit: e02d7d4b87773a9bb183edc78c036b9e863a09e5
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 22 11:07:50 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 22 11:07:50 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e02d7d4b

dev-libs/gmp: arm stable wrt bug #713914

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="arm"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index 4e4fa768fcc..d612fcb8a5b 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-22 Thread Agostino Sarubbo
commit: 6d98a2ba25ffd9b8b010128006c6fb72e13a7b32
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 22 10:56:00 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 22 10:56:00 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d98a2ba

dev-libs/gmp: x86 stable wrt bug #713914

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index ee310710d14..4e4fa768fcc 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-22 Thread Agostino Sarubbo
commit: e97e209180a9da8af1e6d5aaddb69908cd2afd1b
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 22 10:54:58 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 22 10:54:58 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e97e2091

dev-libs/gmp: ppc64 stable wrt bug #713914

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index 9ed7edba0b0..ee310710d14 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-22 Thread Agostino Sarubbo
commit: b1c8485ebacf8d303dca71b8804f697ba844d56e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 22 10:54:17 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 22 10:54:22 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1c8485e

dev-libs/gmp: ppc stable wrt bug #713914

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index 3dd84de8bf3..9ed7edba0b0 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-03-22 Thread Agostino Sarubbo
commit: 1201b640f1e02acd6dbd1f74f9716bd7dd379a23
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 22 10:53:03 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 22 10:53:03 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1201b640

dev-libs/gmp: amd64 stable wrt bug #713914

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index cad8d001822..3dd84de8bf3 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-01-30 Thread Sergei Trofimovich
commit: 10a57644d5a354baac5d1018fe2dbb34342a14fd
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Jan 31 07:56:56 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Jan 31 07:57:17 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10a57644

dev-libs/gmp: add USE=pic for static libraries, bug #707332

gmp makes a decision to use PIC or non-PIC assemply at
./configure time instead of (typical) build time.

On top of that non-PIC assembly also has TEXTRELs in it
which musl can't handle and crashes binaries at relocation
setup time. For gmp is it relevant only for static linking.

The change adds USE=pic to force static libraries to generate
assembly code without TEXTRELs.

Reported-by: Andrew Aladjev
Closes: https://bugs.gentoo.org/707332
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 7 +--
 dev-libs/gmp/gmp-6.1.2.ebuild| 7 +--
 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 5 -
 dev-libs/gmp/gmp-6.2.0.ebuild| 5 -
 dev-libs/gmp/metadata.xml| 1 +
 5 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index ba741c4f37d..31bf8c0b5eb 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,7 +19,7 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
-IUSE="+asm doc cxx static-libs"
+IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4
app-arch/xz-utils"
@@ -77,12 +77,15 @@ multilib_src_configure() {
filter-flags -O?
fi
 
+   # --with-pic forces static libraries to be built as PIC
+   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
tc-export CC
ECONF_SOURCE="${S}" econf \
--localstatedir="${EPREFIX}"/var/state/gmp \
--enable-shared \
$(use_enable asm assembly) \
$(use_enable cxx) \
+   $(use pic && echo --with-pic) \
$(use_enable static-libs static)
 }
 

diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild
index d7e8b5b45d4..38497f189d2 100644
--- a/dev-libs/gmp/gmp-6.1.2.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -19,7 +19,7 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc cxx static-libs"
+IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4
app-arch/xz-utils"
@@ -76,12 +76,15 @@ multilib_src_configure() {
filter-flags -O?
fi
 
+   # --with-pic forces static libraries to be built as PIC
+   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
tc-export CC
ECONF_SOURCE="${S}" econf \
--localstatedir="${EPREFIX}"/var/state/gmp \
--enable-shared \
$(use_enable asm assembly) \
$(use_enable cxx) \
+   $(use pic && echo --with-pic) \
$(use_enable static-libs static)
 }
 

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
index b5347356b32..d5fd3a7c0fa 100644
--- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -19,7 +19,7 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
-IUSE="+asm doc cxx static-libs"
+IUSE="+asm doc cxx pic static-libs"
 
 DEPEND="sys-devel/m4
app-arch/xz-utils"
@@ -77,12 +77,15 @@ multilib_src_configure() {
filter-flags -O?
fi
 
+   # --with-pic forces static libraries to be built as PIC
+   # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
tc-export CC
ECONF_SOURCE="${S}" econf \

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-01-30 Thread Sergei Trofimovich
commit: 12d86dd7aa2733c29a9e95b9fab98b47f010a2eb
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Jan 30 11:23:01 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Jan 30 11:23:17 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d86dd7

dev-libs/gmp: don't mangle libgmpxx.la

Modern toolchain installs the following .la entry:
dependency_libs=' -L=/usr/lib64 -lgmp'

These are just fine for cross-compilation. Our ebuild mangling broke it into:
dependency_libs=' =-lgmp'

The change drops the mangling completely.

Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 102 +++
 1 file changed, 102 insertions(+)

diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
new file mode 100644
index 000..b5347356b32
--- /dev/null
+++ b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic eutils libtool multilib-minimal
+
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+MY_P=${PN}-${MY_PV}
+PLEVEL=${PV/*p}
+DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
+HOMEPAGE="https://gmplib.org/;
+SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+   mirror://gnu/${PN}/${MY_P}.tar.xz
+   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
+
+LICENSE="|| ( LGPL-3+ GPL-2+ )"
+# The subslot reflects the C & C++ SONAMEs.
+SLOT="0/10.4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+IUSE="+asm doc cxx static-libs"
+
+DEPEND="sys-devel/m4
+   app-arch/xz-utils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P%a}
+
+DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
+HTML_DOCS=( doc )
+MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
+)
+
+src_prepare() {
+   default
+
+   # note: we cannot run autotools here as gcc depends on this package
+   elibtoolize
+
+   # https://bugs.gentoo.org/536894
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
+   fi
+
+   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
+   # So, to avoid patching the source constantly, wrap things up.
+   mv configure configure.wrapped || die
+   cat <<-\EOF > configure
+   #!/usr/bin/env sh
+   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
+   EOF
+   # Patches to original configure might have lost the +x bit.
+   chmod a+rx configure{,.wrapped} || die
+}
+
+multilib_src_configure() {
+   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   if [[ ${CHOST} == hppa2.0-* ]] ; then
+   GMPABI="1.0"
+   fi
+
+   # ABI mappings (needs all architectures supported)
+   case ${ABI} in
+   32|x86)   GMPABI=32;;
+   64|amd64|n64) GMPABI=64;;
+   [onx]32)  GMPABI=${ABI};;
+   esac
+   export GMPABI
+
+   #367719
+   if [[ ${CHOST} == *-mint* ]]; then
+   filter-flags -O?
+   fi
+
+   tc-export CC
+   ECONF_SOURCE="${S}" econf \
+   --localstatedir="${EPREFIX}"/var/state/gmp \
+   --enable-shared \
+   $(use_enable asm assembly) \
+   $(use_enable cxx) \
+   $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+   emake DESTDIR="${D}" install
+
+   # should be a standalone lib
+   rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
+   # this requires libgmp
+   local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
+   use static-libs || rm -f "${la}"
+}
+
+multilib_src_install_all() {
+   einstalldocs
+   use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf 
"${ED}"/usr/share/doc/${PF}/
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2020-01-19 Thread Sergei Trofimovich
commit: 03886df38ac40655f6e7af5390ca8a9b4b947cc3
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Jan 19 12:23:19 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Jan 19 12:24:09 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03886df3

dev-libs/gmp: bump up to 6.2.0

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/Manifest |   2 +
 dev-libs/gmp/gmp-6.2.0.ebuild | 104 ++
 2 files changed, 106 insertions(+)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index 71954ddbaf3..201af36a7c9 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,3 +1,5 @@
 DIST gmp-4.3.2.tar.bz2 1897483 BLAKE2B 
0efecd60c7a585f94ec8cbee77541d409c8e3bdeabaca09f7971560fb0fd504ae8e405256913acbef1434146868885c98068ff59efec92c92fdb73b853cf9396
 SHA512 
2e0b0fd23e6f10742a5517981e5171c6e88b0a93c83da701b296f5c0861d72c19782daab589a7eac3f9032152a0fc7eff7f5362db8fccc4859564a9aa82329cf
 DIST gmp-6.1.2.tar.xz 1946336 BLAKE2B 
2a864e80799471037a71c10d871f9782c37fe3a0a1734872e90f14a874ecd6551099d67b2ebd07f82a43b0522249a6b46e79952db11a278f87ca8013198f7604
 SHA512 
9f098281c0593b76ee174b722936952671fab1dae353ce3ed436a31fe2bc9d542eca752353f6645b7077c1f395ab4fdd355c58e08e2a801368f1375690eee2c6
+DIST gmp-6.2.0.tar.xz 2012444 BLAKE2B 
928141cf7b0b70f78b66e7bc52aecd39a5fc30e8865b6de6effb5b061ade05a5a51b4680ef2f36ea0d682b319d54ceb1c6c8ef93bde6c2eef2e8b826a34602c3
 SHA512 
a066f0456f0314a1359f553c49fc2587e484ff8ac390ff88537266a146ea373f97a1c0ba24608bf6756f4eab11c9056f103c8deb99e5b57741b4f7f0ec44b90c
 DIST gmp-man-6.1.2.pdf 825720 BLAKE2B 
b96340da5f534353b140b361fc1ff74757168024e8039d97a0ed1f14d874ff5fbc50abae2ff3505adc51d72e4acf2882ae6ca6405ae37b594f7b248e1ca05247
 SHA512 
85de10b2c03f7381881c3e95aa7fc53d8e018115028496ffbb5a79ab4967106c69ed7e97a5e434e6bb39752498aade8c2caa7cf77a8942b7ffd9150368a0d9c3
+DIST gmp-man-6.2.0.pdf 828998 BLAKE2B 
0bf56bf0a6f1aac0e1fb9a5a37552f846a2d4a01bfd3f5b5c531d42a9afc48c19552e08971785805f59e3f2a5fd89e3f986f841dca2e340813596cfd76574e61
 SHA512 
25d129efedd329cd2d4535557c6912191f587bfd8ef028618b4ca6199ec7bf7a9ae862e7f5e5b5448c86888452a39fc7bf95cf9c18311858dd1aa9ae1c716239

diff --git a/dev-libs/gmp/gmp-6.2.0.ebuild b/dev-libs/gmp/gmp-6.2.0.ebuild
new file mode 100644
index 000..c5495e13aef
--- /dev/null
+++ b/dev-libs/gmp/gmp-6.2.0.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic eutils libtool multilib-minimal
+
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+MY_P=${PN}-${MY_PV}
+PLEVEL=${PV/*p}
+DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
+HOMEPAGE="https://gmplib.org/;
+SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+   mirror://gnu/${PN}/${MY_P}.tar.xz
+   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
+
+LICENSE="|| ( LGPL-3+ GPL-2+ )"
+# The subslot reflects the C & C++ SONAMEs.
+SLOT="0/10.4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
+IUSE="+asm doc cxx static-libs"
+
+DEPEND="sys-devel/m4
+   app-arch/xz-utils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P%a}
+
+DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
+HTML_DOCS=( doc )
+MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
+)
+
+src_prepare() {
+   default
+
+   # note: we cannot run autotools here as gcc depends on this package
+   elibtoolize
+
+   # https://bugs.gentoo.org/536894
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
+   fi
+
+   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
+   # So, to avoid patching the source constantly, wrap things up.
+   mv configure configure.wrapped || die
+   cat <<-\EOF > configure
+   #!/usr/bin/env sh
+   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
+   EOF
+   # Patches to original configure might have lost the +x bit.
+   chmod a+rx configure{,.wrapped} || die
+}
+
+multilib_src_configure() {
+   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   if [[ ${CHOST} == hppa2.0-* ]] ; then
+   GMPABI="1.0"
+   fi
+
+   # ABI mappings (needs all architectures supported)
+   case ${ABI} in
+   32|x86)   GMPABI=32;;
+   64|amd64|n64) GMPABI=64;;
+   [onx]32)  GMPABI=${ABI};;
+   esac
+   export GMPABI
+
+   #367719
+  

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-21 Thread Matt Turner
commit: 5bac1f664a018c75904aeaff772914ca8c6551e3
Author: Matt Turner  gentoo  org>
AuthorDate: Sat Sep 21 18:08:17 2019 +
Commit: Matt Turner  gentoo  org>
CommitDate: Sat Sep 21 18:08:46 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bac1f66

dev-libs/gmp-6.1.2-r1: alpha stable, bug 693840

Signed-off-by: Matt Turner  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index b760f07cba6..e2b2b8b6467 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-20 Thread Sergei Trofimovich
commit: 1aa9e9f7c4eee91f1dbb18b0b55c487eef118da5
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Sep 20 06:39:21 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Sep 20 06:39:21 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aa9e9f7

dev-libs/gmp: stable 6.1.2-r1 for hppa, bug #693840

Package-Manager: Portage-2.3.76, Repoman-2.3.17
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 84cd29bad09..b760f07cba6 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-16 Thread Agostino Sarubbo
commit: 019015821d2e3dac63302c1e437f891254e113a2
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Sep 16 06:52:13 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Sep 16 06:52:13 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01901582

dev-libs/gmp: sparc stable wrt bug #693840

Package-Manager: Portage-2.3.69, Repoman-2.3.16
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 4bce5094b6a..84cd29bad09 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-13 Thread Mikle Kolyada
commit: cd056070d818543c8d7d2e28dbc9ff1aad1451c9
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Fri Sep 13 18:30:42 2019 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Fri Sep 13 18:30:42 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd056070

dev-libs/gmp: arm stable wrt bug #693840

Package-Manager: Portage-2.3.69, Repoman-2.3.16
RepoMan-Options: --include-arches="arm"
Signed-off-by: Mikle Kolyada  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 9682b2ed2d3..4bce5094b6a 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-13 Thread Agostino Sarubbo
commit: 813b0fd76d615357666e59bbffa049fdee22f25f
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri Sep 13 07:45:12 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri Sep 13 07:45:12 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=813b0fd7

dev-libs/gmp: s390 stable wrt bug #693840

Package-Manager: Portage-2.3.69, Repoman-2.3.16
RepoMan-Options: --include-arches="s390"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 1188610fa90..9682b2ed2d3 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 
~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-10 Thread Agostino Sarubbo
commit: cc914988a942b48ee69aa06478e3ec6dcf51c60a
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue Sep 10 07:08:43 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue Sep 10 07:08:43 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc914988

dev-libs/gmp: x86 stable wrt bug #693840

Package-Manager: Portage-2.3.69, Repoman-2.3.16
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 87958e05eb8..1188610fa90 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-10 Thread Sergei Trofimovich
commit: 3cbe8769d7ff8d32b68245e5f86811671a8cd1bd
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Sep 10 07:00:08 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Sep 10 07:00:08 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cbe8769

dev-libs/gmp: stable 6.1.2-r1 for ppc64, bug #693840

Package-Manager: Portage-2.3.75, Repoman-2.3.17
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index d9af76d0f1d..87958e05eb8 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-10 Thread Sergei Trofimovich
commit: 9f2f92faf9b202296bc1084785f1887ba254a069
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Sep 10 06:54:18 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Sep 10 06:54:18 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f2f92fa

dev-libs/gmp: stable 6.1.2-r1 for ppc, bug #693840

Package-Manager: Portage-2.3.75, Repoman-2.3.17
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index e32c07cbf3c..d9af76d0f1d 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-10 Thread Sergei Trofimovich
commit: ac0b8e5e1e5914e2e84469c43b594549f87651fb
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Sep 10 06:42:44 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Sep 10 06:50:19 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac0b8e5e

dev-libs/gmp: stable 6.1.2-r1 for ia64, bug #693840

Package-Manager: Portage-2.3.75, Repoman-2.3.17
RepoMan-Options: --include-arches="ia64"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index a3e5d6f9a01..e32c07cbf3c 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-09 Thread Aaron Bauman
commit: 1363c46e5a4e379608fab1db00bb6713e460edb8
Author: Aaron Bauman  gentoo  org>
AuthorDate: Mon Sep  9 20:56:03 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Mon Sep  9 20:56:03 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1363c46e

dev-libs/gmp: arm64 stable (bug #693840)

Signed-off-by: Aaron Bauman  gentoo.org>
Package-Manager: Portage-2.3.75, Repoman-2.3.17
RepoMan-Options: --include-arches="arm64"

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 347d1969c21..a3e5d6f9a01 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-09-09 Thread Agostino Sarubbo
commit: 4727613772106c18282376d885487aeafe72bdc9
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Sep  9 17:22:31 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Sep  9 17:22:31 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47276137

dev-libs/gmp: amd64 stable wrt bug #693840

Signed-off-by: Agostino Sarubbo  gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
RepoMan-Options: --include-arches="amd64"

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 090c6d82458..347d1969c21 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-05-04 Thread Andreas K. Hüttel
commit: 1b0fe76ac0e77728a31f79798be3dac872687640
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sat May  4 14:51:59 2019 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sat May  4 14:53:36 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b0fe76a

dev-libs/gmp: keyword ~riscv

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 4f9a4359fca..090c6d82458 100644
--- a/dev-libs/gmp/gmp-6.1.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-02-05 Thread Sergei Trofimovich
commit: de85d6ef4ae9f32550c0fa2090a135d63bc757f3
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Feb  5 22:18:53 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Feb  5 22:19:04 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de85d6ef

dev-libs/gmp: drop USE=pgo from stable ebuild, bug #658688

USE=pgo generates optimal constants when running 'tuneup' benchmark
locally. If benchmark does not succeed default parameters are used.
Else benchmark's output is used to tune gmp behaviour.

Unfortunately at least on x86 some primitives like
__mpn_sqr_basecase generate invalid assembly code at fail tests.

In bug #650558 we found out that 'tuneup' is not very well maintained
upstream. Let's dropp support for USE=pgo until it gets better.

Reported-by: Robert Gill
Closes: https://bugs.gentoo.org/658688
Bug: https://bugs.gentoo.org/650558
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2.ebuild | 13 +
 dev-libs/gmp/metadata.xml |  1 -
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild
index 68a429d051f..f7a77a47e8c 100644
--- a/dev-libs/gmp/gmp-6.1.2.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2.ebuild
@@ -19,7 +19,7 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux 
~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris 
~x64-solaris ~x86-solaris"
-IUSE="+asm doc cxx pgo static-libs"
+IUSE="+asm doc cxx static-libs"
 
 DEPEND="sys-devel/m4
app-arch/xz-utils"
@@ -87,17 +87,6 @@ multilib_src_configure() {
 
 multilib_src_compile() {
emake
-
-   if use pgo ; then
-   emake -j1 -C tune tuneup
-   ebegin "Trying to generate tuned data"
-   ./tune/tuneup | tee gmp.mparam.h.new
-   if eend $(( 0 + ${PIPESTATUS[*]/#/+} )) ; then
-   mv gmp.mparam.h.new gmp-mparam.h || die
-   emake clean
-   emake
-   fi
-   fi
 }
 
 multilib_src_test() {

diff --git a/dev-libs/gmp/metadata.xml b/dev-libs/gmp/metadata.xml
index 02ee38fa71f..5fa58802c03 100644
--- a/dev-libs/gmp/metadata.xml
+++ b/dev-libs/gmp/metadata.xml
@@ -7,6 +7,5 @@
 
 
Enable use of hand optimized assembly routines (faster 
execution)
-   After building gmp, run some tests against to produce 
faster libraries -- this option will double the compile time
 
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2019-02-05 Thread Sergei Trofimovich
commit: 480424f2bb7d3d555e5ccefba71a1f5f166bae20
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Feb  5 21:37:04 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Feb  5 21:37:30 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=480424f2

dev-libs/gmp: allow user patches

To ease tweaking 'tuneup' and other tools allow user patches.

Bug: https://bugs.gentoo.org/658688
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/gmp/gmp-6.1.2.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild
index 6481d95238b..68a429d051f 100644
--- a/dev-libs/gmp/gmp-6.1.2.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -53,6 +53,7 @@ src_prepare() {
EOF
# Patches to original configure might have lost the +x bit.
chmod a+rx configure{,.wrapped}
+   epatch_user
 }
 
 multilib_src_configure() {



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/, dev-libs/gmp/files/, dev-libs/gmp/files/6.0.0a/

2018-06-20 Thread Andreas Hüttel
commit: f0e46f8537913157b3c163a4ecf00c2992ee48c8
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Wed Jun 20 21:52:04 2018 +
Commit: Andreas Hüttel  gentoo  org>
CommitDate: Wed Jun 20 21:52:41 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0e46f85

dev-libs/gmp: Remove old

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-libs/gmp/Manifest  |   6 --
 .../gmp/files/6.0.0a/gmp-6.0.0a-arm-thumb.diff |  22 
 dev-libs/gmp/files/6.0.0a/ppc64-build.diff |  23 -
 dev-libs/gmp/files/gmp-6.1.0-tune-printf.patch |  43 
 dev-libs/gmp/files/gmp-6.1.0-udiv.patch|  61 ---
 dev-libs/gmp/gmp-6.0.0a.ebuild | 114 -
 dev-libs/gmp/gmp-6.1.0.ebuild  | 113 
 dev-libs/gmp/gmp-6.1.1.ebuild  | 113 
 8 files changed, 495 deletions(-)

diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index 39da1943543..71954ddbaf3 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,9 +1,3 @@
 DIST gmp-4.3.2.tar.bz2 1897483 BLAKE2B 
0efecd60c7a585f94ec8cbee77541d409c8e3bdeabaca09f7971560fb0fd504ae8e405256913acbef1434146868885c98068ff59efec92c92fdb73b853cf9396
 SHA512 
2e0b0fd23e6f10742a5517981e5171c6e88b0a93c83da701b296f5c0861d72c19782daab589a7eac3f9032152a0fc7eff7f5362db8fccc4859564a9aa82329cf
-DIST gmp-6.0.0a.tar.xz 1904112 BLAKE2B 
eabe9976a7c89e94d9b6aad3c4251f7cbad0f9b8ec597d270cf39d9abbc68207e47604e0ecc1840dbeefb3bd22312cd5451f80046d5a8c577781d2a264b40719
 SHA512 
50368f4368b244b442438ce1768cf0f1166e490d1bafb8feda1ffc90fea3807e7328f30f3faa861799e4f5ff6e3113049ca3231b2f48571e4583fc3d60441816
-DIST gmp-6.1.0.tar.xz 1950316 BLAKE2B 
81303b8c4dc02de202502d7d1e2df5a538ab2ea9bc36b0a0a8c8d030250bf26471e57ecee26144d0758366a8cec8b413dce88e7e1c89f32c7d1f9add1d833d7d
 SHA512 
3647f07914e6c01b28d94f2d9783e50b0ca9f742a694f56d5759e79a057143ded578b71707ff909c6b0f5710862974606461608e73b33af3114b5338670d8630
-DIST gmp-6.1.1.tar.xz 1943164 BLAKE2B 
0cc4d8959f03d8f00be4d393b47936f0a056dd2d88c25a4c705779a1175a39028dc987352186d61ebf2a361cdc67a550ec3fb9965708a35dc029b98a3160e96d
 SHA512 
6ead5fdf15891e0c47b094351497a052cc691973f09c60a8322546418eb615bddb180a93fd7846b88b096b5644cb9d375eab2a4a07af64399f5159eccf3edee2
 DIST gmp-6.1.2.tar.xz 1946336 BLAKE2B 
2a864e80799471037a71c10d871f9782c37fe3a0a1734872e90f14a874ecd6551099d67b2ebd07f82a43b0522249a6b46e79952db11a278f87ca8013198f7604
 SHA512 
9f098281c0593b76ee174b722936952671fab1dae353ce3ed436a31fe2bc9d542eca752353f6645b7077c1f395ab4fdd355c58e08e2a801368f1375690eee2c6
-DIST gmp-man-6.0.0a.pdf 1187496 BLAKE2B 
6d10b139cc9d54a5c5a3264393623dc0d8efa561e0040ceec4ec79abe42172d0244e2917a4399268395defa06739fb04c0b2fc005cb833eede07c34fbffbea23
 SHA512 
528972502d65d23b58c47a594a628e648f11cc027bd0894a39b8f892bb421ceabb7f35640a9eede21cea791f5f597ed4661a1f73444c56a6fb31fa6e362d96c2
-DIST gmp-man-6.1.0.pdf 825716 BLAKE2B 
aec5a26abaae4451aad621ee8594f67caf705e6fd730b225ee25dbdd7f4f9fb2447f9234c8763b6f8b2cbd9522b9e1bd6c0c486cf6209bd119884d39178863c1
 SHA512 
cec172766c6f5dce6b7306edbd542a63788df590391b8b2e6fb4e9d48947b2fbb47dd23acaf74eab6d35cb627bcb804e7ebb1d63aa5f043e4daa4558b698a5a0
-DIST gmp-man-6.1.1.pdf 825669 BLAKE2B 
c33e5c77069a39f96d1fb27885adf4851ef4bff806f9709f9cc75161d0c00bfe0cda907471e908e9db76ab4c3d5fdcf42e42ef6da93b906d57ab469eecfd5cb3
 SHA512 
18e6aca87f5ff8848f82456d86233f127328bfbe309e67902c8dd6f25228db344bd3e6cc3a55e48f2c3f19d0a57358bc4ada7cd623799b273030a5119fb1257b
 DIST gmp-man-6.1.2.pdf 825720 BLAKE2B 
b96340da5f534353b140b361fc1ff74757168024e8039d97a0ed1f14d874ff5fbc50abae2ff3505adc51d72e4acf2882ae6ca6405ae37b594f7b248e1ca05247
 SHA512 
85de10b2c03f7381881c3e95aa7fc53d8e018115028496ffbb5a79ab4967106c69ed7e97a5e434e6bb39752498aade8c2caa7cf77a8942b7ffd9150368a0d9c3

diff --git a/dev-libs/gmp/files/6.0.0a/gmp-6.0.0a-arm-thumb.diff 
b/dev-libs/gmp/files/6.0.0a/gmp-6.0.0a-arm-thumb.diff
deleted file mode 100644
index 8b10d09395f..000
--- a/dev-libs/gmp/files/6.0.0a/gmp-6.0.0a-arm-thumb.diff
+++ /dev/null
@@ -1,22 +0,0 @@
-https://gmplib.org/list-archives/gmp-discuss/2014-March/005537.html
-
-# HG changeset patch
-# User Torbjorn Granlund 
-# Date 1396602422 -7200
-# Node ID 676e2d0f0e4dd301a7066079d2c9326c25c34a40
-# Parent  0194a75b56b21a9196626430af86c5bd9110c42d
-Conditionalise ARM asm on !__thumb__.
-
-diff -r 0194a75b56b2 -r 676e2d0f0e4d mpn/generic/div_qr_1n_pi1.c
 a/mpn/generic/div_qr_1n_pi1.c  Thu Apr 03 23:58:51 2014 +0200
-+++ b/mpn/generic/div_qr_1n_pi1.c  Fri Apr 04 11:07:02 2014 +0200
-@@ -130,7 +130,7 @@
-"%2" ((UDItype)(a0)), "r" ((UDItype)(b0)) __CLOBBER_CC)
- #endif
- 
--#if defined (__arm__) && W_TYPE_SIZE == 32
-+#if defined (__arm__) && !defined (__thumb__) && W_TYPE_SIZE == 32
- #define add_mss(m, sh, sl, ah, al, bh, bl)
\
-   __asm__ (  "adds%2, 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2018-06-10 Thread Sergei Trofimovich
commit: 742e5bb4912f5e897af99d20f056832276c3af1a
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sat Jun  9 19:30:35 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Jun 10 16:29:14 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=742e5bb4

dev-libs/gmp: use HTTPs

Closes: https://github.com/gentoo/gentoo/pull/8777

 dev-libs/gmp/gmp-4.3.2-r1.ebuild | 4 ++--
 dev-libs/gmp/gmp-6.0.0a.ebuild   | 6 +++---
 dev-libs/gmp/gmp-6.1.0.ebuild| 6 +++---
 dev-libs/gmp/gmp-6.1.1.ebuild| 6 +++---
 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 6 +++---
 dev-libs/gmp/gmp-6.1.2.ebuild| 6 +++---
 6 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/dev-libs/gmp/gmp-4.3.2-r1.ebuild b/dev-libs/gmp/gmp-4.3.2-r1.ebuild
index deeb2652409..119a7b9dd48 100644
--- a/dev-libs/gmp/gmp-4.3.2-r1.ebuild
+++ b/dev-libs/gmp/gmp-4.3.2-r1.ebuild
@@ -8,7 +8,7 @@ EAPI="5"
 inherit eutils libtool toolchain-funcs multilib-minimal
 
 DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="http://gmplib.org/;
+HOMEPAGE="https://gmplib.org/;
 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
 
 LICENSE="LGPL-3"
@@ -38,7 +38,7 @@ src_prepare() {
 
 multilib_src_configure() {
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
if [[ ${CHOST} == hppa2.0-* ]] ; then
GMPABI="1.0"
fi

diff --git a/dev-libs/gmp/gmp-6.0.0a.ebuild b/dev-libs/gmp/gmp-6.0.0a.ebuild
index 6bbf335105e..84c305ca602 100644
--- a/dev-libs/gmp/gmp-6.0.0a.ebuild
+++ b/dev-libs/gmp/gmp-6.0.0a.ebuild
@@ -9,10 +9,10 @@ MY_PV=${PV/_p*}
 MY_P=${PN}-${MY_PV}
 PLEVEL=${PV/*p}
 DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="http://gmplib.org/;
+HOMEPAGE="https://gmplib.org/;
 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
-   doc? ( http://gmplib.org/${PN}-man-${MY_PV}.pdf )"
+   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
 
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 SLOT="0"
@@ -48,7 +48,7 @@ src_prepare() {
 
 multilib_src_configure() {
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
if [[ ${CHOST} == hppa2.0-* ]] ; then
GMPABI="1.0"
fi

diff --git a/dev-libs/gmp/gmp-6.1.0.ebuild b/dev-libs/gmp/gmp-6.1.0.ebuild
index 5f06f13d2e9..c679c5b9630 100644
--- a/dev-libs/gmp/gmp-6.1.0.ebuild
+++ b/dev-libs/gmp/gmp-6.1.0.ebuild
@@ -10,10 +10,10 @@ MY_PV=${MY_PV/_/-}
 MY_P=${PN}-${MY_PV}
 PLEVEL=${PV/*p}
 DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="http://gmplib.org/;
+HOMEPAGE="https://gmplib.org/;
 SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( http://gmplib.org/${PN}-man-${MY_PV}.pdf )"
+   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
 
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
@@ -54,7 +54,7 @@ src_prepare() {
 
 multilib_src_configure() {
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
if [[ ${CHOST} == hppa2.0-* ]] ; then
GMPABI="1.0"
fi

diff --git a/dev-libs/gmp/gmp-6.1.1.ebuild b/dev-libs/gmp/gmp-6.1.1.ebuild
index d2e8cc6dc92..a8231bd54b5 100644
--- a/dev-libs/gmp/gmp-6.1.1.ebuild
+++ b/dev-libs/gmp/gmp-6.1.1.ebuild
@@ -10,10 +10,10 @@ MY_PV=${MY_PV/_/-}
 MY_P=${PN}-${MY_PV}
 PLEVEL=${PV/*p}
 DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
-HOMEPAGE="http://gmplib.org/;
+HOMEPAGE="https://gmplib.org/;
 SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
mirror://gnu/${PN}/${MY_P}.tar.xz
-   doc? ( http://gmplib.org/${PN}-man-${MY_PV}.pdf )"
+   doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
 
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
@@ -54,7 +54,7 @@ src_prepare() {
 
 multilib_src_configure() {
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
-   # http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
if [[ ${CHOST} == hppa2.0-* ]] ; then
GMPABI="1.0"
fi

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
index 8ee5a2ba140..4f9a4359fca 100644
--- 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2018-04-15 Thread Sergei Trofimovich
commit: 005d4b05b7b7a0d81af3ae011ca677a5814422b2
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Apr 15 17:51:53 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Apr 15 17:52:11 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=005d4b05

dev-libs/gmp: drop USE=pgo (bitrot), bug #650558

Nikita found out that USE=pgo does not work for quite a while
both upstream and downstream:
https://gmplib.org/list-archives/gmp-bugs/2018-March/004349.html

Let's remove USE=pgo completely until better times.

Reported-by: Nikita Zlobin
Closes: https://bugs.gentoo.org/650558
Package-Manager: Portage-2.3.28, Repoman-2.3.9

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 112 +++
 1 file changed, 112 insertions(+)

diff --git a/dev-libs/gmp/gmp-6.1.2-r1.ebuild b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
new file mode 100644
index 000..8ee5a2ba140
--- /dev/null
+++ b/dev-libs/gmp/gmp-6.1.2-r1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic eutils libtool multilib-minimal
+
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+MY_P=${PN}-${MY_PV}
+PLEVEL=${PV/*p}
+DESCRIPTION="Library for arbitrary-precision arithmetic on different type of 
numbers"
+HOMEPAGE="http://gmplib.org/;
+SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
+   mirror://gnu/${PN}/${MY_P}.tar.xz
+   doc? ( http://gmplib.org/${PN}-man-${MY_PV}.pdf )"
+
+LICENSE="|| ( LGPL-3+ GPL-2+ )"
+# The subslot reflects the C & C++ SONAMEs.
+SLOT="0/10.4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+asm doc cxx static-libs"
+
+DEPEND="sys-devel/m4
+   app-arch/xz-utils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P%a}
+
+DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
+HTML_DOCS=( doc )
+MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
+)
+
+src_prepare() {
+   default
+
+   # note: we cannot run autotools here as gcc depends on this package
+   elibtoolize
+
+   # https://bugs.gentoo.org/536894
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
+   fi
+
+   # GMP uses the "ABI" env var during configure as does Gentoo (econf).
+   # So, to avoid patching the source constantly, wrap things up.
+   mv configure configure.wrapped || die
+   cat <<-\EOF > configure
+   #!/usr/bin/env sh
+   exec env ABI="${GMPABI}" "$0.wrapped" "$@"
+   EOF
+   # Patches to original configure might have lost the +x bit.
+   chmod a+rx configure{,.wrapped} || die
+}
+
+multilib_src_configure() {
+   # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
+   # http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
+   if [[ ${CHOST} == hppa2.0-* ]] ; then
+   GMPABI="1.0"
+   fi
+
+   # ABI mappings (needs all architectures supported)
+   case ${ABI} in
+   32|x86)   GMPABI=32;;
+   64|amd64|n64) GMPABI=64;;
+   [onx]32)  GMPABI=${ABI};;
+   esac
+   export GMPABI
+
+   #367719
+   if [[ ${CHOST} == *-mint* ]]; then
+   filter-flags -O?
+   fi
+
+   tc-export CC
+   ECONF_SOURCE="${S}" econf \
+   --localstatedir="${EPREFIX}"/var/state/gmp \
+   --enable-shared \
+   $(use_enable asm assembly) \
+   $(use_enable cxx) \
+   $(use_enable static-libs static)
+}
+
+multilib_src_compile() {
+   emake
+}
+
+multilib_src_test() {
+   emake check
+}
+
+multilib_src_install() {
+   emake DESTDIR="${D}" install
+
+   # should be a standalone lib
+   rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
+   # this requires libgmp
+   local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
+   use static-libs \
+   && sed -i 's:/[^ ]*/libgmp.la:-lgmp:' "${la}" \
+   || rm -f "${la}"
+}
+
+multilib_src_install_all() {
+   einstalldocs
+   use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf 
"${ED}"/usr/share/doc/${PF}/
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/

2018-01-13 Thread Mike Frysinger
commit: 10350dbc9ca2d28a0714ecbda329274ba273a72d
Author: Mike Frysinger  gentoo  org>
AuthorDate: Sat Jan 13 23:14:23 2018 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Sat Jan 13 23:20:48 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10350dbc

dev-libs/gmp: mark 6.1.2 arm/arm64/m68k/s390/sh stable

 dev-libs/gmp/gmp-6.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild
index 9134d5cfa90..1b8a6200d99 100644
--- a/dev-libs/gmp/gmp-6.1.2.ebuild
+++ b/dev-libs/gmp/gmp-6.1.2.ebuild
@@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
 LICENSE="|| ( LGPL-3+ GPL-2+ )"
 # The subslot reflects the C & C++ SONAMEs.
 SLOT="0/10.4"
-KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh 
sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+asm doc cxx pgo static-libs"
 
 DEPEND="sys-devel/m4



  1   2   >