From owner-svn-ports-head@freebsd.org Wed Oct 16 15:29:21 2019 Return-Path: Delivered-To: svn-ports-head@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 115F4167BF2; Wed, 16 Oct 2019 15:29:21 +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 46tbnD6lJDz3PdB; Wed, 16 Oct 2019 15:29: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 C70879034; Wed, 16 Oct 2019 15:29:20 +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 x9GFTKF5099744; Wed, 16 Oct 2019 15:29:20 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x9GFTKIs099743; Wed, 16 Oct 2019 15:29:20 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201910161529.x9GFTKIs099743@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Wed, 16 Oct 2019 15:29:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514600 - in head/net-p2p/monero-cli: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/net-p2p/monero-cli: . files X-SVN-Commit-Revision: 514600 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2019 15:29:21 -0000 Author: pkubaj Date: Wed Oct 16 15:29:20 2019 New Revision: 514600 URL: https://svnweb.freebsd.org/changeset/ports/514600 Log: net-p2p/monero-cli: fix build on non-x86 Checking battery status uses x86-only headers and functions. Remove this functionality to get it to build on other architectures. PR: 241230 Approved by: linimon (mentor), vd (maintainer) Pull Request: https://github.com/monero-project/monero/pull/5984 Differential Revision: https://reviews.freebsd.org/D22027 Added: head/net-p2p/monero-cli/files/patch-src_cryptonote__basic_miner.cpp (contents, props changed) Modified: head/net-p2p/monero-cli/Makefile Modified: head/net-p2p/monero-cli/Makefile ============================================================================== --- head/net-p2p/monero-cli/Makefile Wed Oct 16 15:26:12 2019 (r514599) +++ head/net-p2p/monero-cli/Makefile Wed Oct 16 15:29:20 2019 (r514600) @@ -16,11 +16,7 @@ COMMENT= Private, secure, untraceable, decentralised d LICENSE= BSD3CLAUSE -BROKEN_aarch64= fails to compile: the clang compiler does not support -march=native -BROKEN_armv6= fails to compile: the clang compiler does not support -march=native -BROKEN_armv7= fails to compile: the clang compiler does not support -march=native BROKEN_i386= fails to compile: register r15d is only available in 64-bit mode -BROKEN_powerpc64= fails to compile: the clang compiler does not support -march=native LIB_DEPENDS= \ libboost_chrono.so:devel/boost-libs \ Added: head/net-p2p/monero-cli/files/patch-src_cryptonote__basic_miner.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/monero-cli/files/patch-src_cryptonote__basic_miner.cpp Wed Oct 16 15:29:20 2019 (r514600) @@ -0,0 +1,28 @@ +--- src/cryptonote_basic/miner.cpp.orig 2019-10-13 11:25:19 UTC ++++ src/cryptonote_basic/miner.cpp +@@ -61,7 +61,9 @@ + #include + #include + #include ++#if defined(__amd64__ ) || defined(__i386__) || defined(__x86_64__) + #include ++#endif + #include + #include + #include +@@ -1082,6 +1084,7 @@ namespace cryptonote + return boost::logic::tribool(boost::logic::indeterminate); + } + ++#if defined(__amd64__ ) || defined(__i386__) || defined(__x86_64__) + apm_info info; + if( ioctl(fd, APMIO_GETINFO, &info) == -1 ) { + close(fd); +@@ -1116,6 +1119,7 @@ namespace cryptonote + << "unexpected ac-line status (" << info.ai_acline << ") and " + << "battery status (" << info.ai_batt_stat << ")."); + return boost::logic::tribool(boost::logic::indeterminate); ++#endif + } + if( n != sizeof(ac) ) + {