[MacPorts] #47553: compilers portgroup: add option for gcc5
#47553: compilers portgroup: add option for gcc5 --------------------------+----------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: compilers --------------------------+----------------------- The compilers portgroup needs to add an option for gcc5, and in the future gcc6. This points out a defect in the portgroup, in which the gcc_versions variable assumes the first digit of the version number is "4", and similarly that the clang_versions variable assumes the first digit is "3". -- Ticket URL: <https://trac.macports.org/ticket/47553> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: compilers | ---------------------------+-------------------- Comment (by ryandesign@…): Also, please add clang 3.6. -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: compilers | ---------------------------+-------------------- Comment (by sean@…): Yep, agreed. -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: compilers | ---------------------------+-------------------- Comment (by eborisch@…): Here's a braindead patch to support this. Any thoughts? {{{#!diff Index: compilers-1.0.tcl =================================================================== --- compilers-1.0.tcl (revision 135902) +++ compilers-1.0.tcl (working copy) @@ -72,6 +72,27 @@ set cdb(gcc4$v,f90) ${prefix}/bin/gfortran-mp-4.$v } +# build database of gcc {5..6} compiler attributes +set gccN_versions {5 6} +foreach v ${gccN_versions} { + lappend compilers.gcc_variants gcc$v + set cdb(gcc$v,variant) gcc$v + set cdb(gcc$v,compiler) macports-gcc-$v + set cdb(gcc$v,descrip) "MacPorts gcc $v" + set cdb(gcc$v,depends) port:gcc$v + set cdb(gcc$v,dependsl) path:lib/libgcc/libgcc_s.1.dylib:libgcc + set cdb(gcc$v,dependsd) port:g95 + set cdb(gcc$v,dependsa) gcc$v + set cdb(gcc$v,conflict) "gfortran g95" + set cdb(gcc$v,cc) ${prefix}/bin/gcc-mp-$v + set cdb(gcc$v,cxx) ${prefix}/bin/g++-mp-$v + set cdb(gcc$v,cpp) ${prefix}/bin/cpp-mp-$v + set cdb(gcc$v,objc) ${prefix}/bin/gcc-mp-$v + set cdb(gcc$v,fc) ${prefix}/bin/gfortran-mp-$v + set cdb(gcc$v,f77) ${prefix}/bin/gfortran-mp-$v + set cdb(gcc$v,f90) ${prefix}/bin/gfortran-mp-$v +} + set clang_versions {0 1 2 3 4 5} foreach v ${clang_versions} { lappend compilers.clang_variants clang3$v }}} -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: compilers | ---------------------------+-------------------- Comment (by ryandesign@…): Can't there be just a single block that deals with all versions of gcc? -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: compilers | ---------------------------+-------------------- Comment (by sean@…): Thanks for the patch. I will really try to look at this today. -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: compilers | ---------------------------+-------------------- Comment (by sean@…): Replying to [comment:7 ryandesign@…]:
Can't there be just a single block that deals with all versions of gcc?
I assume because the logic of converting '49' -> '4.9' is annoying :-) I've made it one block and will push after running some tests. -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: compilers | ---------------------------+-------------------- Changes (by sean@…): * status: new => closed * resolution: => fixed Comment: Pushed as r136118. -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: compilers | ---------------------------+-------------------- Comment (by mmoll@…): You probably need to make corresponding changes in the openmpi-* ports. For example, `port install arrack +gcc5 +openmpi` won't work currently. Should I file a separate ticket for that? -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#47553: compilers portgroup: add option for gcc5 ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: compilers | ---------------------------+-------------------- Comment (by sean@…): Replying to [comment:11 mmoll@…]:
You probably need to make corresponding changes in the openmpi-* ports. For example, `port install arrack +gcc5 +openmpi` won't work currently. Should I file a separate ticket for that?
I was waiting on #47541 to complete, then I'd copy Eric's work into openmpi :-) -- Ticket URL: <https://trac.macports.org/ticket/47553#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts