From owner-svn-ports-all@freebsd.org Sun Sep 9 07:10:27 2018 Return-Path: Delivered-To: svn-ports-all@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 2BE55108D4EE; Sun, 9 Sep 2018 07:10:27 +0000 (UTC) (envelope-from tobik@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 C3E7D89681; Sun, 9 Sep 2018 07:10:26 +0000 (UTC) (envelope-from tobik@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 AF6F31670F; Sun, 9 Sep 2018 07:10:26 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w897AQLT008910; Sun, 9 Sep 2018 07:10:26 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w897AQfq008909; Sun, 9 Sep 2018 07:10:26 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201809090710.w897AQfq008909@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sun, 9 Sep 2018 07:10:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479273 - in head/net/linknx: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/net/linknx: . files X-SVN-Commit-Revision: 479273 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2018 07:10:27 -0000 Author: tobik Date: Sun Sep 9 07:10:25 2018 New Revision: 479273 URL: https://svnweb.freebsd.org/changeset/ports/479273 Log: net/linknx: Fix build with Clang 6 objectcontroller.cpp:659:27: error: non-constant-expression cannot be narrowed from type 'int' to 'uint8_t' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] uint8_t buf[2] = { 0, (isWrite ? 0x80 : 0x40) | (getBoolObjectValue() ? 1 : 0) }; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479076_s338486/logs/errors/linknx-0.0.1.32.log PR: 230897 Submitted by: tobik Approved by: bkoenig@alpha-tierchen.de (maintainer timeout, 2 weeks) Added: head/net/linknx/files/patch-src_suncalc.cpp (contents, props changed) Modified: head/net/linknx/Makefile Modified: head/net/linknx/Makefile ============================================================================== --- head/net/linknx/Makefile Sun Sep 9 07:04:54 2018 (r479272) +++ head/net/linknx/Makefile Sun Sep 9 07:10:25 2018 (r479273) @@ -20,10 +20,12 @@ BROKEN_armv7= fails to configure: checking for GNU Pt BROKEN_mips= fails to configure: checking for GNU Pth... Segmentation fault BROKEN_mips64= fails to configure: checking for GNU Pth... Segmentation fault -USES= gmake autoreconf pkgconfig +USES= compiler gmake autoreconf pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib" +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing OPTIONS_DEFINE= LIBESMTP LIBCURL LIBLUA MYSQL OPTIONS_DEFAULT= LIBESMTP Added: head/net/linknx/files/patch-src_suncalc.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/linknx/files/patch-src_suncalc.cpp Sun Sep 9 07:10:25 2018 (r479273) @@ -0,0 +1,27 @@ +In file included from suncalc.cpp:47: + /usr/include/c++/v1/math.h:733:39: error: no member named 'fabsf' in the global + namespace; did you mean simply 'fabsf'? + abs(float __lcpp_x) _NOEXCEPT {return ::fabsf(__lcpp_x);} + ^~ + +--- src/suncalc.cpp.orig 2018-08-25 18:51:49 UTC ++++ src/suncalc.cpp +@@ -25,8 +25,6 @@ + #include "suncalc.h" + #include "services.h" + +-namespace suncalc +-{ + + /* + SUNRISET.C - computes Sun rise/set times, start/end of twilight, and +@@ -49,6 +47,9 @@ Released to the public domain by Paul Schlyter, Decemb + #include + #include + #include ++ ++namespace suncalc ++{ + + /* A macro to compute the number of days elapsed since 2000 Jan 0.0 */ + /* (which is equal to 1999 Dec 31, 0h UT) */