FreeBSD Bugzilla – Attachment 208283 Details for
Bug 241230
net-p2p/monero-cli: Fix build on non-x86
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
monero-cli.patch (text/plain), 2.19 KB, created by
Piotr Kubaj
on 2019-10-13 16:45:17 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-10-13 16:45:17 UTC
Size:
2.19 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 514260) >+++ Makefile (working copy) >@@ -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: files/patch-src_cryptonote__basic_miner.cpp >=================================================================== >--- files/patch-src_cryptonote__basic_miner.cpp (nonexistent) >+++ files/patch-src_cryptonote__basic_miner.cpp (working copy) >@@ -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__) >+ #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__) >+ 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) ) >+ { > >Property changes on: files/patch-src_cryptonote__basic_miner.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
koobs
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 241230
: 208283