[MacPorts] #69406: build shared-mime-info for deployment target 10.14 fails on macOS Sonoma

MacPorts noreply at macports.org
Tue Feb 27 00:07:23 UTC 2024


#69406: build shared-mime-info for deployment target 10.14 fails on macOS Sonoma
-------------------------------+----------------------
  Reporter:  MStraeten         |      Owner:  mascguy
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.9.1
Resolution:                    |   Keywords:
      Port:  shared-mime-info  |
-------------------------------+----------------------

Comment (by ryandesign):

 Replying to [ticket:69406 MStraeten]:
 > {{{
 > :info:build ../shared-mime-info-2.3/src/update-mime-database.cpp:809:29:
 error: '~directory_iterator' is unavailable: introduced in macOS 10.15
 > :info:build         for (auto const& dir_entry :
 std::filesystem::directory_iterator{dir}) {
 > :info:build                                    ^
 > :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__filesystem/directory_iterator.h:80:25:
 note: '~directory_iterator' has been explicitly marked unavailable here
 > :info:build   _LIBCPP_HIDE_FROM_ABI ~directory_iterator() = default;
 > }}}

 This is correct, to the extent that the code is using `std::filesystem`
 which is only available in the version of libc++ included in macOS 10.15
 and later.

 The port contains code to work around this and use a newer MacPorts libc++
 on older systems, but the condition for doing that is based on
 `${os.major}`, which is the OS version of the machine doing the building,
 when it should probably be based on `${macosx_deployment_target}` instead.

-- 
Ticket URL: <https://trac.macports.org/ticket/69406#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list