svn commit: r478250 - head/devel/uatraits
Tobias Kortkamp
tobik at FreeBSD.org
Mon Aug 27 20:20:34 UTC 2018
Author: tobik
Date: Mon Aug 27 20:20:33 2018
New Revision: 478250
URL: https://svnweb.freebsd.org/changeset/ports/478250
Log:
devel/uatraits: Fix build with Clang 6
../include/uatraits/details/regex_utils.hpp:67:24: error: non-constant-expression cannot be narrowed from type 'decltype(__x.base() - __y.base())' (aka 'int') to 'std::size_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
regex_data data = { i - begin, pos - begin, scan_integer<std::size_t>(i + 1, pos) };
^~~~~~~~~
http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/uatraits-20130430_11.log
Approved by: demon (maintainer, implicit)
Modified:
head/devel/uatraits/Makefile
Modified: head/devel/uatraits/Makefile
==============================================================================
--- head/devel/uatraits/Makefile Mon Aug 27 20:16:25 2018 (r478249)
+++ head/devel/uatraits/Makefile Mon Aug 27 20:20:33 2018 (r478250)
@@ -16,7 +16,7 @@ LIB_DEPENDS= ${PY_BOOST} \
libpcre.so:devel/pcre \
libxml2.so:textproc/libxml2
-USES= autoreconf libtool pkgconfig python:2.7 ssl
+USES= autoreconf compiler libtool pkgconfig python:2.7 ssl
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
@@ -27,6 +27,8 @@ CONFIGURE_ARGS= --with-boost-prefix=${LOCALBASE} \
CONFIGURE_ENV= crypto_CFLAGS="-I${OPENSSLINC}" \
crypto_LIBS="-L${OPENSSLLIB} -lcrypto"
CPPFLAGS+= -I${LOCALBASE}/include
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang= -Wno-c++11-narrowing
post-patch:
@${REINPLACE_CMD} -e 's/\[boost_python]/[${PY_BOOST_LIB}]/' \
More information about the svn-ports-all
mailing list