[Bug 274595] net-p2p/monero-cli: new build option added
Date: Thu, 19 Oct 2023 15:45:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274595 Bug ID: 274595 Summary: net-p2p/monero-cli: new build option added Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: tonidasbabes88@gmail.com CC: fuz@FreeBSD.org Created attachment 245744 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245744&action=edit Git patch By default this port builds with the -march=native compiler flag. This is defined upstream. This setting makes sense for those who intend to use the software to mine but has virtually no benefit for those who simply want to use it as a node. However, it causes problems to whoever is building ports on a dedicated system to use on other systems with different CPUs. In that case the port may not run normally (a few seconds after the monerod service starts a monerod.core files is created and it up to roughly the size of the database and then the service quits). I fixed this issue by creating a new option PORTABLE where the user can choose whether to build portable binaries that will work other systems of the same architecture but different CPUs by removing the -march=native compiler flag. The flag is removed by applying a patch to the CMakeLists.txt upstream file similar to what is done to compile on OpenBSD. Probably this is not the most elegant solution but, with my very limited knowledge, that's the best I could come up with. If you have any suggestions on how to improve this I'd appreciate the input. -- You are receiving this mail because: You are the assignee for the bug.