From owner-dev-commits-ports-all@freebsd.org Sun Jul 4 16:28:23 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0E7856672F2; Sun, 4 Jul 2021 16:28:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GHvPy6y8lz3NZ5; Sun, 4 Jul 2021 16:28:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D6CB615E8B; Sun, 4 Jul 2021 16:28:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 164GSMCm083998; Sun, 4 Jul 2021 16:28:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 164GSMQ8083997; Sun, 4 Jul 2021 16:28:22 GMT (envelope-from git) Date: Sun, 4 Jul 2021 16:28:22 GMT Message-Id: <202107041628.164GSMQ8083997@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Lo=C3=AFc Bartoletti?= Subject: git: 562f7a0402ea - main - databases/grass7: unbreak after gdal 3.3 update MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lbartoletti X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 562f7a0402ea5aa193f618ed6da3775a631f249a Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2021 16:28:23 -0000 The branch main has been updated by lbartoletti: URL: https://cgit.FreeBSD.org/ports/commit/?id=562f7a0402ea5aa193f618ed6da3775a631f249a commit 562f7a0402ea5aa193f618ed6da3775a631f249a Author: Loïc Bartoletti AuthorDate: 2021-07-04 16:08:38 +0000 Commit: Loïc Bartoletti CommitDate: 2021-07-04 16:11:31 +0000 databases/grass7: unbreak after gdal 3.3 update GDAL 3.3.0 introduces the use of standard C bool type. Redefining bool locally, as in vector/v.hull/chull.c causes failure. Obtained from: https://github.com/OSGeo/grass/pull/1567 --- databases/grass7/files/patch-include_gis.h | 24 ++++++++ databases/grass7/files/patch-lib_lidar_lidar.h | 12 ++++ .../grass7/files/patch-raster3d_r3.showdspf_Ball.c | 11 ++++ .../files/patch-raster3d_r3.showdspf_togif.c | 12 ++++ .../files/patch-raster_r.param.scale_param.h | 12 ++++ .../grass7/files/patch-raster_r.surf.idw_main.h | 11 ++++ databases/grass7/files/patch-vector_v.hull_chull.c | 72 ++++++++++++++++++++++ 7 files changed, 154 insertions(+) diff --git a/databases/grass7/files/patch-include_gis.h b/databases/grass7/files/patch-include_gis.h new file mode 100644 index 000000000000..636a03516418 --- /dev/null +++ b/databases/grass7/files/patch-include_gis.h @@ -0,0 +1,24 @@ +--- include/gis.h.orig 2021-07-04 15:25:28 UTC ++++ include/gis.h +@@ -23,6 +23,7 @@ + /* System include files */ + #include + #include ++#include + + /* Grass and local include files */ + #include +@@ -53,11 +54,11 @@ static const char *GRASS_copyright __attribute__ ((unu + + /* Define TRUE and FALSE for boolean comparisons */ + #ifndef TRUE +-#define TRUE 1 ++#define TRUE true + #endif + + #ifndef FALSE +-#define FALSE 0 ++#define FALSE false + #endif + + #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 diff --git a/databases/grass7/files/patch-lib_lidar_lidar.h b/databases/grass7/files/patch-lib_lidar_lidar.h new file mode 100644 index 000000000000..c7273df39c5c --- /dev/null +++ b/databases/grass7/files/patch-lib_lidar_lidar.h @@ -0,0 +1,12 @@ +--- lib/lidar/lidar.h.orig 2021-07-04 15:30:31 UTC ++++ lib/lidar/lidar.h +@@ -62,9 +62,6 @@ + /* INTERPOLATOR */ + #define P_BILINEAR 1 + #define P_BICUBIC 0 +- /* Boolean definitions */ +-#define TRUE 1 +-#define FALSE 0 + + /*----------------------------------------------------------------------------------------------------------*/ + /*STRUCTS DECLARATION */ diff --git a/databases/grass7/files/patch-raster3d_r3.showdspf_Ball.c b/databases/grass7/files/patch-raster3d_r3.showdspf_Ball.c new file mode 100644 index 000000000000..222cb30d38b3 --- /dev/null +++ b/databases/grass7/files/patch-raster3d_r3.showdspf_Ball.c @@ -0,0 +1,11 @@ +--- raster3d/r3.showdspf/Ball.c.orig 2021-07-04 15:32:42 UTC ++++ raster3d/r3.showdspf/Ball.c +@@ -7,8 +7,6 @@ + #include "Ball.h" + #include "BallMath.h" + #include +-#define TRUE 1 +-#define FALSE 0 + + HMatrix mId = { {1, 0, 0, 0} + , {0, 1, 0, 0} diff --git a/databases/grass7/files/patch-raster3d_r3.showdspf_togif.c b/databases/grass7/files/patch-raster3d_r3.showdspf_togif.c new file mode 100644 index 000000000000..fd625bb0d9b4 --- /dev/null +++ b/databases/grass7/files/patch-raster3d_r3.showdspf_togif.c @@ -0,0 +1,12 @@ +--- raster3d/r3.showdspf/togif.c.orig 2021-07-04 15:33:18 UTC ++++ raster3d/r3.showdspf/togif.c +@@ -324,9 +324,6 @@ static int ditherrow(unsigned short *r, unsigned short + * + *****************************************************************************/ + +-#define TRUE 1 +-#define FALSE 0 +- + + /************************** BumpPixel() ********************************/ + /* diff --git a/databases/grass7/files/patch-raster_r.param.scale_param.h b/databases/grass7/files/patch-raster_r.param.scale_param.h new file mode 100644 index 000000000000..b05811d6eb20 --- /dev/null +++ b/databases/grass7/files/patch-raster_r.param.scale_param.h @@ -0,0 +1,12 @@ +--- raster/r.param.scale/param.h.orig 2021-07-04 15:31:09 UTC ++++ raster/r.param.scale/param.h +@@ -18,9 +18,6 @@ + /* 'blank' edge around raster. */ + #define MAX_WSIZE 499 /* Maximum dimensions of window. */ + /* Some useful labels. */ +-#define TRUE 1 +-#define FALSE 0 +- + #define RAD2DEG M_R2D + #define DEG2RAD M_D2R + diff --git a/databases/grass7/files/patch-raster_r.surf.idw_main.h b/databases/grass7/files/patch-raster_r.surf.idw_main.h new file mode 100644 index 000000000000..0b3e29895afd --- /dev/null +++ b/databases/grass7/files/patch-raster_r.surf.idw_main.h @@ -0,0 +1,11 @@ +--- raster/r.surf.idw/main.h.orig 2021-07-04 15:31:52 UTC ++++ raster/r.surf.idw/main.h +@@ -1,8 +1,6 @@ + #include + + #define SHORT short +-#define TRUE 1 +-#define FALSE 0 + + #define MELEMENT struct Melement + MELEMENT { diff --git a/databases/grass7/files/patch-vector_v.hull_chull.c b/databases/grass7/files/patch-vector_v.hull_chull.c new file mode 100644 index 000000000000..a89e4f3228f8 --- /dev/null +++ b/databases/grass7/files/patch-vector_v.hull_chull.c @@ -0,0 +1,72 @@ +--- vector/v.hull/chull.c.orig 2021-07-04 15:27:24 UTC ++++ vector/v.hull/chull.c +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + + #include + #include +@@ -29,10 +30,6 @@ + + #include "globals.h" + +-/*Define Boolean type */ +-typedef enum +-{ BFALSE, BTRUE } bool; +- + /* Define vertex indices. */ + #define X 0 + #define Y 1 +@@ -76,10 +73,10 @@ struct tFaceStructure + }; + + /* Define flags */ +-#define ONHULL BTRUE +-#define REMOVED BTRUE +-#define VISIBLE BTRUE +-#define PROCESSED BTRUE ++#define ONHULL true ++#define REMOVED true ++#define VISIBLE true ++#define PROCESSED true + + /* Global variable definitions */ + tVertex vertices = NULL; +@@ -436,7 +433,7 @@ bool AddOne(tVertex p) + tFace f; + tEdge e, temp; + long int vol; +- bool vis = BFALSE; ++ bool vis = false; + + + /* Mark faces visible from p. */ +@@ -446,7 +443,7 @@ bool AddOne(tVertex p) + + if (vol < 0) { + f->visible = VISIBLE; +- vis = BTRUE; ++ vis = true; + } + f = f->next; + } while (f != faces); +@@ -454,7 +451,7 @@ bool AddOne(tVertex p) + /* If no faces are visible from p, then p is inside the hull. */ + if (!vis) { + p->onhull = !ONHULL; +- return BFALSE; ++ return false; + } + + /* Mark edges in interior of visible region for deletion. +@@ -470,7 +467,7 @@ bool AddOne(tVertex p) + e->newface = MakeConeFace(e, p); + e = temp; + } while (e != edges); +- return BTRUE; ++ return true; + } + + /*---------------------------------------------------------------------