Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 2019 19:56:26 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518530 - head/cad/openvsp/files
Message-ID:  <201911271956.xARJuQ8o089944@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Nov 27 19:56:26 2019
New Revision: 518530
URL: https://svnweb.freebsd.org/changeset/ports/518530

Log:
  cad/openvsp: fix build on non-x86
  
  Don't use amd64 code on all 64-bit architectures.
  Include sys/param.h because of:
  /usr/local/poudriere/ports/default/cad/openvsp/work/OpenVSP-OpenVSP_3.19.0/src/util/FileUtil.cpp:118:18: error: 'PATH_MAX' was not declared in this scope
    118 |     char exepath[PATH_MAX];
        |                  ^~~~~~~~
  
  PR:		242235
  Approved by:	fernape (maintainer), tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D22576

Added:
  head/cad/openvsp/files/patch-src_external_angelscript_sdk_angelscript_source_as__config.h   (contents, props changed)
  head/cad/openvsp/files/patch-src_util_FileUtil.cpp   (contents, props changed)

Added: head/cad/openvsp/files/patch-src_external_angelscript_sdk_angelscript_source_as__config.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_external_angelscript_sdk_angelscript_source_as__config.h	Wed Nov 27 19:56:26 2019	(r518530)
@@ -0,0 +1,11 @@
+--- src/external/angelscript/sdk/angelscript/source/as_config.h.orig	2019-11-25 15:18:37 UTC
++++ src/external/angelscript/sdk/angelscript/source/as_config.h
+@@ -953,7 +953,7 @@
+ 			#define COMPLEX_RETURN_MASK (asOBJ_APP_CLASS_DESTRUCTOR | asOBJ_APP_CLASS_COPY_CONSTRUCTOR | asOBJ_APP_ARRAY)
+ 			#define THISCALL_PASS_OBJECT_POINTER_ON_THE_STACK
+ 			#define AS_X86
+-		#elif defined(__LP64__)
++		#elif defined(__amd64__)
+ 			#define AS_X64_GCC
+ 			#define HAS_128_BIT_PRIMITIVES
+ 			#define SPLIT_OBJS_BY_MEMBER_TYPES

Added: head/cad/openvsp/files/patch-src_util_FileUtil.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_util_FileUtil.cpp	Wed Nov 27 19:56:26 2019	(r518530)
@@ -0,0 +1,10 @@
+--- src/util/FileUtil.cpp.orig	2019-11-25 15:26:25 UTC
++++ src/util/FileUtil.cpp
+@@ -21,6 +21,7 @@
+ 
+ #ifdef __FreeBSD__
+ #include <libgen.h>
++#include <sys/param.h>
+ #endif
+ 
+ vector< string > ScanFolder( const char* dir_path )



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