Skip to content

Commit

Permalink
math/libtommath: update to 1.2.1
Browse files Browse the repository at this point in the history
PR:             274350
Reported by:    dizzy

This is a bugfix release because of potential integer overflow.
See PR #546 and CVE-2023-36328.
  • Loading branch information
gahr committed Oct 9, 2023
1 parent ebf70db commit c97e9a5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 200 deletions.
10 changes: 7 additions & 3 deletions math/libtommath/Makefile
@@ -1,6 +1,5 @@
PORTNAME= libtommath
DISTVERSION= 1.2.0
PORTREVISION= 2
DISTVERSION= 1.2.1
CATEGORIES= math
MASTER_SITES= https://github.com/libtom/libtommath/releases/download/v${DISTVERSION}/
DISTNAME= ltm-${DISTVERSION}
Expand All @@ -12,12 +11,13 @@ WWW= https://libtom.net/
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE

USES= gmake libtool:build tar:xz
USES= gmake libtool:build pathfix tar:xz

WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
USE_LDCONFIG= yes

MAKEFILE= makefile.shared
MAKE_ENV+= IGNORE_SPEED=yes
ALL_TARGET= default
CFLAGS+= -fPIC
PORTDOCS= *
Expand All @@ -31,6 +31,10 @@ PLIST_FILES= include/tommath.h \

OPTIONS_DEFINE= DOCS

post-patch:
@${REINPLACE_CMD} -e 's|$$(LIBPATH)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/${MAKEFILE}

post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/bn.pdf ${STAGEDIR}${DOCSDIR}
Expand Down
6 changes: 3 additions & 3 deletions math/libtommath/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1571744626
SHA256 (ltm-1.2.0.tar.xz) = b7c75eecf680219484055fcedd686064409254ae44bc31a96c5032843c0e18b1
SIZE (ltm-1.2.0.tar.xz) = 622120
TIMESTAMP = 1696845190
SHA256 (ltm-1.2.1.tar.xz) = 986025d7b374276fee2e30e99f3649e4ac0db8a02257a37ee10eae72abed0d1f
SIZE (ltm-1.2.1.tar.xz) = 635728
137 changes: 0 additions & 137 deletions math/libtommath/files/patch-beba89

This file was deleted.

57 changes: 0 additions & 57 deletions math/libtommath/files/patch-c1cf80

This file was deleted.

0 comments on commit c97e9a5

Please sign in to comment.