From owner-svn-ports-all@freebsd.org Wed Nov 27 19:56:27 2019 Return-Path: Delivered-To: svn-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 4C2A31B68C7; Wed, 27 Nov 2019 19:56:27 +0000 (UTC) (envelope-from pkubaj@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NWk31HQNz4VGp; Wed, 27 Nov 2019 19:56:27 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0F7071A841; Wed, 27 Nov 2019 19:56:27 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xARJuQm1089945; Wed, 27 Nov 2019 19:56:26 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xARJuQ8o089944; Wed, 27 Nov 2019 19:56:26 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201911271956.xARJuQ8o089944@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Wed, 27 Nov 2019 19:56:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r518530 - head/cad/openvsp/files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/cad/openvsp/files X-SVN-Commit-Revision: 518530 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2019 19:56:27 -0000 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 ++#include + #endif + + vector< string > ScanFolder( const char* dir_path )