From owner-freebsd-ports@FreeBSD.ORG Fri Sep 13 13:33:50 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 81D0D5DB for ; Fri, 13 Sep 2013 13:33:50 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: from mail-qc0-x229.google.com (mail-qc0-x229.google.com [IPv6:2607:f8b0:400d:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0A2FF233B for ; Fri, 13 Sep 2013 13:33:49 +0000 (UTC) Received: by mail-qc0-f169.google.com with SMTP id c9so882104qcz.14 for ; Fri, 13 Sep 2013 06:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seibercom.net; s=google; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :organization:face:mime-version:content-type; bh=SOrJA4WwqxzNIRsXu400hEVd2uqNXnlf+8ue8JPAO8w=; b=Idc9P+dfjZ/YuviLlBS4/n3vEVNuOHgvLDTddDJXwbgsgbWHb+0UEjEfityQf67l81 KtF8ksLtAvJJz4DPOKV1SiO9V5ZCLUlhxAu8+3Q7mW5i71YYHEz5jI9/9RIzurFP1RIw Dgmj9DUBiXPIB5SRoA9/jInHllc/Fp0U1hQJU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:organization:face:mime-version:content-type; bh=SOrJA4WwqxzNIRsXu400hEVd2uqNXnlf+8ue8JPAO8w=; b=WgEGmKELXVoDmG7nYwmZhD0j8X4DVwbKykA+jVQ/3x7SF4pATRRdYeoIOmWkPW8Z6G RycTEqoJWjRFnGJveQgX2/bVEErjTpSaNxkfHFQgA08QVyOICCgPayDNGB2faZdur5KR JqhcEPsmI6hnPV1swUVZWx9W3Bide5Fj8q+bQgpG8H12JHGrQKZ2mJ4DgETla3Ubv/Vz wm19OiD6PErsCjWEJiJyWgI2CYcOdiBKP05fw56kxBTM/pv1bDlRjJtLfEALNbo9rY2e bQmS5SvUI9M2SihVeN5b414WWo+n4Nfe7r0qPxLOT9DMdb4BEas1i9YeI9CmxtQxfTTz lkDA== X-Gm-Message-State: ALoCoQlM8QrBz4TKDT5yxIWcR+zGEQHBsarn1A/nstFj42L11+sE+7POsGjswhtpleWIJlN9sMyq X-Received: by 10.49.49.133 with SMTP id u5mr24392668qen.19.1379079228786; Fri, 13 Sep 2013 06:33:48 -0700 (PDT) Received: from scorpio.seibercom.net (cpe-076-182-104-150.nc.res.rr.com. [76.182.104.150]) by mx.google.com with ESMTPSA id u8sm19795670qef.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:33:48 -0700 (PDT) Received: from scorpio (localhost [127.0.0.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jerry@seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 3cbyVL75C7z2CG57 for ; Fri, 13 Sep 2013 09:33:46 -0400 (EDT) Date: Fri, 13 Sep 2013 09:33:38 -0400 From: Jerry To: freebsd-ports@freebsd.org Subject: Re: [HEADSUP][CFT] New compiler USES flag, please test, review comment Message-ID: <20130913093338.40b9eb3e@scorpio> In-Reply-To: <20130913131753.GJ33103@ithaqua.etoilebsd.net> References: <20130913131753.GJ33103@ithaqua.etoilebsd.net> Organization: seibercom.net X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd8.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAABYRlwJCw4FAgAIBwKprDkBAQFQLR0BAgCir7VRttp8AAACAUlEQVQ4jZWUTYvbMBCGTVl8V2hX6Gg5G5FbWQdBj0lEfE7BhN4cyzi5Wt1E5L70roWy6N92xok/skkP+5IYrMcz78xIduDWpNM3vFzuA/jX5EY1AI6KHFwW/CzFuQAwqUBbV12p+CzIh6Awq7sg33pn5D64SQXAexffeuQlA/L35RrkaB551OjGfP/cAO8mCNaDcgvfky5ijoD0pAXlCQCnljiAjsJD9Ax05Ko5sZxbnLQcmM+dZg5IjREfZrWIHK0JuwU68pAGwHvfRxBundRzTxxz3r9dNUikPsEihjz2Dc4kjp1hKsJGuot4EDxaxzMoC7XqhxhOSfZrTS6gSX1JVdjp+o1PvWfekXgw3WL0g70nDEwA0H0HQsEZc8sTmFMTkWUfYWC/vdR1zQy3xLQgLwzu90QnlnFLjeiGWBjwhb4Sa42IqOg2qqS4O1/zhKokFUb1Q8Rj4Eb69WVflXEehJ35DgChVTE5n50eaGyMLOfH8AOodoSM4PVYAQgQdBulOa+knklYks3vAuQ+uX492lTl+A+e8qBV2AKoXalVKFfyuUp0pUp1ARaUHh82lv9MN+Ig7CZtgE6FNYvjlywT2VP2dMgOG46gTIWcqdfvuwyXNz0oMJNd/N5lh1YNiJt19ADTUo3VuFSNeQwVqRSrGjSCp53fk2g+Mvfk/gfoPxHeUS8MH9vRAAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/ZwficfLWf8xIux4/be9b68j"; protocol="application/pgp-signature" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2013 13:33:50 -0000 --Sig_/ZwficfLWf8xIux4/be9b68j Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 13 Sep 2013 15:17:53 +0200 Baptiste Daroussin articulated: > Hi, >=20 > Given how old our gcc in base is and the work done on clang and > libc++. >=20 > It is becoming complicating to make some ports properly working on > all supported version of FreeBSD. >=20 > To help in that I would like to propose a new USES: > compiler >=20 > http://people.freebsd.org/~bapt/compiler.mk.txt >=20 > What it does is: >=20 > USES=3Dcompiler >=20 > Will set 2 variables: > COMPILER_TYPE to gcc or clang depending on the base compiler > COMPILER_VERSION wish will be the 2 first digits of the compiler > version 46 for gcc 4.6.* 33 for clang 3.3.* >=20 > USES=3Dcompiler:features > It creates a new COMPILER_FEATURES which will gather the supported > features of the compiler. >=20 > Features being: > libstdc++ if the c++ compiler uses libstdc++ by default > libc++ if the c++ compiler uses libc++ by default > And the standard supported by the compiler: > c89, c99, c11, gnu89, gnu99, gnu11, c++98, c++11, gnu++98, gnu++11 >=20 > USES=3Dcompiler:c11 >=20 > Means you need a c11 capable compiler, and if your default comiler is > not able to do it, it will picked clang33 by default of gcc 4.6+ if > you specify in your make.conf you do prefer gcc over clang >=20 > USES=3D compiler:c++11 >=20 > Means you need a c++1 capable compiler but not necessary a c++ 11 > aware standard library, in that case if the base compiler is not able > to support c++11 clang33 will be used from ports otherwise gcc 4.6+ > if you specify it in make.conf. >=20 > USES=3D compiler=3Dstdc++11 >=20 > You need a c++11 aware stdlibrary, if the base compiler doesn't have > it then gcc 4.6+ will be used. >=20 > To specify you do prefer gcc over clang by default add > FAVORITE_COMPILER=3Dgcc in your make.conf >=20 > For all cases that does not fall into one of the above case continue > using USE_GCC as you where doing before Excellent idea. I was never in favor of switching to "clang" anyway. I would have preferred that the base "gcc" was updated to the latest stable version; however, too many people got their shorts in a bunch and that wasn't going to happen. This sounds like a smart, well thought out concept; therefore, it will probably be rejected. --=20 Jerry =E2=99=94 Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ --Sig_/ZwficfLWf8xIux4/be9b68j Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBAgAGBQJSMxQ6AAoJEF2rWD2do7dNtOUH/0m8V28zyzIJG8r3rWltCQ88 podOeAzhbKqOPl+JhSOrP0YfeReT9uJyqSd+HOJegI8d0liUskvrks6a5s6kYFhA BpBdCZJTFPPM0iuPaaU4xe3nZ/hPfRJdSzSG9d70YOs6JlJR7Ti+CJ9racGTRJr+ KUEh1+x9VZPHDEoNHly+WgnJJLbthU7XdH0P2OXONsPfIivRCPZ7+OTMJw9IgZTa idaPM/QpDGEXV94baQcTzeBMlXU3c77asJPsyaL4y/5tOrHEv9Z5tpXTKQB8j1AF 90HoKUmV4C+MJuTdMgvhg9PdpvGxxAOAKgDHU7fAiPD6Yq0CbzuoP8PSUkohw28= =UkQg -----END PGP SIGNATURE----- --Sig_/ZwficfLWf8xIux4/be9b68j--