From owner-svn-ports-head@freebsd.org Fri May 18 15:41:57 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 F036FEABFBD; Fri, 18 May 2018 15:41:56 +0000 (UTC) (envelope-from adamw@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 9ECA87B636; Fri, 18 May 2018 15:41:56 +0000 (UTC) (envelope-from adamw@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 7FFB61A20B; Fri, 18 May 2018 15:41:56 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4IFfuJJ035401; Fri, 18 May 2018 15:41:56 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4IFfuE0035400; Fri, 18 May 2018 15:41:56 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201805181541.w4IFfuE0035400@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Fri, 18 May 2018 15:41:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r470301 - head/devel/kBuild X-SVN-Group: ports-head X-SVN-Commit-Author: adamw X-SVN-Commit-Paths: head/devel/kBuild X-SVN-Commit-Revision: 470301 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 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: Fri, 18 May 2018 15:41:57 -0000 Author: adamw Date: Fri May 18 15:41:55 2018 New Revision: 470301 URL: https://svnweb.freebsd.org/changeset/ports/470301 Log: devel/kBuild: Add a GCC option When you're building only virtualbox-ose-additions, and without any X-related stuff, it is sufficient to build with clang instead of GCC. Add a GCC option (with a warning and pkg-help saying to leave it enabled) to make GCC optional. PR: 215369 Approved by: maintainer timeout (17 months) Added: head/devel/kBuild/pkg-help (contents, props changed) Modified: head/devel/kBuild/Makefile Modified: head/devel/kBuild/Makefile ============================================================================== --- head/devel/kBuild/Makefile Fri May 18 15:39:43 2018 (r470300) +++ head/devel/kBuild/Makefile Fri May 18 15:41:55 2018 (r470301) @@ -18,7 +18,6 @@ BROKEN_powerpc64= does not build: fatal error: xmmintr NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 NOT_FOR_ARCHS_REASON= ./kBuild/env.sh: unknown cpu/arch -USE_GCC= any USES= autoreconf:build gmake makeinfo tar:xz CONFLICTS_INSTALL= kBuild-devel-[0-9]* @@ -43,7 +42,10 @@ PORTDOCS= QuickReference-kmk.html \ ENV= .export ENV -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS GCC +OPTIONS_DEFAULT=GCC +GCC_DESC= Build with GCC (should almost always be enabled) +GCC_USE= GCC=any post-patch: for f in ${WRKSRC}/kBuild/tools/*.kmk; do \ Added: head/devel/kBuild/pkg-help ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/kBuild/pkg-help Fri May 18 15:41:55 2018 (r470301) @@ -0,0 +1,3 @@ +The only time that the GCC option can be disabled (to build with clang +instead) is if you're building ONLY emulators/virtualbox-ose-additions, +without X11, and only on amd64/i386.