math/libdivide: fix build with clang 19
Clang 19 has become more strict about errors in member functions, which
results in errors building math/libdivide:
/wrkdirs/usr/ports/math/libdivide/work/libdivide-5.0/libdivide.h:3020:41: error: no member named 'denom' in 'divider<T, ALGO>'
3020 | return div.denom.magic == other.denom.magic && div.denom.more == other.denom.more;
| ~~~~~ ^
/wrkdirs/usr/ports/math/libdivide/work/libdivide-5.0/libdivide.h:3020:80: error: no member named 'denom' in 'divider<T, ALGO>'
3020 | return div.denom.magic == other.denom.magic && div.denom.more == other.denom.more;
| ~~~~~ ^
The member function `operator==()` should refer to `other.div.denom`
instead. Upstream fixed this in
https://github.com/ridiculousfish/libdivide/commit/fa020f3, so import it
as a patch.
PR: 282827
Approved by: thierry (maintainer)
MFH: 2024Q4
This commit is contained in:
parent
4022aba0b6
commit
822b0e7aeb
@ -3,6 +3,9 @@ DISTVERSION= 5.0
|
|||||||
PORTREVISION= 1
|
PORTREVISION= 1
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
|
|
||||||
|
PATCH_SITES= https://github.com/ridiculousfish/${PORTNAME}/commit/
|
||||||
|
PATCHFILES+= fa020f3b3e7ab3e80a2b23ab70bad0f46dbab795.patch:-p1 # https://github.com/ridiculousfish/libdivide/pull/113
|
||||||
|
|
||||||
MAINTAINER= thierry@FreeBSD.org
|
MAINTAINER= thierry@FreeBSD.org
|
||||||
COMMENT= Fast prime counting function implementations
|
COMMENT= Fast prime counting function implementations
|
||||||
WWW= https://libdivide.com/
|
WWW= https://libdivide.com/
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
TIMESTAMP = 1638115355
|
TIMESTAMP = 1731919803
|
||||||
SHA256 (ridiculousfish-libdivide-5.0_GH0.tar.gz) = 01ffdf90bc475e42170741d381eb9cfb631d9d7ddac7337368bcd80df8c98356
|
SHA256 (ridiculousfish-libdivide-5.0_GH0.tar.gz) = 01ffdf90bc475e42170741d381eb9cfb631d9d7ddac7337368bcd80df8c98356
|
||||||
SIZE (ridiculousfish-libdivide-5.0_GH0.tar.gz) = 680611
|
SIZE (ridiculousfish-libdivide-5.0_GH0.tar.gz) = 680611
|
||||||
|
SHA256 (fa020f3b3e7ab3e80a2b23ab70bad0f46dbab795.patch) = 47ed962063ff09c4030a95297803e99b5899795bcaba7630fa3c5e0f80f583dd
|
||||||
|
SIZE (fa020f3b3e7ab3e80a2b23ab70bad0f46dbab795.patch) = 829
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user