Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: math/libtommath: update to 1.3.0
To:
ports@openbsd.org
Date:
Mon, 29 Sep 2025 17:26:09 +0100

Download raw body.

Thread
On 2025/09/29 18:15, Kirill A. Korinsky wrote:
> ports@,
> 
> I had noticed that our math/libtommath is quite out dated.
> 
> 1.3.0 was released about 1,5 years ago. Diff quite trivial:
> https://github.com/libtom/libtommath/compare/v1.2.0...v1.3.0
> 
> I also switched to use makefile.unix which installs libtommath.pc.
> 
> lang/moarvm, lang/nqp, lang/rakudo and textproc/clit builds against it.
> 
> Ok?

looks pretty safe:

Mar 27th, 2024
v1.3.0
       -- Deprecate more APIs which are replaced in develop (PR #572)
       -- Add support for CMake (PR #573)
       -- Add support for GitHub Actions (PR #573)

Sep 04th, 2023
v1.2.1
       -- Bugfix release because of potential integer overflow
          c.f. PR #546 resp. CVE-2023-36328

if it hadn't been for the fix in 1.2.1 I'd hold off until unlock, but
with that, it probably does make sense.

ok sthen, please bump the ports which depend on it too because there's
only a static library.




> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/math/libtommath/Makefile,v
> diff -u -p -r1.11 Makefile
> --- Makefile	11 Mar 2022 19:36:18 -0000	1.11
> +++ Makefile	29 Sep 2025 15:26:38 -0000
> @@ -4,7 +4,7 @@ HOMEPAGE =		http://libtom.net/
>  
>  GH_ACCOUNT =		libtom
>  GH_PROJECT =		libtommath
> -GH_TAGNAME =		v1.2.0
> +GH_TAGNAME =		v1.3.0
>  
>  # WTFPL
>  PERMIT_PACKAGE =	Yes
> @@ -17,7 +17,7 @@ FAKE_FLAGS =		DESTDIR=${WRKINST}${PREFIX
>  			LIBPATH=/lib \
>  			INCPATH=/include
>  USE_GMAKE =		Yes
> -MAKE_FILE =		makefile
> +MAKE_FILE =		makefile.unix
>  
>  ALL_TARGET =		default
>  TEST_TARGET =		coverage
> Index: distinfo
> ===================================================================
> RCS file: /home/cvs/ports/math/libtommath/distinfo,v
> diff -u -p -r1.5 distinfo
> --- distinfo	11 Mar 2021 06:29:21 -0000	1.5
> +++ distinfo	29 Sep 2025 15:20:26 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (libtommath-1.2.0.tar.gz) = 88IKtd9gDY2J4FTQlsEWQXGXgn0Scy5nhSVmeqck4w8=
> -SIZE (libtommath-1.2.0.tar.gz) = 242318
> +SHA256 (libtommath-1.3.0.tar.gz) = bQmek/8A+psYNG9LzZfcxIw+kShvfhbErFUVpxccMUk=
> +SIZE (libtommath-1.3.0.tar.gz) = 251695
> Index: pkg/PLIST
> ===================================================================
> RCS file: /home/cvs/ports/math/libtommath/pkg/PLIST,v
> diff -u -p -r1.5 PLIST
> --- pkg/PLIST	11 Mar 2022 19:36:18 -0000	1.5
> +++ pkg/PLIST	29 Sep 2025 15:27:15 -0000
> @@ -1,2 +1,3 @@
>  include/tommath.h
>  @static-lib lib/libtommath.a
> +lib/pkgconfig/libtommath.pc
> 
> 
> -- 
> wbr, Kirill
>