Skip to content
Snippets Groups Projects
Commit 0ece57ee authored by Arnaud Degroote's avatar Arnaud Degroote
Browse files

[wip/hyper] Upgrade to version 0.10

Changes since 0.9:
	- allows selecting port of hyperruntime
	- allows let expression in end handler
	- generate some tests programm for each agent, allowing to access to the
	  different variables of the agent (encoded in JSON)
	- start to write some documentation (but not enough for 1.0)

Notables bugfixes:
	- be more rigorous when handling getifaddr
	- fix some race in make handling
	- fix some build issues
	- fix invalid code generation for big doubles

Package:
	- remove various patches now integred in the release
	- add a doc option, to construct the (beginning of) documentation (need
	  py-sphinx).
parent 0b1dfd20
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,7 @@
#
DISTNAME= hyper-${VERSION}
VERSION= 0.9
PKGREVISION= 3
VERSION= 0.10
CATEGORIES= supervision
MASTER_SITES= ${MASTER_SITE_OPENROBOTS:=hyper/}
MASTER_REPOSITORY= ${MASTER_REPOSITORY_OPENROBOTS}hyper
......@@ -19,6 +18,19 @@ MAKE_JOBS_SAFE= no # because gcc eats up to 1GB for some files...
CMAKE_ARGS+= -DBOOST_INCLUDEDIR=${PREFIX.boost-headers}/include
CMAKE_ARGS+= -DBOOST_LIBDIR=${PREFIX.boost-libs}/include
# doc option
PKG_SUPPORTED_OPTIONS+= doc
PKG_OPTION_DESCR.doc?= Install ${PKGBASE} documentation
define PKG_OPTION_SET.doc
CMAKE_ARGS+= -DBUILD_DOC=ON
CMAKE_ARGS+= -DSPHINX_BUILD=${PREFIX.py-sphinx}/bin/sphinx-build
include ../../mk/sysdep/py-sphinx.mk
endef
define PKG_OPTION_UNSET.doc
CMAKE_ARGS+= -DBUILD_DOC=OFF
endef
DEPEND_ABI.boost-libs=boost-libs>=1.46.1
DEPEND_ABI.boost-headers=boost-headers>=1.46.1
......
@comment Mon Oct 8 10:58:06 CEST 2012
@comment Tue May 7 12:33:24 CEST 2013
bin/hyperc
bin/hyperlog
bin/hyperruntime
......@@ -85,6 +85,7 @@ include/hyper/model/update_impl.hh
include/hyper/network/actor_protocol.hh
include/hyper/network/algorithm.hh
include/hyper/network/client_tcp_impl.hh
include/hyper/network/json_archive.hh
include/hyper/network/log.hh
include/hyper/network/log_level.hh
include/hyper/network/msg.hh
......@@ -106,6 +107,35 @@ lib/libhyper_compiler.so
lib/libhyper_logic.so
lib/libhyper_model.so
lib/libhyper_network.so
${PLIST.doc}share/doc/morse/html/_static/ajax-loader.gif
${PLIST.doc}share/doc/morse/html/_static/basic.css
${PLIST.doc}share/doc/morse/html/_static/comment-bright.png
${PLIST.doc}share/doc/morse/html/_static/comment-close.png
${PLIST.doc}share/doc/morse/html/_static/comment.png
${PLIST.doc}share/doc/morse/html/_static/default.css
${PLIST.doc}share/doc/morse/html/_static/doctools.js
${PLIST.doc}share/doc/morse/html/_static/down-pressed.png
${PLIST.doc}share/doc/morse/html/_static/down.png
${PLIST.doc}share/doc/morse/html/_static/file.png
${PLIST.doc}share/doc/morse/html/_static/jquery.js
${PLIST.doc}share/doc/morse/html/_static/minus.png
${PLIST.doc}share/doc/morse/html/_static/plus.png
${PLIST.doc}share/doc/morse/html/_static/pygments.css
${PLIST.doc}share/doc/morse/html/_static/searchtools.js
${PLIST.doc}share/doc/morse/html/_static/sidebar.js
${PLIST.doc}share/doc/morse/html/_static/underscore.js
${PLIST.doc}share/doc/morse/html/_static/up-pressed.png
${PLIST.doc}share/doc/morse/html/_static/up.png
${PLIST.doc}share/doc/morse/html/_static/websupport.js
${PLIST.doc}share/doc/morse/html/first_agent.html
${PLIST.doc}share/doc/morse/html/genindex.html
${PLIST.doc}share/doc/morse/html/hyper.html
${PLIST.doc}share/doc/morse/html/installation.html
${PLIST.doc}share/doc/morse/html/more_realist_first_agent.html
${PLIST.doc}share/doc/morse/html/search.html
${PLIST.doc}share/doc/morse/html/searchindex.js
${PLIST.doc}share/doc/morse/html/what_is_hyper.html
share/hyper/FindBoost.cmake
share/hyper/HyperConfig.cmake
share/hyper/HyperNode.cmake
${PLIST.doc}share/man/man1/hyperc.1.gz
SHA1 (hyper-0.9.tar.gz) = adf3507649a3cd3afed44b300f99850243daab25
RMD160 (hyper-0.9.tar.gz) = da79fc936a80720d489630163e403ce0439bd4fe
Size (hyper-0.9.tar.gz) = 176663 bytes
SHA1 (patch-aa) = 1d7f8ead0ab7811bfe394dfdd7db0d599cfdb239
SHA1 (patch-ab) = abe3ae29c6cf00f941ae5c99cd5e43e5a97da409
SHA1 (patch-ac) = 672c6025db0bf6124dcaecfb2cfa044e84a90129
SHA1 (hyper-0.10.tar.gz) = 9a77e44f7c9dbc0df06d3def2fc574100b8de4aa
RMD160 (hyper-0.10.tar.gz) = 0710815ca9605055035efbdf50f64a8c0867942e
Size (hyper-0.10.tar.gz) = 190421 bytes
[compiler] Force the output in fixed mode for double
Otherwise, they can be truncated and lead to incorrect values
---
src/compiler/ability.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/compiler/ability.cc b/src/compiler/ability.cc
index c87b1d6..1f92140 100644
--- src/compiler/ability.cc
+++ src/compiler/ability.cc
@@ -144,7 +144,8 @@ struct print_initializer_helpers : boost::static_visitor<std::string>
std::string operator () (const Constant<T>& c) const
{
std::ostringstream oss;
- oss << ", " << var_name << "(" << c.value << ")";
+ oss.precision(9);
+ oss << ", " << var_name << "(" << std::fixed << c.value << ")";
return oss.str();
}
[model] Add stdlib header for exit(3) and daemon on NetBSD
diff --git a/include/model/main.hh b/include/model/main.hh
index 08e3543..1f719bb 100644
--- include/model/main.hh
+++ include/model/main.hh
@@ -3,6 +3,7 @@
#include <iostream>
#include <string>
+#include <stdlib.h>
#include <unistd.h>
#include <boost/system/system_error.hpp>
Only install header files from include
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e16951..fac985d 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -85,6 +85,7 @@ endforeach(lib)
# install rules for include
install(DIRECTORY include/
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/hyper
+ FILES_MATCHING PATTERN "*.hh"
)
configure_file(
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment