← All tasks
cppzealdocs/zeal #1602Not a task: not reproduced

Incorrect path to brew's libarchive on ARM macOS

envgap__zealdocs__zeal-1602

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
cbd3208aca598c180b17ffcb3937c4eb3b8adf7f
Manifest
src/libs/core/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

zealdocs/zeal #1602 · read the original issue
Homebrew's default location for ARM/M-series chips macOSs is `/opt/homebrew/opt/libarchive/include` (see /opt/homebrew/opt/libarchive/include). This causes the `cmake -B build` to fail because `LibArchive_INCLUDE_PATH` is set to the path homebrew uses for Intel macs).



These are the offending lines:

https://github.com/zealdocs/zeal/blob/de213a74d8bd45b40638dd6d583ef82f819c14c0/src/libs/core/CMakeLists.txt#L34-L36



It would probably be better to get brew's prefix with `$(brew --prefix)` or to predicate the prefix on the architecture.

I don't know enough CMAKE to do this myself unfortunately.



Cheers
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]