[MacPorts] #70273: py-re2 dependents now require c++17, portfile needs to be updated

MacPorts noreply at macports.org
Sat Jun 22 04:30:27 UTC 2024


#70273: py-re2 dependents now require c++17, portfile needs to be updated
-----------------------+--------------------
 Reporter:  ned-deily  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:
 Keywords:             |       Port:  py-re2
-----------------------+--------------------
 The py-re2 ports depend on re2 which depends on abseil which now requires
 c++17 (https://github.com/macports/macports-ports/pull/23963).  The
 current py-re2 patches for c++14:

 {{{
 [...]
 :debug:patch Executing proc-post-org.macports.patch-patch-0
 :info:patch --->  Patching setup.py: s|-std=c++11|-std=c++14|g
 :debug:patch Executing reinplace: /usr/bin/sed s|-std=c++11|-std=c++14|g
 </opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 re2/py311-re2/work/pyre2-1.0.7/setup.py >@file13
 [...]
 :info:build In file included from _re2.cc:37:
 :info:build In file included from /opt/macports/include/re2/re2.h:224:
 :info:build In file included from
 /opt/macports/include/absl/types/optional.h:39:
 :info:build /opt/macports/include/absl/utility/utility.h:82:12: error: no
 member named 'in_place_t' in namespace 'std'
 :info:build using std::in_place_t;
 :info:build       ~~~~~^
 :info:build /opt/macports/include/absl/utility/utility.h:83:12: error: no
 member named 'in_place' in namespace 'std'
 [...]

 }}}

 Suggest:


 {{{
     compiler.cxx_standard   2017

        reinplace "s|-std=c\+\+11|-std=c++17|g" ${worksrcpath}/setup.py


 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70273>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list