From owner-svn-ports-all@freebsd.org Sun Nov 20 20:58:22 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5EE80C4C69C; Sun, 20 Nov 2016 20:58:22 +0000 (UTC) (envelope-from jbeich@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 mx1.freebsd.org (Postfix) with ESMTPS id 1757A19E7; Sun, 20 Nov 2016 20:58:22 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uAKKwLoK065092; Sun, 20 Nov 2016 20:58:21 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAKKwLlQ065091; Sun, 20 Nov 2016 20:58:21 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201611202058.uAKKwLlQ065091@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 20 Nov 2016 20:58:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r426629 - head/devel/kore X-SVN-Group: ports-head 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.23 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, 20 Nov 2016 20:58:22 -0000 Author: jbeich Date: Sun Nov 20 20:58:21 2016 New Revision: 426629 URL: https://svnweb.freebsd.org/changeset/ports/426629 Log: devel/kore: unbreak build on 12.0 src/cli.c:385:9: error: generic selections are a C11-specific feature [-Werror,-Wc11-extensions] appl = basename(pwd); ^ /usr/include/libgen.h:60:21: note: expanded from macro 'basename' #define basename(x) __generic(x, const char *, __old_basename, basename)(x) ^ /usr/include/sys/cdefs.h:337:2: note: expanded from macro '__generic' _Generic(expr, t: yes, default: no) ^ PR: 214638 Reported by: pkg-fallout Submitted by: Tobias Kortkamp (maintainer) Modified: head/devel/kore/Makefile (contents, props changed) Modified: head/devel/kore/Makefile ============================================================================== --- head/devel/kore/Makefile Sun Nov 20 20:58:16 2016 (r426628) +++ head/devel/kore/Makefile Sun Nov 20 20:58:21 2016 (r426629) @@ -47,17 +47,16 @@ JSONRPC_LIB_DEPENDS= libyajl.so:devel/ya DEBUG_VARS= MAKE_ARGS+=DEBUG=1 -.include - -.if ${SSL_DEFAULT} == base -BROKEN_FreeBSD_9= Base OpenSSL on FreeBSD 9.x is too old -.endif +BROKEN_FreeBSD_9= does not build post-patch: -# Disable kore's own optimizations flags - @${REINPLACE_CMD} 's|CFLAGS+=-O|#|g' ${WRKSRC}/Makefile -# Make sure the correct flags are set when LOCALBASE is not /usr/local - @${REINPLACE_CMD} 's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/Makefile +# Disable kore's own optimizations flags, make sure the correct flags +# are set when LOCALBASE is not /usr/local, and allow __generic on +# FreeBSD 12.0-CURRENT after r308264 + @${REINPLACE_CMD} -e 's|CFLAGS+=-O|#|g' \ + -e 's|/usr/local/|${LOCALBASE}/|g' \ + -e 's|-pedantic|-pedantic -Wno-error=c11-extensions|g' \ + ${WRKSRC}/Makefile pre-install: ${STRIP_CMD} ${WRKSRC}/kore @@ -66,4 +65,4 @@ post-install: cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/conf && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} -.include +.include