Commit graph

78 commits

Author SHA1 Message Date
jnemeth
5f534b93e8 Update to GNU MP 4.2.1
Changes between GMP version 4.2 and 4.2.1

  Bugs:
  * Shared library numbers corrected.
  * Broken support for 32-bit AIX fixed.
  * Misc minor fixes.

  Speedups:
  * Exact division (mpz_divexact) now falls back to plain division for large
    operands.

  Features:
  * Support for some new systems.


Changes between GMP version 4.1.4 and 4.2

  Bugs:
  * Minor bug fixes and code generalizations.
  * Expanded and improved test suite.

  Speedups:
  * Many minor optimizations, too many to mention here.
  * Division now always subquadratic.
  * Computation of n-factorial much faster.
  * Added basic x86-64 assembly code.
  * Floating-point output is now subquadratic for all bases.
  * FFT multiply code now about 25% faster.
  * Toom3 multiply code faster.

  Features:
  * Much improved configure.
  * Workarounds for many more compiler bugs.
  * Temporary allocations are now made on the stack only if small.
  * New systems supported: HPPA-2.0 gcc, IA-64 HP-UX, PowerPC-64 Darwin,
    Sparc64 GNU/Linux.
  * New i386 fat binaries, selecting optimised code at runtime (--enable-fat).
  * New build option: --enable-profiling=instrument.
  * New memory function: mp_get_memory_functions.
  * New Mersenne Twister random numbers: gmp_randinit_mt, also now used for
    gmp_randinit_default.
  * New random functions: gmp_randinit_set, gmp_urandomb_ui, gmp_urandomm_ui.
  * New integer functions: mpz_combit, mpz_rootrem.
  * gmp_printf etc new type "M" for mp_limb_t.
  * gmp_scanf and friends now accept C99 hex floats.
  * Numeric input and output can now be in bases up to 62.
  * Comparisons mpz_cmp_d, mpz_cmpabs_d, mpf_cmp_d recognise infinities.
  * Conversions mpz_get_d, mpq_get_d, mpf_get_d truncate towards zero,
    previously their behaviour was unspecified.
  * Fixes for overflow issues with operands >= 2^31 bits.

  Caveats:
  * mpfr is gone, and will from now on be released only separately.  Please see
    www.mpfr.org.
2006-12-09 03:38:16 +00:00
jschauma
721b60b433 Instead of setting compiler flags in each package if it uses C99,
allow USE_LANGUAGES+=c99 and let gcc and mipspro do the right thing.
May need to be reviewed/added for other compilers.
ok rillig@
2006-12-02 22:32:59 +00:00
schwarz
3a870f933c corrected LOWER_OPSYS matching for IRIX 5 2006-10-22 19:49:07 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
rillig
96fc47c14f Aligned the last line of the buildlink3.mk files with the first line, so
that they look nicer.
2006-04-12 10:26:59 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
792529759b * Honor PKGINFODIR.
* List the info files directly in the PLIST.
2006-03-30 03:44:41 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
hiramatsu
27c19ee0da Fix for OpenBSD/i386.
This patch is taken from OpenBSD ports.
2005-11-02 04:38:42 +00:00
jschauma
1c40d9a183 Make this work on IRIX, by passing -c99 (if mipspro is used) and by
ensuring that the conftests are actually removed and therefor capabilities
can actually be detected (rather than configure failing for them)
2005-10-21 15:46:43 +00:00
jschauma
13dcf12680 revert previous; this wasn't tested very well. Sorry. 2005-06-14 14:28:32 +00:00
jschauma
465ef78b4a make this build on IRIX 2005-06-14 03:08:30 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
jschauma
4884bc7744 patch configure to work with current irix versions 2005-05-10 02:31:38 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
wiz
9ab65e5aae Add patch provided by Richard Earnshaw in PR 23181:
"GMP does not handle pure-endian FP on ARM"
Bump PKGREVISION.
2005-03-15 15:51:30 +00:00
agc
4a3d2f7ce2 Add RMD160 digests. 2005-02-23 22:24:08 +00:00
hubertf
9a981bcfbe Sign over maintainership to tech-pkg@ 2005-02-21 20:26:08 +00:00
grant
fafc14b844 set ABI=o32 on irix5, as gmp only supports o32 on irix5.
fixes PR pkg/28072 from Georg Schwarz.
2004-12-18 15:43:19 +00:00
adam
bed7c85964 Changes 4.1.4:
* Bug fix to FFT multiplication code (crash for huge operands).
* Bug fix to mpf_sub (miscomputation).
* Support for powerpc64-gnu-linux.
* Better support for AMD64 in 32-bit mode.
* Upwardly binary compatible with 4.1.3, 4.1.2, 4.1.1, 4.1, 4.0.1, 4.0,
  and 3.x versions.
