graphics/dcmtk: fix build with clang 19

Clang 19 now diagnoses incorrect member accesses, which causes
graphics/dcmtk to fail with a errors similar to:

    /wrkdirs/usr/ports/graphics/dcmtk/work/dcmtk-DCMTK-3.6.8/ofstd/include/dcmtk/ofstd/ofutil.h:79:18: error: no member named 'pt' in 'OFrvalue_storage<T, >'
       79 |         : t( rhs.pt ) {}
          |              ~~~ ^

Upstream dcmtk fixed this by changing the affected copy constructor in
https://github.com/DCMTK/dcmtk/commit/c29bebcd1, so pull this in as a
patch and apply it.

PR:		280865
Approved by:	yuri (maintainer)
MFH:		2024Q3
This commit is contained in:
Dimitry Andric 2024-08-16 17:17:33 +02:00
parent 438b693be1
commit e7c6b0ec72
2 changed files with 6 additions and 1 deletions

View file

@ -3,6 +3,9 @@ DISTVERSIONPREFIX= ${PORTNAME:tu}-
DISTVERSION= 3.6.8
CATEGORIES= graphics devel
PATCH_SITES= https://github.com/DCMTK/${PORTNAME}/commit/
PATCHFILES+= c29bebcd19bb963d72dcd00ca8745f60f6b9a39e.patch:-p1 # fix compilation with clang 19, gcc 15
MAINTAINER= yuri@FreeBSD.org
COMMENT= DICOM ToolKit, libraries and applications for DICOM/MEDICOM standard
WWW= https://dcmtk.org

View file

@ -1,3 +1,5 @@
TIMESTAMP = 1714942515
TIMESTAMP = 1723820540
SHA256 (DCMTK-dcmtk-DCMTK-3.6.8_GH0.tar.gz) = fca429a215739702fe8d96178964036246a35e2ea8adb12da33851e2be8e9a07
SIZE (DCMTK-dcmtk-DCMTK-3.6.8_GH0.tar.gz) = 9670224
SHA256 (c29bebcd19bb963d72dcd00ca8745f60f6b9a39e.patch) = fc876f47d44b582f0ac56a1390fd7bf1eb8767444f591fb80a367dd6f84ec015
SIZE (c29bebcd19bb963d72dcd00ca8745f60f6b9a39e.patch) = 1413