From 8264c6e2a29d3e1bbdfa8466c2b5ffcf7ab5e7f6 Mon Sep 17 00:00:00 2001 From: "Pawel \"l0ner\" Soltys" Date: Mon, 12 Jan 2015 15:21:43 +0100 Subject: [PATCH] drop OpenBSD support. See bsd/openBSD.txt for info --- CMakeLists.txt | 3 ++- bsd/openBSD.txt | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 bsd/openBSD.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index cf08326..b9406c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,8 @@ ELSEIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") ELSEIF(CMAKE_SYSTEM_NAME MATCHES "OpenBSD") # OpenBSD Stuff Here message( "OpenBSD detected") - message( WARNING "OpenBSD is still experimental!" ) + message( FATAL_ERROR "OpenBSD is not supported! See bsd/openBSD.txt for more + info" ) SET( METER_SOURCES "bsd/memory_openbsd.cc" "bsd/cpu.cc" "bsd/load.cc" ) ELSE() message( FATAL_ERROR "Cannot be compiled on this system" ) diff --git a/bsd/openBSD.txt b/bsd/openBSD.txt new file mode 100644 index 0000000..4a7c804 --- /dev/null +++ b/bsd/openBSD.txt @@ -0,0 +1,19 @@ +About OpenBSD Port +================== + +I've decided not to do OpenBSD port. Some preparations has been made both +by myself and (mainly) by Justin Crawford, so finish it shouldn't be difficult. +Personally, after installing OpenBSD and trying to finish the port I've +discovered that g++ supplied by OpenBSD (version 5.7) doesn't support c++11. +This means we lose the ability to use to_string() and stoi() functions. I could +write replacements for them, or try to get c++11 working on OpenBSD. But I +decided not to. At least for the moment. + +I don't know OpenBSD, it's unfamiliar ground for me. And while FreeBSD was easy +to get into, I have found OpenBSD a little bit more difficult. + +So, no OpenBSD port for now. If you are OpenBSD user and know a little bit c++ +finishing the port should be easy (once you get C++11 working). + +l0ner +