2004-11-22 13:58:28 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
adam
a90efb8f55 Changes 4.1.3:
* Bug fixes.
* mpz_export allows NULL for countp parameter.
2004-08-18 12:41:32 +00:00
kristerw
f00487a0f9 unused. 2004-05-29 16:28:09 +00:00
jlam
9ff0e10340 Reorder location and setting of BUILDLINK_PACKAGES to match template
buildlink3.mk file in revision 1.101 of bsd.buildlink3.mk.
2004-03-05 19:25:06 +00:00
drochner
34fb415599 fix amd64 inline assembler code to deal with 32-bit integers
passed to count_trailing_zeros()
2004-02-26 17:08:22 +00:00
seb
beb564ec34 Remove info files entries from PLIST. 2004-02-15 21:58:52 +00:00
jlam
ec993afa1a LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}.  Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
2004-02-14 17:21:32 +00:00
jlam
f82e70315b This package uses C++. Also some reorg to improve readability. 2004-02-12 09:00:29 +00:00
jlam
3ac2d4b8aa In the new compiler selection framework, GCC_REQD is appended to, not
overridden.
2004-02-01 01:43:28 +00:00
jlam
a7d877ca6a Append to BUILDLINK_DEPENDS.<pkg> instead of setting a default value. In
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives
a value only once due to the multiple inclusion protection in the
bulldlink3.mk files.  In the case where a package includes several
buildlink3.mk files that each want a slightly different version of another
dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the
strictest <pkg> dependency to be matched.
2004-01-24 03:26:45 +00:00
jlam
5ae63b68fd bl3ify 2004-01-19 13:15:52 +00:00
kristerw
1f71058558 Add the gmpxx lib and .h files. 2003-12-30 23:24:45 +00:00
salo
82caa48605 Add math to CATEGORIES.
Style nits.
2003-12-02 21:57:26 +00:00
kristerw
56f7da05e0 The configure script thinks gcc 2.95 for ARM is too buggy to use,
so require gcc 3 for arm.
2003-10-28 22:33:57 +00:00
grant
4c205ffd00 use tools.mk for GNU m4.
move a line for clarity.
2003-09-27 15:09:05 +00:00
grant
7c6d577bdf add USE_GCC_SHLIB, reorder some lines a bit for clarity. 2003-09-17 16:24:37 +00:00
heinz
88cf5f7621 Add correct TEST_TARGET 2003-08-21 20:09:29 +00:00
seb
8d15907ec2 USE_NEW_TEXINFO is unnecessary now. 2003-08-09 10:38:23 +00:00
grant
91f00f1cbc s/netbsd.org/NetBSD.org/ 2003-07-17 21:21:03 +00:00
seb
331973aa91 Convert to USE_NEW_TEXINFO. 2003-06-23 10:57:27 +00:00
mycroft
5d3ea311dd Update to gmp 4.1.2. Many changes, but the relevant bug fixes seems to be:
* mpn/generic/rootrem.c: In Newton loop, pad qp with leading zero.

	* mpn/generic/rootrem.c: Allocate 1.585 (log2(3)) times more space
        for pp temporary to allow for worst case overestimate of root.
	Add some asserts.

	* tests/mpz/t-root.c: Generalize and speed up.

        * mpfr/pow.c: Fixed bug (infinite loop) for exact powers.

	* mpfr/sub.c: Fixed wrong inexact flag for a - b where a and b are of
        different signs and EXP(a) < EXP(b).

	* printf/printffuns.c (gmp_fprintf_reps): Make it actually work
	for padding > 256.

        * gmp-impl.h (USE_LEADING_REGPARM): Disable for PIC code generation.

	* mpn/generic/tdiv_qr.c: Remove a bogus assert.

	* mpn/generic/mode1o.c, mpn/alpha/ev5/mode1o.c: Correction to ASSERTs.
	Reported by Christoph Ludwig.

	* mpf/urandomb.c: Truncate nbits to precision of rop.

	* configure.in (sparc v9 *bsd*): Add NetBSD and OpenBSD sparc64.
	(x86 openbsd*): Extra underscore for _GLOBAL_OFFSET_TABLE_.

	* mpn/generic/rootrem.c: Avoid overflow in xnb calculation.
	* mpz/root.c: Avoid overflow in rootnb calculation.

	* gmpxx.h (__gmp_binary_equal, __gmp_binary_not_equal): Fix broken
	mpq/double functions.

	* mpn/m68k/lshift.asm: Fix typo in !scale_available_p code.
        * mpn/m68k/rshift.asm: Likewise.

	* mpz/remove.c: Make src==0 return 0, not do DIVIDE_BY_ZERO.

	* mpfr/acinclude.m4 (MPFR_CONFIGS): Patch by Vincent for an apparent
	float rounding gremlin on powerpc.

	* mpf/inp_str.c: Fix returned count of chars read, reported by Paul
	Zimmermann.  Also fix a memory leak for invalid input.

	* mpfr/set_q.c: Allow for 1 bit numerator or denominator.
