Commit graph

160 commits

Author SHA1 Message Date
maya
9543b8c0fe gmp: add missing PKGCONFIG_OVERRIDE for rpath. bump PKGREVISION. 2021-12-23 18:39:30 +00:00
wiz
4344524f90 gmp: fix CVE-2021-43618 using upstream patch
Bump PKGREVISION.
2021-11-26 12:23:08 +00:00
nia
f27e22519a archivers: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
2021-10-26 10:13:59 +00:00
nia
2da474aec0 devel: Remove SHA1 hashes for distfiles 2021-10-07 13:38:55 +00:00
wiz
1f2ce87cc5 gmp: update to 6.2.1.
Fix some pkglint while here.

Changes between GMP version 6.2.0 and 6.2.1

  BUGS FIXED
  * A possible overflow of type int is avoided for mpz_cmp on huge operands.

  * Overflows are more carefully detected and reported for mpz_pow_ui.

  * A bug in longlong.h for aarch64 sub_ddmmss, not affecting GMP, was healed.

  * mini-gmp: mpz_out_str and mpq_out_str now correctly handle out of
    range bases.

  FEATURES
  * C90 compliance.

  * Initial support for Darwin on arm64, and improved portability.

  * Support for more processors.

  SPEEDUPS
  * None, except indirectly through recognition of new CPUs.
2020-11-16 13:12:41 +00:00
prlw1
ec7ab9c72b gmp,mpfr: Remove CONFIGURE_ARGS flags from builtin.mk as it assumes that
all recursively depending packages can deal with them.
Those packages that need them already add those CONFIGURE_ARGS, at least
pbulk hasn't revealed any issues (thanks jperkin@).
XXX libiconv is in a similar position, so should receive similar
treatment, but at least it only adds the flags if GNU_CONFIGURE=yes
Fixes PR pkg/55487
2020-09-03 08:58:42 +00:00
adam
b6877af143 gmp: updated to 6.2.0
Changes between GMP version 6.1.* and 6.2.0

BUGS FIXED
* gmp_snprintf now correctly reports an error (returns -1) when snprintf
  does.
* Conversion to double is now more robust even if the configuration process
  does not recognize the float format.
* mpz_powm could return a not completely normalised value, when the
  exponent was 1 and the base < 0.
* mpf_set_str could create invalid mpf_t variables for input strings with
  many leading zeros.

FEATURES
* New C++ functions factorial, primorial and fibonacci for mpz_class.
* Functions to detect primality now substitute the first 24 Miller-Rabin
  iterations with the BPSW test.
* Mini-GMP: new functions mpz_2fac_ui and mpz_mfac_uiui.
* Mini-GMP: mpz_sizeinbase, mpz_get_str, and mpz_set_str now support bases up
  to 62.
* Mini-GMP: added support for the mpq_t layer.
* MIPS r6 cores are now supported.

SPEEDUPS
* Major speedup for AMD Ryzen and Epyc thanks to an extensive set of assembly
  code.
* Major speedup for IBM POWER9 thanks to assembly code making use of new madd
  instruction.
* Speedup for 64-bit ARM CPUs thanks to new/improved assembly code.
* The n-over-k function mpz_bin_ui has been reimplemented for great speedups
  for large operands.
* Speedup for the worst case of mpz_perfect_power_p.
* Speedup for gcd for small and medium size operands.
* Speedup for really huge multiplies thanks to much larger FFT tables.

MISC
* Internal representation of the mpz_t variables now supports lazy
  allocation; memory is allocated only when a value is stored.
* Small improvements and better coverage for the test suite.
* The tune/speed program can measure some more functions.
* The low-level function mpn_mul no longer diverts to mpn_sqr, users should
  call mpn_sqr directly when applicable.
