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.diff -r1.87 -r1.88 pkgsrc/devel/gmp/Makefile
(wiz)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.87 2020/01/20 21:25:24 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.88 2020/11/16 13:12:41 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= gmp-6.2.0 | 3 | DISTNAME= gmp-6.2.1 | |
4 | CATEGORIES= devel math | 4 | CATEGORIES= devel math | |
5 | MASTER_SITES= https://gmplib.org/download/gmp/ | 5 | MASTER_SITES= https://gmplib.org/download/gmp/ | |
6 | MASTER_SITES+= ${MASTER_SITE_GNU:=gmp/} | 6 | MASTER_SITES+= ${MASTER_SITE_GNU:=gmp/} | |
7 | # Use .tar.bz2 distfile so that no extra dependency on archivers/xz | 7 | # Use .tar.bz2 distfile so that no extra dependency on archivers/xz | |
8 | # is needed when building lang/gcc* with option gcc-inplace-math. | 8 | # is needed when building lang/gcc* with option gcc-inplace-math. | |
9 | EXTRACT_SUFX= .tar.bz2 | 9 | EXTRACT_SUFX= .tar.bz2 | |
10 | 10 | |||
11 | MAINTAINER= pkgsrc-users@NetBSD.org | 11 | MAINTAINER= pkgsrc-users@NetBSD.org | |
12 | HOMEPAGE= https://gmplib.org/ | 12 | HOMEPAGE= https://gmplib.org/ | |
13 | COMMENT= Library for arbitrary precision arithmetic | 13 | COMMENT= Library for arbitrary precision arithmetic | |
14 | LICENSE= gnu-lgpl-v3 OR gnu-gpl-v2 | 14 | LICENSE= gnu-lgpl-v3 OR gnu-gpl-v2 | |
15 | 15 | |||
16 | USE_LANGUAGES= c c++ c99 | 16 | USE_LANGUAGES= c c++ c99 | |
@@ -26,27 +26,27 @@ WRKSRC= ${WRKDIR}/${DISTNAME:S/a$//} | @@ -26,27 +26,27 @@ WRKSRC= ${WRKDIR}/${DISTNAME:S/a$//} | |||
26 | PLIST_VARS+= cxx | 26 | PLIST_VARS+= cxx | |
27 | 27 | |||
28 | .include "../../mk/bsd.prefs.mk" | 28 | .include "../../mk/bsd.prefs.mk" | |
29 | 29 | |||
30 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | 30 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | |
31 | CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} | 31 | CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} | |
32 | .endif | 32 | .endif | |
33 | 33 | |||
34 | .if empty(PKGSRC_COMPILER:Msunpro) | 34 | .if empty(PKGSRC_COMPILER:Msunpro) | |
35 | CONFIGURE_ARGS+= --enable-cxx | 35 | CONFIGURE_ARGS+= --enable-cxx | |
36 | PLIST.cxx= yes | 36 | PLIST.cxx= yes | |
37 | .endif | 37 | .endif | |
38 | 38 | |||
39 | .if !empty(MACHINE_PLATFORM:MIRIX-5*) && !empty(ABI) | 39 | .if !empty(MACHINE_PLATFORM:MIRIX-5.*) && !empty(ABI) | |
40 | ABI= o32 | 40 | ABI= o32 | |
41 | .endif | 41 | .endif | |
42 | 42 | |||
43 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | 43 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | |
44 | . if !empty(PKGSRC_COMPILER:Msunpro) | 44 | . if !empty(PKGSRC_COMPILER:Msunpro) | |
45 | # don't use x86 assembly (it doesn't build) | 45 | # don't use x86 assembly (it doesn't build) | |
46 | CONFIGURE_ENV+= MPN_PATH="generic" | 46 | CONFIGURE_ENV+= MPN_PATH="generic" | |
47 | . else | 47 | . else | |
48 | PKG_OPTIONS_VAR= PKG_OPTIONS.gmp | 48 | PKG_OPTIONS_VAR= PKG_OPTIONS.gmp | |
49 | PKG_SUPPORTED_OPTIONS= gmp-fat mmx simd | 49 | PKG_SUPPORTED_OPTIONS= gmp-fat mmx simd | |
50 | PKG_SUGGESTED_OPTIONS= gmp-fat | 50 | PKG_SUGGESTED_OPTIONS= gmp-fat | |
51 | . include "../../mk/bsd.options.mk" | 51 | . include "../../mk/bsd.options.mk" | |
52 | ### | 52 | ### |
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | # $NetBSD: builtin.mk,v 1.10 2020/09/03 08:58:42 prlw1 Exp $ | 1 | # $NetBSD: builtin.mk,v 1.11 2020/11/16 13:12:41 wiz Exp $ | |
2 | 2 | |||
3 | BUILTIN_PKG:= gmp | 3 | BUILTIN_PKG:= gmp | |
4 | 4 | |||
5 | BUILTIN_FIND_HEADERS_VAR:= H_GMP | 5 | BUILTIN_FIND_HEADERS_VAR:= H_GMP | |
6 | BUILTIN_FIND_HEADERS.H_GMP= gmp.h gmp/gmp.h | 6 | BUILTIN_FIND_HEADERS.H_GMP= gmp.h gmp/gmp.h | |
7 | 7 | |||
8 | BUILTIN_VERSION_SCRIPT.gmp= ${AWK} \ | 8 | BUILTIN_VERSION_SCRIPT.gmp= ${AWK} \ | |
9 | '/\#define[ \t]*__GNU_MP_VERSION[ \t]/ { major = $$3; } \ | 9 | '/\#define[ \t]*__GNU_MP_VERSION[ \t]/ { major = $$3; } \ | |
10 | /\#define[ \t]*__GNU_MP_VERSION_MINOR[ \t]/ { minor = $$3; } \ | 10 | /\#define[ \t]*__GNU_MP_VERSION_MINOR[ \t]/ { minor = $$3; } \ | |
11 | /\#define[ \t]*__GNU_MP_VERSION_PATCHLEVEL[ \t]/ { patch = $$3; } \ | 11 | /\#define[ \t]*__GNU_MP_VERSION_PATCHLEVEL[ \t]/ { patch = $$3; } \ | |
12 | END { if (major!="" && minor!="" && patch!="") \ | 12 | END { if (major!="" && minor!="" && patch!="") \ | |
13 | print major "." minor "." patch; else print ""; }' | 13 | print major "." minor "." patch; else print ""; }' | |
14 | 14 | |||
15 | .include "../../mk/buildlink3/bsd.builtin.mk" | 15 | .include "../../mk/buildlink3/bsd.builtin.mk" | |
16 | 16 | |||
17 | ### | 17 | ### | |
18 | ### Determine if there is a built-in implementation of the package and | 18 | ### Determine if there is a built-in implementation of the package and | |
19 | ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). | 19 | ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). | |
20 | ### | 20 | ### | |
21 | .if !defined(IS_BUILTIN.gmp) | 21 | .if !defined(IS_BUILTIN.gmp) | |
22 | IS_BUILTIN.gmp= no | 22 | IS_BUILTIN.gmp= no | |
23 | . if empty(H_GMP:M__nonexistent__) && empty(H_GMP:M${LOCALBASE}/*) | 23 | . if empty(H_GMP:M__nonexistent__) && empty(H_GMP:M${LOCALBASE}/*) | |
24 | IS_BUILTIN.gmp= yes | 24 | IS_BUILTIN.gmp= yes | |
25 | . endif | 25 | . endif | |
26 | .endif | 26 | .endif |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.55 2020/01/20 21:25:24 adam Exp $ | 1 | $NetBSD: distinfo,v 1.56 2020/11/16 13:12:41 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (gmp-6.2.0.tar.bz2) = 5e9341d3807bc7505376f9ed9f5c1c6c57050aa6 | 3 | SHA1 (gmp-6.2.1.tar.bz2) = 2dcf34d4a432dbe6cce1475a835d20fe44f75822 | |
4 | RMD160 (gmp-6.2.0.tar.bz2) = 9e0c387608c7dd3eb339afcd989ef5037d7cacbd | 4 | RMD160 (gmp-6.2.1.tar.bz2) = 2a4204453eb608bec6bb647ff5a0c47ca4d43878 | |
5 | SHA512 (gmp-6.2.0.tar.bz2) = ff22ed47fff176ed56301ecab0213316150a3abb370fed031635804f829c878296d7c65597b1f687f394479eef04fae6eba771162f7d363dc4c94c7334fc1fc0 | 5 | SHA512 (gmp-6.2.1.tar.bz2) = 8904334a3bcc5c896ececabc75cda9dec642e401fb5397c4992c4fabea5e962c9ce8bd44e8e4233c34e55c8010cc28db0545f5f750cbdbb5f00af538dc763be9 | |
6 | Size (gmp-6.2.0.tar.bz2) = 2453458 bytes | 6 | Size (gmp-6.2.1.tar.bz2) = 2493916 bytes | |
7 | SHA1 (patch-acinclude.m4) = 3f76c0aa8d29ec815a93448f9c4bc976ebdf7a2a | 7 | SHA1 (patch-acinclude.m4) = 3f76c0aa8d29ec815a93448f9c4bc976ebdf7a2a |
@@ -1,20 +1,22 @@ | @@ -1,20 +1,22 @@ | |||
1 | # $NetBSD: inplace.mk,v 1.7 2017/10/18 11:15:39 joerg Exp $ | 1 | # $NetBSD: inplace.mk,v 1.8 2020/11/16 13:12:41 wiz Exp $ | |
2 | # | 2 | # | |
3 | # Include this file to extract devel/gmp source into the WRKSRC of | 3 | # Include this file to extract devel/gmp source into the WRKSRC of | |
4 | # another package. This is to be used by GCC packages to avoid the | 4 | # another package. This is to be used by GCC packages to avoid the | |
5 | # numerous dependencies devel/gmp has. | 5 | # numerous dependencies devel/gmp has. | |
6 | 6 | |||
7 | post-fetch: fetch-inplace-gmp | 7 | post-fetch: fetch-inplace-gmp | |
8 | 8 | |||
9 | post-extract: extract-inplace-gmp | 9 | post-extract: extract-inplace-gmp | |
10 | 10 | |||
11 | .PHONY: fetch-inplace-gmp | |||
11 | fetch-inplace-gmp: | 12 | fetch-inplace-gmp: | |
12 | (cd ../../devel/gmp && ${MAKE} WRKDIR=${WRKSRC}/.devel.gmp EXTRACT_DIR=${WRKSRC} \ | 13 | (cd ../../devel/gmp && ${MAKE} WRKDIR=${WRKSRC}/.devel.gmp EXTRACT_DIR=${WRKSRC} \ | |
13 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME:C/a$$//}' SKIP_DEPENDS=YES checksum) | 14 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME:C/a$$//}' SKIP_DEPENDS=YES checksum) | |
14 | 15 | |||
16 | .PHONY: extract-inplace-gmp | |||
15 | extract-inplace-gmp: | 17 | extract-inplace-gmp: | |
16 | (cd ../../devel/gmp && ${MAKE} WRKDIR=${WRKSRC}/.devel.gmp EXTRACT_DIR=${WRKSRC} \ | 18 | (cd ../../devel/gmp && ${MAKE} WRKDIR=${WRKSRC}/.devel.gmp EXTRACT_DIR=${WRKSRC} \ | |
17 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME:C/a$$//}' SKIP_DEPENDS=YES patch) | 19 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME:C/a$$//}' SKIP_DEPENDS=YES patch) | |
18 | ${MV} ${WRKSRC}/gmp-* ${WRKSRC}/gmp | 20 | ${MV} ${WRKSRC}/gmp-* ${WRKSRC}/gmp | |
19 | 21 | |||
20 | USE_TOOLS+= bzcat tar | 22 | USE_TOOLS+= bzcat tar |