diff --git a/math/libtommath/Makefile b/math/libtommath/Makefile index 1214037c6c5..d0383935a30 100644 --- a/math/libtommath/Makefile +++ b/math/libtommath/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2019/07/12 20:47:42 sthen Exp $ +# $OpenBSD: Makefile,v 1.10 2021/03/11 06:29:21 gkoehler Exp $ COMMENT = number theoretic multiple-precision integer library CATEGORIES = math @@ -6,8 +6,7 @@ HOMEPAGE = http://libtom.net/ GH_ACCOUNT = libtom GH_PROJECT = libtommath -GH_TAGNAME = v1.0.1 -REVISION = 0 +GH_TAGNAME = v1.2.0 # WTFPL PERMIT_PACKAGE = Yes diff --git a/math/libtommath/distinfo b/math/libtommath/distinfo index 19d7317746d..e8b3aaabee1 100644 --- a/math/libtommath/distinfo +++ b/math/libtommath/distinfo @@ -1,2 +1,2 @@ -SHA256 (libtommath-1.0.1.tar.gz) = 2ytua1EqrFzJvn5P/dFdlxw/A9P6NfkWB7/hp/p1p6c= -SIZE (libtommath-1.0.1.tar.gz) = 653112 +SHA256 (libtommath-1.2.0.tar.gz) = 88IKtd9gDY2J4FTQlsEWQXGXgn0Scy5nhSVmeqck4w8= +SIZE (libtommath-1.2.0.tar.gz) = 242318 diff --git a/math/libtommath/patches/patch-bn_mp_set_double_c b/math/libtommath/patches/patch-bn_mp_set_double_c new file mode 100644 index 00000000000..6b53122b6fc --- /dev/null +++ b/math/libtommath/patches/patch-bn_mp_set_double_c @@ -0,0 +1,16 @@ +$OpenBSD: patch-bn_mp_set_double_c,v 1.1 2021/03/11 06:29:21 gkoehler Exp $ + +We have IEEE754 floating-point. + +Index: bn_mp_set_double.c +--- bn_mp_set_double.c.orig ++++ bn_mp_set_double.c +@@ -3,7 +3,7 @@ + /* LibTomMath, multiple-precision integer library -- Tom St Denis */ + /* SPDX-License-Identifier: Unlicense */ + +-#if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559) ++#if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559) || 1 + mp_err mp_set_double(mp_int *a, double b) + { + uint64_t frac; diff --git a/math/libtommath/patches/patch-makefile_include_mk b/math/libtommath/patches/patch-makefile_include_mk deleted file mode 100644 index 8345f8bb8eb..00000000000 --- a/math/libtommath/patches/patch-makefile_include_mk +++ /dev/null @@ -1,18 +0,0 @@ -$OpenBSD: patch-makefile_include_mk,v 1.1 2017/11/25 21:42:51 afresh1 Exp $ - -Index: makefile_include.mk ---- makefile_include.mk.orig -+++ makefile_include.mk -@@ -87,12 +87,6 @@ LIBPATH ?= $(PREFIX)/lib - INCPATH ?= $(PREFIX)/include - DATAPATH ?= $(PREFIX)/share/doc/libtommath/pdf - --#make the code coverage of the library --# --coverage: CFLAGS += -fprofile-arcs -ftest-coverage -DTIMING_NO_LOGS --coverage: LFLAGS += -lgcov --coverage: LDFLAGS += -lgcov -- - coverage: $(COVERAGE) - $(COVERAGE_APP) - diff --git a/math/libtommath/pkg/PLIST b/math/libtommath/pkg/PLIST index 2820f051a8e..da228bf8948 100644 --- a/math/libtommath/pkg/PLIST +++ b/math/libtommath/pkg/PLIST @@ -1,5 +1,3 @@ -@comment $OpenBSD: PLIST,v 1.3 2016/03/04 10:38:49 czarkoff Exp $ +@comment $OpenBSD: PLIST,v 1.4 2021/03/11 06:29:21 gkoehler Exp $ include/tommath.h -include/tommath_class.h -include/tommath_superclass.h -lib/libtommath.a +@static-lib lib/libtommath.a