sketchybar: switch to apple-sdk_15#352620
Conversation
|
a2bc081 to
15180ee
Compare
Check version on build and skip calling --help since it doesn't return version.
18db6ad to
c5d7cb7
Compare
|
c5d7cb7 to
0e63afb
Compare
|
Updating per new understanding of the codebase and the darwinMinVersionHook. The highest minimum available feature check is SDK 14. Setting that as the minSDK version. |
|
If upstream use availability checks why do we need to set a minimum version? |
Based on our other conversation, I thought the logic was basically "this should be built with the latest SDK available to get all features, but because they have code that relies on SDK 14 it can't be built by anything lower so that's the minimum we set" ? Does look like Felix sets a bunch of checks though https://github.com/search?q=repo%3AFelixKratz%2FSketchyBar%20__MAC_OS_X_VERSION_MAX_ALLOWED&type=code but I saw these https://github.com/search?q=repo%3AFelixKratz%2FSketchyBar%20__builtin_available(macOS%2014.0%2C%20*)&type=code that matched our reason for setting it to what was gonna compile but it must be fine if we hadn't been building it with a higher SDK before... |
|
Ah, I see the confusion. Okay, let’s have a crack at explaining this again – and I do appreciate getting the opportunity to do so, because we need to figure out how to explain this to packagers!:
If you want to support building with the macOS 11 SDK, deploying down to 10.15, but optionally using APIs up to macOS 13, then you need to guard your tl;dr: Set the SDK so that all used APIs are available, even if they’re behind Please do let me know if anything is still confusing, because honestly it’s fairly confusing and we need to figure out how to explain it to people. |
c5d7cb7 to
8de7d45
Compare
Upstream uses availability checks for different features. Lets not hold back functionality by building with latest SDK available.
8de7d45 to
52ba81f
Compare
|
|
@emilazy this one should be good now. |
Things done
Bump SDK to 15, upstream uses available checks to determine functionality based on available SDK.
ie: https://github.com/FelixKratz/SketchyBar/blob/ed1684d348fc4d4319c7f9835141524c524bacb3/src/window.c#L240-L250
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.