From nobody Tue Sep 06 16:28:01 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MMW5Y50F5z4c8Wf; Tue, 6 Sep 2022 16:28:01 +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 4MMW5Y3MPWz3LHW; Tue, 6 Sep 2022 16:28:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662481681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JFcOPV5pEoHR5hUn1gSZ8dkEkac0WMmJDpUiUPuv2cI=; b=RtVXaBrGiG4RUaTA6Nvb6zgHV8kbtQvy3/KxrjsMAcLepf/fUOmirQHrYxnUu7e3E6vrq9 0o7dSUknphSYzk3bM0+pNyMCsbf6D7LgOlqbM+5x2YYBdXveyaMTqlrKb/XQ7vlahXTLkz dPc7z8v6LJb+3LleD4gDCleKvcZCp724JbTCRKZFNaQpfBsAWEhweGCq1s0vsyuO3YW2G7 IyxYBVyLcutw87XZRYd6QON4dKplu7eLAqw0cTzgV+slgnArL9RpPGQ0ahyak7sr5m2dsQ kkhNKX9VLdPEXLEWCUzTYQELv9RAu2GJLEWoPqX8ZSz/U3B6r0B8g0oxAQde+g== 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 4MMW5Y2PP1zDcq; Tue, 6 Sep 2022 16:28:01 +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 286GS1To010333; Tue, 6 Sep 2022 16:28:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 286GS1I6010332; Tue, 6 Sep 2022 16:28:01 GMT (envelope-from git) Date: Tue, 6 Sep 2022 16:28:01 GMT Message-Id: <202209061628.286GS1I6010332@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: b67c501a4aef - main - misc/nn-insight: Fix build for new flatbuffers version and on aarch64 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b67c501a4aef0f3ee3685028b1c6772fbdb80150 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662481681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JFcOPV5pEoHR5hUn1gSZ8dkEkac0WMmJDpUiUPuv2cI=; b=OoPoRBZworLuQ/u2mSDyhuW5Vm5fLZoZ4P2jrouoRIegLmadEjJYxnirO0SU/A5PTLWMP/ alHfUZxJL8FoL0VZtCFZIJMhtJZavNLlPVz1YO4kYFmUy5q2zHqTu6Vx1fRBuGCsXrTzvU 07pRgJGUzQTiClw3iXA+m6gXmFLA+VKF99X19wjsMEalAc1VRV9I1opaUwQvHbbW0MwDcz 4gAYUOdbxPBBK1CV527J7D9BhncZNkk+Zm8vxB4/SOgRNrHymL5zz8iZk7pPeX6+gGu0oG AEeYtmjAnQXn9hgL791qE2y/36hR6/84VX1xMVl6dWvR5nI087wITEZmzpJXWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662481681; a=rsa-sha256; cv=none; b=PshiOaTI0WBxhs7w7B6AIFXWZZh/RplHnAfGauZF7Pp5j58ZJzs2kBGyhDr1EO46WF3+k1 y6df2XMwRySBJSXwzjNDwrHvL8WrmTImz2MOb8RsAKE8FzUAT8+HZkZIRHIM5IuXDDvc6A xey8x2bIikDfv3FyyIlMIkbDQQkMoILuXQDgbXmW+rU3D3SQ3HTbyo9C09PB/NT3JR+q9+ ZJrKwb2t/P/rxTqDo84FlL087WRrf3SYL+A1ZIoyX4z+Lu1NXf6/2ZkRIAKVVc7rU3SlOX q0vFIhK+UcCP164PIn2jwQI7fXwMiVSeWiuKyVKf8AVp+alSbBPVv/R2BAuCOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=b67c501a4aef0f3ee3685028b1c6772fbdb80150 commit b67c501a4aef0f3ee3685028b1c6772fbdb80150 Author: Yuri Victorovich AuthorDate: 2022-09-06 16:26:25 +0000 Commit: Yuri Victorovich CommitDate: 2022-09-06 16:26:25 +0000 misc/nn-insight: Fix build for new flatbuffers version and on aarch64 Reported by: fallout --- misc/nn-insight/Makefile | 7 +++++-- misc/nn-insight/files/patch-CMakeLists.txt | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/misc/nn-insight/Makefile b/misc/nn-insight/Makefile index 6203e7a50326..a5ba3f8a1956 100644 --- a/misc/nn-insight/Makefile +++ b/misc/nn-insight/Makefile @@ -1,5 +1,6 @@ PORTNAME= nn-insight DISTVERSION= 1.0.7 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org @@ -25,11 +26,13 @@ USE_QT= core gui svg widgets buildtools_build qmake_build USE_GITHUB= yes GH_ACCOUNT= yurivict -CMAKE_ARGS_aarch64= -DENABLE_NATIVE_OPTIMIZATIONS=OFF - PLIST_FILES= bin/nn-insight \ libexec/nn-insight/tf-lite-plugin.so PORTSCOUT= limit:^.*[1-9]\. # prevent hashes +OPTIONS_DEFINE= NATIVE +NATIVE_DESC= Build with native optimizations (-march=native) +NATIVE_CMAKE_BOOL= ENABLE_NATIVE_OPTIMIZATIONS + .include diff --git a/misc/nn-insight/files/patch-CMakeLists.txt b/misc/nn-insight/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..7efb2696accb --- /dev/null +++ b/misc/nn-insight/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-09-06 16:20:58 UTC ++++ CMakeLists.txt +@@ -63,7 +63,7 @@ find_path(HALF_PRECISION half.hpp) + if (NOT HALF_PRECISION) + message(FATAL_ERROR "Failed to find the half-precision floating point library (half.hpp)") + endif() +-find_package(Flatbuffers REQUIRED) ++find_package(FlatBuffers REQUIRED) + pkg_check_modules(libcgraph libgvc REQUIRED IMPORTED_TARGET libcgraph) + if (USE_PERFTOOLS) + pkg_check_modules(libtcmalloc REQUIRED IMPORTED_TARGET libtcmalloc)