* New installed files gmp.pc and gmpxx.pc, for use with pkg-config.
2020-01-20 21:25:24 +00:00
rillig
7724b801cd devel: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-03 10:39:04 +00:00
joerg
f9d30b1cc4 Explicitly depend on the extraction tools here as SKIP_DEPENDS doesn't
make the dependency visible. It also helps bulk builds on platforms
without native bzcat.
2017-10-18 11:15:39 +00:00
wiz
8733ee0040 Follow some http -> https redirects. 2017-08-01 14:58:51 +00:00
maya
e5c05de72f Omit low GCC_REQD 2017-07-16 19:06:12 +00:00
msaitoh
e1192909ae Fix distinfo. 2017-06-15 04:12:32 +00:00
msaitoh
f444abbfc3 Fix PR pkg/51788(fails in configure phase). Use calloc() instead of malloc().
This bug was observed with "ln -s J /etc/malloc.conf"
2017-06-15 04:11:50 +00:00
jperkin
17d37e30b3 Remove SunOS too. Unbreaks build. 2017-04-22 08:23:17 +00:00
adam
a1eb2c3fc3 Removed Darwin from MPN-generic hack as it builds correctly without it. Configure failed for newer CPUs when generic was enabled. 2017-04-22 07:01:07 +00:00
szptvlfn
ec51d0180c remove TODO 2017-04-20 22:37:57 +00:00
agc
30b55df38e Convert all occurrences (353 by my count) of
MASTER_SITES= 	site1 \
			site2

style continuation lines to be simple repeated

	MASTER_SITES+= site1
	MASTER_SITES+= site2

lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint
accordingly.
2017-01-19 18:52:01 +00:00
wiz
1c0080657a Updated gmp to 6.1.2.
Changes between GMP version 6.1.1 and 6.1.2

  BUGS FIXED
  * Mini-GMP: Fixed a division bug, which on a machine with 64-bit
    unsigned long affects approximately 1 out of 2^32 divisors.

  * Mini-GMP: Fix mpz_set_str crash on inputs with a large number of
    leading zeros. Also stricter input validation, rejecting inputs
    with no digits.

  FEATURES
  * Handle more systems which require PIC code in static libraries (e.g.,
    "hardened" Gentoo and Debian 9).

  * Configuration for arm (-32 and -64) has been rewritten, fixing poor
    code selection for many CPUs.

  * Mini-GMP: Updated to the latest development version, including
    new functions mpn_com and mpn_neg.

  SPEEDUPS
  * None, except for arm CPUs affected by the configuration rewrite.
2016-12-19 08:50:45 +00:00
adam
ca2e97d54f Changes in GMP 6.1.1
BUGS FIXED
* Make Intel Broadwell configurations work on Windows.

FEATURES
* Work around faulty cpuid on some recent Intel chips (this allows GMP to run on Skylake Pentiums).
* Support thumb-less ARM chips.
2016-08-23 05:10:48 +00:00
wiz
7ad5be5d76 Update gmp to 6.1.0:
Changes between GMP version 6.0.* and 6.1.0

  BUGS FIXED
  * The public function mpn_com is now correctly declared in gmp.h.

  * Healed possible failures of mpn_sec_sqr for non-cryptographic sizes for
    some obsolete CPUs.

  * The option --disable-assembly now disables all inlined asm.

  * Fixed bug affecting mini-gmp's bitwise functions mpz_setbit, mpz_clrbit,
    and mpz_combit.

  * Various problems related to precision for mpf have been fixed.

  * Fixed ABI incompatible stack alignment in calls from assembly code.

  * Fixed PIC bug in popcount affecting Intel processors using the 32-bit ABI.

  SPEEDUPS
  * Speedup for Intel Broadwell and Skylake though assembly code making use of
    new ADX instructions.

  * Square root is now faster when the remainder is not needed. Also the speed
    to compute the k-th root improved, for small sizes.

  * Improved arm64 support.

  FEATURES
  * New C++ functions gcd and lcm for mpz_class.

  * New public mpn functions mpn_divexact_1, mpn_zero_p, and mpn_cnd_swap.

  * New public mpq_cmp_z function, to efficiently compare rationals with
    integers.

  * Support for Darwin in all x86 code, thereby enabling fat builds on Darwin.

  * Support for more 32-bit arm processors.

  * Support for compilation with clang/llvm on more platforms.  Caution: GMP
    triggers mis-compilation bugs in clang for many platforms, such as arm, x86
    (32-bit and 64-bit), powerpc, mips.

  * Support for AVX-less modern x86 CPUs. (Such support might be missing either
    because the CPU vendor chose to disable AVX, or because the running kernel
    lacks AVX context switch support.)

  * Stack usage trimmed; we believe 512 KiB is now sufficient for any GMP
    call, irrespective of operand size.

  * Support for NetBSD under Xen; we switch off AVX unconditionally under
    NetBSD since a bug in NetBSD makes AVX fail under Xen.

  MISC
  * We now use manufacturers' code names for x86 CPUs, e.g., "haswell" instead
    of names derived from the commercial brands.

  * Small improvements and better coverage for the test suite.

  * The various FreeBSD problems listed for 6.0.0 affect this release too.

  * Tuned values for FFT multiplications are provided for larger number on
    many platforms.
