From owner-svn-ports-head@freebsd.org Tue Nov 20 22:34:42 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA2011140AE8; Tue, 20 Nov 2018 22:34:41 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D06F881CC; Tue, 20 Nov 2018 22:34:41 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 64C8B179CC; Tue, 20 Nov 2018 22:34:41 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAKMYfSb077064; Tue, 20 Nov 2018 22:34:41 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAKMYdSE077054; Tue, 20 Nov 2018 22:34:39 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201811202234.wAKMYdSE077054@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 20 Nov 2018 22:34:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485490 - in head/devel: . ignition-transport ignition-transport/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . ignition-transport ignition-transport/files X-SVN-Commit-Revision: 485490 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 9D06F881CC X-Spamd-Result: default: False [0.08 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_MEDIUM(0.16)[0.160,0]; NEURAL_HAM_SHORT(-0.08)[-0.084,0]; NEURAL_SPAM_LONG(0.00)[0.004,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2018 22:34:42 -0000 Author: yuri Date: Tue Nov 20 22:34:38 2018 New Revision: 485490 URL: https://svnweb.freebsd.org/changeset/ports/485490 Log: New port: devel/ignition-transport: Ignition transport classes and functions for robot applications Added: head/devel/ignition-transport/ head/devel/ignition-transport/Makefile (contents, props changed) head/devel/ignition-transport/distinfo (contents, props changed) head/devel/ignition-transport/files/ head/devel/ignition-transport/files/patch-CMakeLists.txt (contents, props changed) head/devel/ignition-transport/files/patch-log_include_ignition_transport_log_SqlStatement.hh (contents, props changed) head/devel/ignition-transport/files/patch-log_src_QueryOptions.cc (contents, props changed) head/devel/ignition-transport/files/patch-src_NetUtils.cc (contents, props changed) head/devel/ignition-transport/files/patch-test_test__config.h.in (contents, props changed) head/devel/ignition-transport/pkg-descr (contents, props changed) head/devel/ignition-transport/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Nov 20 22:33:32 2018 (r485489) +++ head/devel/Makefile Tue Nov 20 22:34:38 2018 (r485490) @@ -1232,6 +1232,7 @@ SUBDIR += ignition-msgs SUBDIR += ignition-plugin SUBDIR += ignition-tools + SUBDIR += ignition-transport SUBDIR += imake SUBDIR += inastemp SUBDIR += include-what-you-use Added: head/devel/ignition-transport/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/Makefile Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= ignition-transport +DISTVERSION= 6.0.0 +CATEGORIES= devel +MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Ignition transport classes and functions for robot applications + +LICENSE= APACHE20 + +BUILD_DEPENDS= ignition-cmake==2:devel/ignition-cmake \ + ignition-tools>0:devel/ignition-tools \ + cppzmq>0:net/cppzmq +LIB_DEPENDS= libignition-math6.so:math/ignition-math \ + libignition-msgs3.so:devel/ignition-msgs \ + libprotobuf.so:devel/protobuf \ + libuuid.so:misc/e2fsprogs-libuuid \ + libzmq.so:net/libzmq4 +RUN_DEPENDS= ignition-tools>0:devel/ignition-tools + +USES= cmake:outsource pkgconfig sqlite +USE_LDCONFIG= yes + +CMAKE_OFF= BUILD_TESTING + +BB_ACCOUNT= ignitionrobotics +BB_PROJECT= ign-transport +BB_COMMIT= 4b78da2af04c + +WRKSRC= ${WRKDIR}/${BB_ACCOUNT}-${BB_PROJECT}-${BB_COMMIT} + +PLIST_SUB+= TRANSPORT_IGN_VER=transport${DISTVERSION:R:R} + +do-test: # 1 test is known to fail: https://bitbucket.org/ignitionrobotics/ign-transport/issues/100/test-integration_log_versioned_symbols + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test + +.include Added: head/devel/ignition-transport/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/distinfo Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,3 @@ +TIMESTAMP = 1542653754 +SHA256 (ignition-transport-6.0.0.tar.gz) = 691a6566774f7952297aee2d48fc638cdbc49c4a6529606b56d879fcda155185 +SIZE (ignition-transport-6.0.0.tar.gz) = 529120 Added: head/devel/ignition-transport/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/files/patch-CMakeLists.txt Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2018-11-19 20:02:52 UTC ++++ CMakeLists.txt +@@ -22,7 +22,7 @@ ign_configure_project(VERSION_SUFFIX pre + + # ignition-transport currently has no options that are unique to it + +-if (UNIX AND NOT APPLE) ++if (UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "^(FreeBSD|DragonFly)$") + set (EXTRA_TEST_LIB_DEPS stdc++fs) + else() + set (EXTRA_TEST_LIB_DEPS) Added: head/devel/ignition-transport/files/patch-log_include_ignition_transport_log_SqlStatement.hh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/files/patch-log_include_ignition_transport_log_SqlStatement.hh Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,29 @@ +--- log/include/ignition/transport/log/SqlStatement.hh.orig 2018-11-20 22:07:06 UTC ++++ log/include/ignition/transport/log/SqlStatement.hh +@@ -59,22 +59,22 @@ namespace ignition + + /// \sa Set(std::nullptr_t) + /// \brief Construct NULL parameter +- public: explicit SqlParameter(std::nullptr_t); ++ public: SqlParameter(std::nullptr_t); + + /// \sa Set(int64_t) + /// \brief Construct integer parameter + /// \param[in] _integer an integer +- public: explicit SqlParameter(int64_t _integer); ++ public: SqlParameter(int64_t _integer); + + /// \sa Set(double) + /// \brief Construct real parameter + /// \param[in] _real a real number +- public: explicit SqlParameter(double _real); ++ public: SqlParameter(double _real); + + /// \sa Set(const std::string &) + /// \brief Construct string parameter + /// \param[in] _string a string +- public: explicit SqlParameter(const std::string &_text); ++ public: SqlParameter(const std::string &_text); + + /// \brief Copy constructor + /// \param[in] _other Another SqlParameter Added: head/devel/ignition-transport/files/patch-log_src_QueryOptions.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/files/patch-log_src_QueryOptions.cc Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,20 @@ +--- log/src/QueryOptions.cc.orig 2018-11-20 22:08:14 UTC ++++ log/src/QueryOptions.cc +@@ -113,7 +113,7 @@ class TimeRangeOption::Implementation + if (!startCompare.empty()) + { + sql.statement += "time_recv " + startCompare + " ?"; +- sql.parameters.emplace_back(start.GetTime()->count()); ++ sql.parameters.emplace_back((int64_t)start.GetTime()->count()); + + if (!finishCompare.empty()) + sql.statement += " AND "; +@@ -122,7 +122,7 @@ class TimeRangeOption::Implementation + if (!finishCompare.empty()) + { + sql.statement += "time_recv " + finishCompare + " ?"; +- sql.parameters.emplace_back(finish.GetTime()->count()); ++ sql.parameters.emplace_back((int64_t)finish.GetTime()->count()); + } + + return sql; Added: head/devel/ignition-transport/files/patch-src_NetUtils.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/files/patch-src_NetUtils.cc Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,28 @@ +--- src/NetUtils.cc.orig 2018-11-19 19:50:00 UTC ++++ src/NetUtils.cc +@@ -23,6 +23,7 @@ + #else + #include + #include ++ #include + #include + #include + #include +@@ -208,10 +209,17 @@ inline namespace IGNITION_TRANSPORT_VERS + } + + // If we already have the same SIOCGIFINDEX, ignore it (subinterface). ++# if defined(__FreeBSD__) || defined(__DragonFly__) ++ if (realIdx.find(ifIdx.ifr_index) != realIdx.end()) ++ continue; ++ ++ realIdx.insert(ifIdx.ifr_index); ++# else + if (realIdx.find(ifIdx.ifr_ifindex) != realIdx.end()) + continue; + + realIdx.insert(ifIdx.ifr_ifindex); ++# endif + #endif + + if (getnameinfo(ifa->ifa_addr, salen, ip_, sizeof(ip_), nullptr, 0, Added: head/devel/ignition-transport/files/patch-test_test__config.h.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/files/patch-test_test__config.h.in Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,20 @@ +--- test/test_config.h.in.orig 2018-09-11 18:30:00 UTC ++++ test/test_config.h.in +@@ -30,7 +30,7 @@ + DETAIL_IGN_TRANSPORT_TEST_DIR + #endif + +-#ifndef __APPLE__ ++#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__) + #include + #include + #endif +@@ -91,7 +91,7 @@ namespace testing + std::string portablePathUnion(const std::string &_str1, + const std::string &_str2) + { +-#ifdef __APPLE__ ++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) + // Ugly as hell but trying to avoid boost::filesystem + return _str1 + "/" + _str2; + #else Added: head/devel/ignition-transport/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/pkg-descr Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,4 @@ +Ignition transport is a component in the ignition framework, a set of libraries +designed to rapidly develop robot applications. + +WWW: https://ignitionrobotics.org/home Added: head/devel/ignition-transport/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ignition-transport/pkg-plist Tue Nov 20 22:34:38 2018 (r485490) @@ -0,0 +1,64 @@ +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/AdvertiseOptions.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/Clock.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/Discovery.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/Export.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/HandlerStorage.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/Helpers.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/MessageInfo.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/NetUtils.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/Node.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/NodeOptions.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/NodeShared.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/Packet.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/Publisher.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/RepHandler.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/ReqHandler.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/SubscribeOptions.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/SubscriptionHandler.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/TopicStorage.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/TopicUtils.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/TransportTypes.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/Uuid.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/config.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/detail/Export.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/detail/Node.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/ign.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/Batch.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/Descriptor.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/Export.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/Log.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/Message.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/MsgIter.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/Playback.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/QualifiedTime.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/QueryOptions.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/Recorder.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/SqlStatement.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/detail/Export.hh +include/ignition/%%TRANSPORT_IGN_VER%%/ignition/transport/log/detail/QueryOptions.hh +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%-all/ignition-%%TRANSPORT_IGN_VER%%-all-config-version.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%-all/ignition-%%TRANSPORT_IGN_VER%%-all-config.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%-all/ignition-%%TRANSPORT_IGN_VER%%-all-targets.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%-log/ignition-%%TRANSPORT_IGN_VER%%-log-config-version.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%-log/ignition-%%TRANSPORT_IGN_VER%%-log-config.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%-log/ignition-%%TRANSPORT_IGN_VER%%-log-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%-log/ignition-%%TRANSPORT_IGN_VER%%-log-targets.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%/ignition-%%TRANSPORT_IGN_VER%%-config-version.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%/ignition-%%TRANSPORT_IGN_VER%%-config.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%/ignition-%%TRANSPORT_IGN_VER%%-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/ignition-%%TRANSPORT_IGN_VER%%/ignition-%%TRANSPORT_IGN_VER%%-targets.cmake +lib/libignition-%%TRANSPORT_IGN_VER%%-log.so +lib/libignition-%%TRANSPORT_IGN_VER%%-log.so.6 +lib/libignition-%%TRANSPORT_IGN_VER%%-log.so.6.0.0~pre2 +lib/libignition-%%TRANSPORT_IGN_VER%%.so +lib/libignition-%%TRANSPORT_IGN_VER%%.so.6 +lib/libignition-%%TRANSPORT_IGN_VER%%.so.6.0.0~pre2 +lib/ruby/ignition/cmdlog6.rb +lib/ruby/ignition/cmd%%TRANSPORT_IGN_VER%%.rb +libdata/pkgconfig/ignition-%%TRANSPORT_IGN_VER%%-log.pc +libdata/pkgconfig/ignition-%%TRANSPORT_IGN_VER%%.pc +share/ignition/ignition-%%TRANSPORT_IGN_VER%%/sql/0.1.0.sql +share/ignition/%%TRANSPORT_IGN_VER%%.yaml +share/ignition/transportlog6.yaml