From owner-freebsd-fortran@freebsd.org Wed Jun 3 21:15:40 2020 Return-Path: Delivered-To: freebsd-fortran@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 61FD72F32E1 for ; Wed, 3 Jun 2020 21:15:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49chXD20P6z3TPm for ; Wed, 3 Jun 2020 21:15:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 42B8F2F32E0; Wed, 3 Jun 2020 21:15:40 +0000 (UTC) Delivered-To: fortran@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4151B2F32DF for ; Wed, 3 Jun 2020 21:15:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49chXD0rdwz3TLl for ; Wed, 3 Jun 2020 21:15:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 003ED14554 for ; Wed, 3 Jun 2020 21:15:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 053LFdvR033183 for ; Wed, 3 Jun 2020 21:15:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 053LFdTa033177 for fortran@FreeBSD.org; Wed, 3 Jun 2020 21:15:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fortran@FreeBSD.org Subject: [Bug 246887] catch Mk/Uses/fortran.mk up to bsd.gcc.mk r301973 Date: Wed, 03 Jun 2020 21:15:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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 Only Me X-Bugzilla-Who: gerald@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: linimon@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-fortran@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2020 21:15:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246887 --- Comment #6 from Gerald Pfeifer --- (In reply to Tijl Coosemans from comment #5) > We want all Fortran ports to be compiled with the same compiler and that= =20 > implies the same USE_GCC. Not doing so is asking for trouble with runtime > libraries. If a port needs a newer version it should set IGNORE directing > the user to modify his DEFAULT_VERSIONS. If it's stuck on an older versi= on > it should probably set BROKEN with a similar message. > > If I were the maintainer of bsd.gcc.mk I would do the same there. I have been moving into that direction over time (pushing hard to minimize exceptions to USE_GCC=3Dyes or USE_GCC=3Dany) and streamlining the logic further earlier this year. At this point for nearly all users GCC_DEFAULT is the only one they should ever encounter. Which is the same that USES=3Dfortran implies. Exceptions are two-fold: 1. Systems with the 13-year old GCC 4.2 in base. 2. A short list of exceptions. GCC 4.8. sysutils/memtest86+ sysutils/uefi-edk2-bhyve - in contact with maintainer GCC 7. devel/xtensa-esp32-elf - in contact with maintainer GCC 9. devel/dwarves graphics/rawtherapee lang/gcc10 lang/spidermonkey60 Item 1 above would be easy to address. Simply remove the block starting with .if ${USE_GCC} =3D=3D any && exists(/usr/bin/gcc) from Mk/bsd.gcc.mk. If have proposed this, but Mark did not like it. > It's simpler to maintain. It makes it more likely that users have only > one version of gcc installed and therefore have fewer problems with > runtime libraries which means there are fewer support questions to=20 > deal with. And marking old ports BROKEN allows us to get rid of them > faster, or it might incentivise their maintainers to fix them with newer > gcc faster. Amen. Plus users on all platforms/systems would use the same version of GCC, which is not the case for the 54 ports with USE_GCC=3Dany right now when /usr/bin/gcc is present. > Anyway, what I'm trying to say is, please don't introduce any of the > bsd.gcc.mk "magic" in fortran.mk. Making it possible to choose "10-devel" > as gcc default would be nice though. Agreed. And if you look at the evolution of bsd.gcc.mk you'll find that I managed to trim the amount of "magic" (and code) significantly. USE_GCC=3Dany is the biggest offender right now. Beyond that I cannot actually think of much more in terms of simplifications. --=20 You are receiving this mail because: You are on the CC list for the bug.=