From owner-freebsd-ports-bugs@freebsd.org Sun Jan 29 01:44:39 2017 Return-Path: Delivered-To: freebsd-ports-bugs@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 AD7E3CC24C3 for ; Sun, 29 Jan 2017 01:44:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 7BCAC136A for ; Sun, 29 Jan 2017 01:44:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0T1icxm043125 for ; Sun, 29 Jan 2017 01:44:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216562] Mk/Uses/compiler.mk tramples over USE_GCC value with compiler:gcc-c++11-lib Date: Sun, 29 Jan 2017 01:44:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mandree@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? exp-run? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 01:44:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216562 Bug ID: 216562 Summary: Mk/Uses/compiler.mk tramples over USE_GCC value with compiler:gcc-c++11-lib Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: mandree@FreeBSD.org CC: bapt@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, portmgr@FreeBSD.org Flags: maintainer-feedback?(portmgr@FreeBSD.org), exp-run? CC: portmgr@FreeBSD.org Issue: When USES contains compiler:gcc-c++11-lib,=20 Mk/Uses/compiler.mk will force USE_GCC=3Dyes,=20 instead of using USE_GCC?=3Dyes. Impact: This harms ports that set, for instance, USE_GCC=3D5+, by re-allowing GCC 4= .9 (which is known to miscompile rawtherapee on FreeBSD 11.0-RELEASE amd64, wh= ile GCC 5.4 is fine). Suggestion: change code to USE_GCC?=3Dyes here: .if ${_COMPILER_ARGS:Mgcc-c++11-lib} USE_GCC=3D yes # <=3D=3D=3D=3D-FIX-THIS-=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D CHOSEN_COMPILER_TYPE=3D gcc .if ${COMPILER_FEATURES:Mlibc++} CXXFLAGS+=3D -nostdinc++ -isystem /usr/include/c++/v1 LDFLAGS+=3D -L${WRKDIR} Workaround: re-set USE_GCC after .include . (See, for instance, graphics/rawtherapee[-devel]). --=20 You are receiving this mail because: You are on the CC list for the bug.=