2015-11-13 11:36:44 +00:00
wiz
6d765506a0 Split a patch into standard patches.
date: 2015-04-03 09:41:26 +0200;  author: mrg;  state: Exp;  commitid: HjchnsCySB9wh7gy;
port some changes from netbsd gmp and adapt them to the gmp 6.x.
this allows devel/gmp to build on armv4.
2015-11-13 10:42:23 +00:00
agc
d9e4cfe05d Add SHA512 digests for distfiles for devel category
Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 03:27:11 +00:00
joerg
3a34460abd Don't clean intermediate files after checksum/patch phase.
The work directories are almost empty, so it doesn't save much space.
It makes debugging annoying and it breaks local DISTDIR settings.
2015-09-15 20:56:33 +00:00
richard
3ccdedd0f4 Fix builtin to not need any compiler elements in path, only to determine
version string... use awk instead to construct directly from gmp.h
2015-07-16 09:16:30 +00:00
mrg
03de68df2c port some changes from netbsd gmp and adapt them to the gmp 6.x.
this allows devel/gmp to build on armv4.
2015-04-03 07:41:26 +00:00
gdt
46c8951571 Fix LICENSE to match current package contents. 2015-03-30 18:48:08 +00:00
tnn
3d1160c0ce Remove obsolete BUILDLINK_TRANSFORMs. The package does not set any of the
transformed compiler flags when built through pkgsrc because
config.guess overrides are in effect. Fixes build with cwrappers on i386.

Also add a comment that we should enable the runtime CPU detection support
on amd64 some time in the future.
2015-03-19 20:40:31 +00:00
richard
f104aea758 revert gmp/Makefile 2014-09-10 10:41:13 +00:00
richard
cfd0295a64 adding devel/py-hgnested
hgnested is a Mercurial extension to work with nested repositories.

It was inspired by the forest extension.

The extension allows to apply common Mercurial commands to all the nested
repositories at once like pull, push etc. It also allows to fetch a complete
tree of repositories through ssh or http.

To enable the "hgnested" extension, create an entry for it in your hgrc, like
this:

    [extensions]
    hgnested =

See `hg help hgnested` for the complete list of commands.

For more information please visit the following website:

	http://code.google.com/p/hgnested/
2014-09-10 10:14:07 +00:00
ryoon
4f15a17884 Fix inplace patching 2014-04-23 12:55:42 +00:00
adam
11e455d820 Fixed building on Darwin. 2014-04-18 10:49:01 +00:00
wiz
18b5d628e5 Update to 6.0.0a:
Changes between 6.0.0 and 6.0.0a:
Not documented.

