From owner-svn-ports-all@freebsd.org Thu Aug 13 21:42:20 2020 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 3F1A03AD9C1; Thu, 13 Aug 2020 21:42:20 +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) 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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BSKmD0yYsz3cyj; Thu, 13 Aug 2020 21:42:20 +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 E1576239EE; Thu, 13 Aug 2020 21:42:19 +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 07DLgJ4g004955; Thu, 13 Aug 2020 21:42:19 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07DLgJGb004952; Thu, 13 Aug 2020 21:42:19 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202008132142.07DLgJGb004952@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Thu, 13 Aug 2020 21:42:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r544844 - head/misc/nn-insight/files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/misc/nn-insight/files X-SVN-Commit-Revision: 544844 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.33 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: Thu, 13 Aug 2020 21:42:20 -0000 Author: pkubaj Date: Thu Aug 13 21:42:19 2020 New Revision: 544844 URL: https://svnweb.freebsd.org/changeset/ports/544844 Log: misc/nn-insight: fix build with GCC and on head Add missing includes. This fixes build on stable/12 for powerpc64 (with GCC) and on head with powerpc64. Looking at https://www.freshports.org/misc/nn-insight/, it seems currently doesn't build even on head/amd64, so those includes should fix it. The original error that made me look into it was: /wrkdirs/usr/ports/misc/nn-insight/work/nn-insight-1.0.5/tensor.h:18:75: error: 'std::shared_ptr' has not been declared 18 | bool readTensorDataAsJson(const char *fileName, const TensorShape &shape, std::shared_ptr &tensorData); | ^~~ MFH: 2020Q3 (fix build blanket) Added: head/misc/nn-insight/files/ head/misc/nn-insight/files/patch-3rdparty_tensorflow_tflite-reference-implementation.cpp (contents, props changed) head/misc/nn-insight/files/patch-model-views_merge-dequantize-operators.h (contents, props changed) head/misc/nn-insight/files/patch-tensor.h (contents, props changed) Added: head/misc/nn-insight/files/patch-3rdparty_tensorflow_tflite-reference-implementation.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/nn-insight/files/patch-3rdparty_tensorflow_tflite-reference-implementation.cpp Thu Aug 13 21:42:19 2020 (r544844) @@ -0,0 +1,10 @@ +--- 3rdparty/tensorflow/tflite-reference-implementation.cpp.orig 2020-08-13 21:04:29 UTC ++++ 3rdparty/tensorflow/tflite-reference-implementation.cpp +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include + #include + #include + Added: head/misc/nn-insight/files/patch-model-views_merge-dequantize-operators.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/nn-insight/files/patch-model-views_merge-dequantize-operators.h Thu Aug 13 21:42:19 2020 (r544844) @@ -0,0 +1,10 @@ +--- model-views/merge-dequantize-operators.h.orig 2020-08-13 20:56:51 UTC ++++ model-views/merge-dequantize-operators.h +@@ -4,6 +4,7 @@ + + #include "../plugin-interface.h" + ++#include + #include + #include + Added: head/misc/nn-insight/files/patch-tensor.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/nn-insight/files/patch-tensor.h Thu Aug 13 21:42:19 2020 (r544844) @@ -0,0 +1,9 @@ +--- tensor.h.orig 2020-08-13 20:43:40 UTC ++++ tensor.h +@@ -1,5 +1,6 @@ + // Copyright (C) 2020 by Yuri Victorovich. All rights reserved. + ++#include + #include + + typedef std::vector TensorShape;