FelixKratz / homebrew-formulae

1 stars 4 forks source link

Borders homebrew failure #8

Closed khaneliman closed 4 months ago

khaneliman commented 4 months ago

macOS 14.4 Able to build from source, fine with standard make command.

==> Upgrading felixkratz/formulae/borders
  1.5.1 -> 1.6.0

==> make
Last 15 lines from /Users/khaneliman/Library/Logs/Homebrew/borders/01.make:
    #define __API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO(__VA_ARGS__,__API_UNAVAILABLE8,__API_UNAVAILABLE7,__API_UNAVAILABLE6,__API_UNAVAILABLE5,__API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1,__API_UNAVAILABLE0,0)(__VA_ARGS__)
                                                                                                                                                                          ^
In file included from src/border.c:1:
In file included from src/border.h:3:
In file included from src/misc/helpers.h:2:
src/misc/extern.h:2:10: fatal error: 'CoreGraphics/CoreGraphics.h' file not found
#include <CoreGraphics/CoreGraphics.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 1 error generated.
In file included from src/animation.c:1:
src/animation.h:2:10: fatal error: 'CoreVideo/CoreVideo.h' file not found
#include <CoreVideo/CoreVideo.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [makefile:5: all] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/felixkratz/homebrew-formulae/issues

Worked on source:

make
mkdir bin
clang -std=c99 -O3 -g src/main.c src/parse.c src/mach.c src/hashtable.c src/events.c src/windows.c src/border.c src/animation.c  -o bin/borders -framework AppKit -framework CoreVideo -F/System/Library/PrivateFrameworks/ -framework SkyLight
khaneliman commented 4 months ago

Appears to build now...

FelixKratz commented 4 months ago

Did you figure out what is causing this? Because I remember you had this problem before: #7. Btw I removed the problematic symbol, so maybe you can now bundle it with nix.

khaneliman commented 4 months ago

Did you figure out what is causing this? Because I remember you had this problem before: #7.

No, I basically did a couple brew upgrades in a row, went and tested building source, and killed running borders and ran source version. I saw the awesome performance improvements of new version and went to try brew upgrade again and it worked.

Btw I removed the problematic symbol, so maybe you can now bundle it with nix.

Awesome! I'm going to go test my nix derivation build again today and see if I can just build through that. Thanks :)