Skip to content

Conversation

@Dave-Allured
Copy link
Contributor

@Dave-Allured Dave-Allured commented Dec 5, 2025

Description

Add -D__DARWIN_C_LEVEL=__DARWIN_C_FULL.
Tentative build fix for 10.7 and 10.8, maybe also 10.6.

Type(s)
  • bugfix
Tested on

CI only.

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • checked your Portfile with port lint?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

@Dave-Allured Dave-Allured changed the title lttoolbox: Add legacy support, macos <= 10.7 lttoolbox: Add legacy support, macos <= 10.8 Dec 5, 2025
PortGroup legacysupport 1.1

# asprintf_l, macos 10.7
legacysupport.newest_darwin_requires_legacy 11
Copy link
Contributor

@aeiouaeiouaeiouaeiouaeiouaeiou aeiouaeiouaeiouaeiouaeiouaeiou Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That won't help.

You need to append the compilation flag -D__DARWIN_C_LEVEL=__DARWIN_C_FULL for macOS 10.7 and 10.8, similar to what I did with knot-resolver.

I also see in the logs that -std=c++2b flag is being used, so it might be worth bump compiler.cxx_standard to 2023.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aeiouaeiouaeiouaeiouaeiouaeiou Thanks for the tip. See new commit.

CMakeLists.txt says only C++17 is needed. I have had trouble with advanced C++ levels. Therefore I prefer to stay at the specified level, unless there is a compelling reason to upgrade. I would assume that -std=c++2b will provide the correct support for C++17 builds.

@Dave-Allured Dave-Allured changed the title lttoolbox: Add legacy support, macos <= 10.8 lttoolbox: Fix builds <= 10.8, DARWIN_C_LEVEL Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants