Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2018 15:36:23 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r466167 - in head/cad/calculix: . files
Message-ID:  <201804011536.w31FaNpu002489@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sun Apr  1 15:36:23 2018
New Revision: 466167
URL: https://svnweb.freebsd.org/changeset/ports/466167

Log:
  Fix build with clang 6.x, pet portlint
  
  PR:		227148
  Submitted by:	pfg (maintainer)
  MFH:		2018Q2

Added:
  head/cad/calculix/files/patch-cgx__VER_src_uselibSNL.cpp   (contents, props changed)
Modified:
  head/cad/calculix/Makefile

Modified: head/cad/calculix/Makefile
==============================================================================
--- head/cad/calculix/Makefile	Sun Apr  1 15:14:45 2018	(r466166)
+++ head/cad/calculix/Makefile	Sun Apr  1 15:36:23 2018	(r466167)
@@ -15,9 +15,9 @@ COMMENT=	Three-Dimensional Structural Finite Element P
 
 LICENSE=	GPLv2
 
-RUN_DEPENDS=	ccx:cad/calculix-ccx
-
 BROKEN_FreeBSD_10=	Does not build with clang on FreeBSD 10, causes segfaults when built with gcc
+
+RUN_DEPENDS=	ccx:cad/calculix-ccx
 
 DIST_SOURCES=	cgx_${PORTVERSION}.all${EXTRACT_SUFX}
 DIST_HTM=	cgx_${PORTVERSION}.htm${EXTRACT_SUFX}

Added: head/cad/calculix/files/patch-cgx__VER_src_uselibSNL.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/calculix/files/patch-cgx__VER_src_uselibSNL.cpp	Sun Apr  1 15:36:23 2018	(r466167)
@@ -0,0 +1,20 @@
+--- cgx_2.13/src/uselibSNL.cpp.orig	2017-10-07 09:58:00 UTC
++++ cgx_2.13/src/uselibSNL.cpp
+@@ -934,7 +934,7 @@ int createBlendedNurbs(int nr, Points **
+   // (5)   create the cgx nurbs
+   // printf(" create blended nurbs\n"); 
+   buffer[0]='S';
+-  buffer[1]=(char)NULL;
++  buffer[1]='\0';
+   getNewName( name, buffer );
+   for (i=0; i<MAX_LINE_LENGTH; i++) sname[i]=name[i];
+   if(printFlag) printf ("store NURS Nr:%d Name:%s\n", anzGeo->nurs+1, name);
+@@ -1012,7 +1012,7 @@ int createBlendedNurbs(int nr, Points **
+     for (j=0; j<nurbs[nr].v_npnt; j++)
+     {
+       buffer[0]='p';
+-      buffer[1]=(char)NULL;
++      buffer[1]='\0';
+       getNewName( name, buffer );
+       nurbs[nr].ctlpnt[i][j]  = pnt( name, surface->controlPoints()[ index ].x(), surface->controlPoints()[ index ].y(), surface->controlPoints()[ index ].z(), 0);
+       point=*pntpntr;  /* update pointer */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804011536.w31FaNpu002489>