Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167888544
D22027.id63263.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22027.id63263.diff
View Options
Index: net-p2p/monero-cli/Makefile
===================================================================
--- net-p2p/monero-cli/Makefile
+++ net-p2p/monero-cli/Makefile
@@ -16,11 +16,7 @@
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 \
Index: net-p2p/monero-cli/files/patch-src_cryptonote__basic_miner.cpp
===================================================================
--- /dev/null
+++ net-p2p/monero-cli/files/patch-src_cryptonote__basic_miner.cpp
@@ -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 <devstat.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#if defined(__amd64__ ) || defined(__i386__) || defined(__x86_64__)
+ #include <machine/apm_bios.h>
++#endif
+ #include <stdio.h>
+ #include <sys/resource.h>
+ #include <sys/sysctl.h>
+@@ -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) )
+ {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 26, 6:43 AM (3 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37273307
Default Alt Text
D22027.id63263.diff (1 KB)
Attached To
Mode
D22027: net-p2p/monero-cli: Fix build on non-x86
Attached
Detach File
Event Timeline
Log In to Comment