Skip to content

Commit

Permalink
icu: update C++ version of dependents
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram committed Dec 22, 2024
1 parent ae334b7 commit a72ebfb
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 12 deletions.
5 changes: 3 additions & 2 deletions devel/boost169/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ compiler.blacklist-append {clang > 1100}
# Further: Building Boost using C++11 compliance does not seem to then
# require ports depending on Boost to also require C++11 compliance,
# and requiring it does make such building easier for those ports.
configure.cxxflags-append -std=gnu++11
compiler.cxx_standard 2011
configure.cxxflags-append -std=gnu++17
# ICU requires C++17
compiler.cxx_standard 2017

# It turns out that ccache and distcc can produce boost libraries that, although they
# compile without warning, have all sorts of runtime errors especially with pointer corruption.
Expand Down
5 changes: 3 additions & 2 deletions devel/boost171/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ mpi.setup -gcc
# Further: Building Boost using C++11 compliance does not seem to then
# require ports depending on Boost to also require C++11 compliance,
# and requiring it does make such building easier for those ports.
configure.cxxflags-append -std=gnu++11
compiler.cxx_standard 2011
configure.cxxflags-append -std=gnu++17
# ICU requires C++17
compiler.cxx_standard 2017

# It turns out that ccache and distcc can produce boost libraries that, although they
# compile without warning, have all sorts of runtime errors especially with pointer corruption.
Expand Down
5 changes: 3 additions & 2 deletions devel/boost176/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ mpi.setup -gcc
# Further: Building Boost using C++11 compliance does not seem to then
# require ports depending on Boost to also require C++11 compliance,
# and requiring it does make such building easier for those ports.
configure.cxxflags-append -std=gnu++11
compiler.cxx_standard 2011
configure.cxxflags-append -std=gnu++17
# ICU requires C++17
compiler.cxx_standard 2017

# Error: integer value is outside the valid range of values for this enumeration type
# See: https://trac.macports.org/ticket/69103
Expand Down
5 changes: 3 additions & 2 deletions devel/boost178/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ mpi.setup -gcc
# Further: Building Boost using C++11 compliance does not seem to then
# require ports depending on Boost to also require C++11 compliance,
# and requiring it does make such building easier for those ports.
configure.cxxflags-append -std=gnu++11
compiler.cxx_standard 2011
configure.cxxflags-append -std=gnu++17
# ICU requires C++17
compiler.cxx_standard 2017

# Error: integer value is outside the valid range of values for this enumeration type
# See: https://trac.macports.org/ticket/69103
Expand Down
5 changes: 3 additions & 2 deletions devel/boost181/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ mpi.setup -gcc
# Further: Building Boost using C++11 compliance does not seem to then
# require ports depending on Boost to also require C++11 compliance,
# and requiring it does make such building easier for those ports.
configure.cxxflags-append -std=gnu++11
compiler.cxx_standard 2011
configure.cxxflags-append -std=gnu++17
# ICU requires C++17
compiler.cxx_standard 2017

# This flag fixes the return type of unsetenv(3)
# See: https://trac.macports.org/ticket/63121
Expand Down
7 changes: 7 additions & 0 deletions lang/php/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,13 @@ subport ${php}-intl {
# icu >= 74 requires C++17
compiler.cxx_standard 2017

if {[vercmp ${branch} < 8.2]} {
post-patch {
reinplace "s|PHP_CXX_COMPILE_STDCXX(11,|PHP_CXX_COMPILE_STDCXX(17,|" \
${worksrcpath}/ext/intl/config.m4
}
}

platform darwin {
if {(${os.major} == 10 || ${os.major} == 11) && [vercmp ${branch} >= 7.1] && [vercmp ${branch} < 7.4]} {
# Need to investigate how this was fixed for php 7.4 and
Expand Down
5 changes: 3 additions & 2 deletions tex/texlive-bin/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ use_xz yes
distname texlive-source-${version}-stripped
worksrcdir ${distname}

# ICU requires C++17
compiler.cxx_standard \
2011
2017


set tlpkgdistname tlpkg-TeXLive-${version}
Expand Down Expand Up @@ -236,7 +237,7 @@ foreach arch {arm64 x86_64 i386 ppc ppc64} {
# work around differences between libc++ and libstdc++ headers building with clang
# https://trac.macports.org/ticket/54358#comment:26
if {[string match *clang* ${configure.cxx}]} {
configure.cxxflags-append -std=c++11
configure.cxxflags-append -std=c++17
configure.cxxflags-append -Wno-reserved-user-defined-literal
}

Expand Down

0 comments on commit a72ebfb

Please sign in to comment.