Here is an update to magic 8.3.365. Some bug fixes and fixes for building with Clang 15.
Index: Makefile =================================================================== RCS file: /cvs/ports/cad/magic/Makefile,v retrieving revision 1.10 diff -u -p -u -p -r1.10 Makefile --- Makefile 24 Jan 2023 17:44:18 -0000 1.10 +++ Makefile 3 Feb 2023 21:31:48 -0000 @@ -1,6 +1,6 @@ COMMENT = interactive system for VLSI circuit layouts -DISTNAME = magic-8.3.340 -REVISION = 0 + +DISTNAME = magic-8.3.365 EXTRACT_SUFX = .tgz CATEGORIES = cad Index: distinfo =================================================================== RCS file: /cvs/ports/cad/magic/distinfo,v retrieving revision 1.5 diff -u -p -u -p -r1.5 distinfo --- distinfo 6 Dec 2022 19:39:23 -0000 1.5 +++ distinfo 3 Feb 2023 21:31:48 -0000 @@ -1,2 +1,2 @@ -SHA256 (magic-8.3.340.tgz) = gugQg3RilNFal7z9b07CSQ4ziZt+w0z+GTEXtpW3Rtg= -SIZE (magic-8.3.340.tgz) = 4190828 +SHA256 (magic-8.3.365.tgz) = lbPWZtRV8S11kC45MPT8WFl/7sLkf+5M4Fu6DgqCL6o= +SIZE (magic-8.3.365.tgz) = 4206213 Index: patches/patch-database_DBpaint_c =================================================================== RCS file: patches/patch-database_DBpaint_c diff -N patches/patch-database_DBpaint_c --- patches/patch-database_DBpaint_c 24 Jan 2023 17:44:18 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,14 +0,0 @@ -Fix with clang 15: use a cast to allow invalid pointer to integer conversion. - -Index: database/DBpaint.c ---- database/DBpaint.c.orig -+++ database/DBpaint.c -@@ -1539,7 +1539,7 @@ DBNMPaintPlane0(plane, exacttype, area, resultTbl, und - } - - oldType = TiGetTypeExact(tile); -- newType = DBDiagonalProc(oldType, &dinfo); -+ newType = DBDiagonalProc(oldType, (uintptr_t)&dinfo); - - /* Ignore tiles that don't change type. */ - Index: patches/patch-drc_DRCtech_c =================================================================== RCS file: patches/patch-drc_DRCtech_c diff -N patches/patch-drc_DRCtech_c --- patches/patch-drc_DRCtech_c 24 Jan 2023 17:44:18 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,15 +0,0 @@ -Fix with clang 15: fix invalid pointer to integer conversion. - -Index: drc/DRCtech.c ---- drc/DRCtech.c.orig -+++ drc/DRCtech.c -@@ -1968,7 +1968,8 @@ drcMaskSpacing(set1, set2, pmask1, pmask2, wwidth, dis - TileTypeBitMask *set1, *set2; - PlaneMask pmask1, pmask2; - int wwidth, distance; -- char *adjacency, *why; -+ char *adjacency; -+ int why; - bool widerule; - int runlength; - bool multiplane;
