Skip to content

Commit

Permalink
fpm, fortran PG: avoid gcc14 until next release of fpm
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored and reneeotten committed Jul 7, 2024
1 parent f6bbf9e commit dc70059
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
9 changes: 9 additions & 0 deletions _resources/port1.0/group/fortran-1.0.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ if {${os.major} < 14} {
git.cmd ${prefix}/bin/git
}

# https://github.com/fortran-lang/fpm/issues/1059
# Drop this upon the next release of FPM:
compiler.blacklist-append \
macports-gcc-14
if {${os.platform} ne "darwin" || ${os.major} > 9} {
default_variants-append \
+gcc13
}

# Clang of 10.7 fails with multiple packages: error: invalid instruction mnemonic 'cvtsi2sdl'
compiler.blacklist-append \
*gcc-4.* {clang < 500}
Expand Down
15 changes: 8 additions & 7 deletions devel/fpm/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ if {${os.platform} eq "darwin" && ${os.major} < 13} {
git.cmd ${prefix}/bin/git
}

# Drop this once old systems are moved to the modern gcc:
if {${os.platform} eq "darwin" && ${os.major} < 10} {
depends_run-append port:gcc7
} else {
depends_run-append port:gcc13
}

patchfiles patch-install.diff

post-patch {
Expand All @@ -48,6 +41,14 @@ post-patch {
file attributes ${worksrcpath}/install.sh -permissions +x
}

# https://github.com/fortran-lang/fpm/issues/1059
# Drop this block upon the next release. Also drop it from fortran PG.
compiler.blacklist-append \
macports-gcc-14
if {${os.platform} ne "darwin" || ${os.major} > 9} {
default_variants +gcc13
}

# Xcode clang of 10.7 fails with error: invalid instruction mnemonic 'cvtsi2ssl'
compiler.blacklist-append \
{clang < 500} {*gcc-[34].*} {macports-gcc-[56]}
Expand Down

0 comments on commit dc70059

Please sign in to comment.