Changes between GMP version 5.1.* and 6.0.0

  BUGS FIXED
  * The function mpz_invert now considers any number invertible in Z/1Z.

  * The mpn multiply code now handles operands of more than 2^31 limbs
    correctly.  (Note however that the mpz code is limited to 2^32 bits on
    32-bit hosts and 2^37 bits on 64-bit hosts.)

  * Contains all fixes from release 5.1.3.

  SPEEDUPS
  * Plain division of large operands is faster and more monotonous in operand
    size.

  * Major speedup for ARM, in particular ARM Cortex-A15, thanks to improved
    assembly.

  * Major speedup for SPARC T4/T5 and speedup also for T3, thanks to a lot of
    new assembly.

  * Speedup for Intel Sandy Bridge, Ivy Bridge, Haswell, thanks to rewritten
    and vastly expanded assembly support.  Speedup also for the older Core 2
    and Nehalem.

  * Faster mixed arithmetic between mpq_class and double.

  * With g++, optimise more operations when one argument is a simple constant.

  FEATURES
  * Support for new Intel and AMD CPUs.

  * Support for ARM64 alias Aarch64 alias ARMv8.

  * New public functions mpn_sec_mul and mpn_sec_sqr, implementing side-channel
    silent multiplication and squaring.

  * New public functions mpn_sec_div_qr and mpn_sec_div_r, implementing
    side-channel silent division.

  * New public functions mpn_cnd_add_n and mpn_cnd_sub_n.  Side-channel silent
    conditional addition and subtraction.

  * New public function mpn_sec_powm, implementing side-channel silent modexp.

  * New public function mpn_sec_invert, implementing side-channel silent
    modular inversion.

  * Better support for applications which use the mpz_t type, but nevertheless
    need to call some of the lower-level mpn functions.  See the documentation
    for mpz_limbs_read and related functions.

  MISC
    [FreeBSD bashing removed]
2014-04-17 13:08:24 +00:00
obache
ba2f7e565e Rewrite to support builtin gmp on CentOS 6.5/x86_64.
* gmp.h is a wrapper to include archtecture specific include file.
* builtin library is in lib${LIBABISUFFIX}.
2014-03-07 13:26:15 +00:00
obache
9c8f3a49c8 Change to support system prefixes other than "/usr". 2014-03-07 11:30:49 +00:00
obache
d64969a70e Add CHECK_BUILTIN guard. 2014-03-02 08:00:00 +00:00
adam
568763a9e5 Oops.. switched back to .tar.bz2 2013-10-02 15:13:46 +00:00
adam
c12966a227 Changes 5.1.3:
BUGS FIXED
  * The internal functions mpn_sbpi1_div_qr_sec mpn_sbpi1_div_r_sec could
    compute garbage with a low probability.  They are now rewritten, and the
    test code has been improved.

  * A bug in the ia64 implementation of mpn_divrem_2, clobbering some
    callee-save registers, has been fixed. This is an internal
    function, with the bug manifesting itself as miscomputation in,
    e.g., mpn_sqrtrem.

  * The documentation now correctly says 'const' for input arguments.
2013-10-02 15:10:55 +00:00
wiz
8a9554f3c4 Update to 5.1.2:
Changes between GMP version 5.1.1 and 5.1.2

  BUGS FIXED
  * A bug in mpz_powm_ui triggered by base arguments of at least 15000 decimal
    digits or mod arguments of at least 7500 decimal digits has been fixed.

  * A AMD Bulldozer specific bug affecting the 64-bit Windows ABI has been
    fixed.  This bug was in a key function (mpn_mul_1) and made both Bulldozer
    specific builds and fat builds run on Bulldozer completely non-functional.

  MISC
  * Fixes and generalisations to the test suite.

  * Minor portability enhancements.