2003-02-21 12:25:22 +00:00
hubertf
6c7fb30842 fix dependency for m4 2003-01-02 20:30:59 +00:00
wiz
a4ec645faa Unused. 2002-10-09 19:45:53 +00:00
jlam
08fc1a448c Add a buildlink2.mk based on the existing buildlink.mk one. 2002-08-27 06:23:53 +00:00
jlam
1c57323789 Merge packages from the buildlink2 branch back into the main trunk that
have been converted to USE_BUILDLINK2.
2002-08-25 21:48:57 +00:00
mjl
a1f4abf7ef Update to 4.1
* Bug fixes.
* Speed improvements.
* Upwardly binary compatible with 4.0, 4.0.1, and 3.x versions.
* Asymptotically fast conversion to/from strings (mpz, mpq, mpn levels), but
  also major speed improvements for tiny operands.
* mpn_get_str parameter restrictions relaxed.
* Major speed improvments for HPPA 2.0 systems.
* Major speed improvments for UltraSPARC systems.
* Major speed improvments for IA-64 systems (but still sub-optimal code).
* Extended test suite.
* mpfr is back, with many bug fixes and portability improvements.
* New function: mpz_ui_sub.
* New functions: mpz_export, mpz_import.
* Optimization for nth root functions (mpz_root, mpz_perfect_power_p).
* Optimization for extended gcd (mpz_gcdext, mpz_invert, mpn_gcdext).
* Generalized low-level number format, reserving a `nails' part of each
  limb.  (Please note that this is really experimental; some functions
  are likely to compute garbage when nails are enabled.)
* Nails-enabled Alpha 21264 assembly code, allowing up to 75% better
  performance.  (Use --enable-nails=4 to enable it.)
2002-08-24 00:39:06 +00:00
fredb
2c2c66c485 Make this compile with gas-2.11.2/m68k/ELF (NetBSD-1.5ZC/mac68k). 2002-05-10 05:06:22 +00:00
jschauma
f21a14f365 Build C++ library, too.
(Commit approved by hubertf)
2002-04-12 14:12:18 +00:00