Skip to content

Commit

Permalink
gcc[8-devel]: use generic SDK if needed
Browse files Browse the repository at this point in the history
on the newest systems, where the SDK is
changing rapidly, use a generic SDK reference

this changes MacOSX11.x or 12.x sdks  to MacOSX.sdk
  • Loading branch information
kencu committed Jan 31, 2021
1 parent 3d5f5e5 commit e8866c5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 5 additions & 3 deletions lang/gcc-devel/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if { ${build_arch} eq "arm64" } {

# Version must follow same scheme as with GCC snapshots below <version>-<commit-date>
version 11-20210122
revision 0
revision 1
subport libgcc-devel { revision 0 }

checksums rmd160 1a67cfb42f9b575345762be65089898e4e176079 \
Expand All @@ -44,7 +44,7 @@ if { ${build_arch} eq "arm64" } {
# Use regular GCC releases and snapshsots

version 11-20210124
revision 0
revision 1
subport libgcc-devel { revision 0 }

checksums rmd160 451a8bada81f735defd58f5b6217d2c5c828c188 \
Expand Down Expand Up @@ -166,7 +166,9 @@ pre-configure {
#
# https://trac.macports.org/ticket/53726
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
configure.args-append --with-sysroot="${configure.sdkroot}"

# if the sdkroot is one of the current, rapidly changing SDKS, use the generic one
configure.args-append --with-sysroot="[regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} {MacOSX.sdk}]"
}

}
Expand Down
6 changes: 4 additions & 2 deletions lang/gcc10/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PortGroup conflicts_build 1.0
epoch 5
name gcc10
version 10.2.0
revision 4
revision 5
subport libgcc10 { revision 3 }
platforms darwin
categories lang
Expand Down Expand Up @@ -146,7 +146,9 @@ pre-configure {
#
# https://trac.macports.org/ticket/53726
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
configure.args-append --with-sysroot="${configure.sdkroot}"

# if the sdkroot is one of the current, rapidly changing SDKS, use the generic one
configure.args-append --with-sysroot="[regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} {MacOSX.sdk}]"
}

}
Expand Down
4 changes: 2 additions & 2 deletions lang/gcc8/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PortGroup xcode_workaround 1.0
epoch 4
name gcc8
version 8.4.0
revision 2
revision 3
subport libgcc8 { revision 1 }
platforms darwin
categories lang
Expand Down Expand Up @@ -144,7 +144,7 @@ pre-configure {
#
# https://trac.macports.org/ticket/53726
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
configure.args-append --with-sysroot="${configure.sdkroot}"
configure.args-append --with-sysroot="[regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} {MacOSX.sdk}]"
}

# TODO: Remove when base automatically creates configure.dir (2.2.1?).
Expand Down
4 changes: 2 additions & 2 deletions lang/gcc9/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PortGroup xcode_workaround 1.0
epoch 3
name gcc9
version 9.3.0
revision 4
revision 5
subport libgcc9 { revision 3 }
platforms darwin
categories lang
Expand Down Expand Up @@ -137,7 +137,7 @@ pre-configure {
#
# https://trac.macports.org/ticket/53726
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
configure.args-append --with-sysroot="${configure.sdkroot}"
configure.args-append --with-sysroot="[regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} {MacOSX.sdk}]"
}

}
Expand Down

0 comments on commit e8866c5

Please sign in to comment.