2013-05-25 13:32:26 +00:00
riastradh
c5ccf298d7 Fix devel/gmp cross-build by telling it about the native C compiler.
ok agc
2013-05-10 00:44:29 +00:00
asau
4fd2966508 Perform fetch at fetch phase. 2013-04-07 16:19:08 +00:00
asau
df61e59608 "fetch" isn't a good target to fetch distfiles, it doesn't calculate digests.
Use "checksum" instead.
2013-04-07 16:13:56 +00:00
adam
b6615a3e57 Changes 5.1.1:
BUGS FIXED
On Windows 64-bit, an error causing link errors about __gmp_binvert_limb_table has been fixed.
Aarch64 alias ARM64 support now works.
A possible buffer overrun in mpz_ior has been fixed.
A rare sign flip in mpz_remove has been fixed.
A bug causing problems with mpf numbers with absolute value ≥ 231 has been fixed.
Several bugs in mini-gmp have been fixed.
A bug caused by automake, related to the 'distcheck' target, has been fixed by upgrading the automake used for GMP release engineering.

FEATURES
Preliminary support for the x32 ABI under x86-64.

MISC
The mini-gmp testsuite now tests the entire set of functions.
Various improvements of the GMP testsuite.
2013-02-12 09:15:36 +00:00
hans
9e628609f3 Document .tar.bz2 requirement, requested by wiz. 2013-02-01 23:09:54 +00:00
hans
e7f7ae43b2 Use .tar.bz2 distfile so that no extra dependency on archivers/xz is
needed when building lang/gcc* with option gcc-inplace-math.
2013-02-01 11:26:22 +00:00
adam
742cf4e2b5 Changes 5.1.0:
BUGS FIXED
* When reading a C++ number (like mpz_class) in an istream reaches the end
  of the stream, the eofbit is now set.

* The result sign of mpz_rootrem's remainder is now always correct.
* The mpz_remove function now handles negative divisors.
* Contains all fixes from release 5.0.5.

SPEEDUPS
* The n-factorial and n-over-k functions have been reimplemented for great
  speedups for small and large operands.
* New subquadratic algorithm for the Kronecker/Jacobi/Legendre symbol.
* Major speedup for ARM, in particular ARM Cortex-A9 and A15, thanks to broad
  assembly support.
* Significant speedup or POWER6 and POWER7 thanks to improved assembly.
* The performance under M$ Windows' 64-bit ABI has been greatly improved
  thanks to complete assembly support.
* Minor speed improvements of many functions and for many platforms.

FEATURES
* Many new CPUs recognised.
* New functions for multi-factorials, and primorial: mpz_2fac_ui,
  mpz_mfac_uiui and mpz_primorial_ui.
* The mpz_powm_sec function now uses side-channel silent division for
  converting into Montgomery residues.
* The fat binary mechanism is now more robust in its CPU recognition.

MISC
* Inclusion of assembly code is now controlled by the configure options
  --enable-assembly and --disable-assembly.  The "none" CPU targets is gone.
* In C++, the conversions mpq_class->mpz_class, mpf_class->mpz_class and
  mpf_class->mpq_class are now explicit.
* Includes "mini-gmp", a small, portable, but less efficient, implementation
  of a subset of GMP's mpn and mpz interfaces. Used in GMP bootstrap, but it
  can also be bundled with applications as a fallback when the real GMP
  library is unavailable.
* The ABIs under AIX are no longer called aix32 and aix64, but mode64 and 32.
  This is more consistent with other powerpc systems.
* The coverage of the testsuite has been improved, using the lcov tool.  See
  also http://gmplib.org/devel/lcov/.
* It is now possible to compile GMP using a C++ compiler.
* K&R C compilers are no longer supported.
* The BSD MP compatibility functions have been removed.
2013-01-31 20:30:25 +00:00
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
drochner
d84d64ba49 update to 5.0.5
changes: bugfixes, in particular for glitches with newer CPUs
2012-05-11 14:08:59 +00:00
hans
590cbada61 Add inplace.mk to allow building this inside another package. 2012-04-13 11:00:14 +00:00
drochner
e47acb504e update to 5.0.4
changes:
-bugfixes
-New CPUs recognised
2012-02-21 13:18:19 +00:00
hans
a9321c60e1 Set CFLAGS for the benefit of packages ignoring CPPFLAGS. 2012-02-16 18:39:53 +00:00