Looking at the macOS GHA, I noticed some possible issues in the dependency configuration:

- name: Install dependencies (Mac OS, homebrew) if: runner.os == 'macOS' # Subversion is being installed here only to get the Serf library, # since there is no separate package. run: | brew install apr apr-util expat sqlite ninja subversion $brew_prefix = "$(& brew --prefix)" ls -r "$brew_prefix/opt/subversion/libexec/serf" $PKG_CONFIG_PATH = @( "$brew_prefix/opt/apr/lib/pkgconfig", "$brew_prefix/opt/apr-util/lib/pkgconfig", "$brew_prefix/opt/expat/lib/pkgconfig", "$brew_prefix/opt/sqlite/lib/pkgconfig", "$brew_prefix/opt/subversion/libexec/serf/lib/pkgconfig") ` -Join ":" "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $env:GITHUB_ENV

Some issues here, in no particular order:

 * The official name of the OS is "macOS", not "Mac OS", and the
   package manager is "Homebrew", not "homebrew". Just nitpicking here.
 * Regarding the actual dependencies:
     o brew install httpd to enable davautocheck and building the
       server modules;
     o install lz4 and utf8proc, Homebrew has recent versions whereas
       the ones included in Subversion tend to be stale;
     o the expat install is unnecessary, Homebrew's apr-util uses the
       system /usr/lib/libexpat and /usr/lib/libiconv, not the brewed
       version;
     o you should, just in case, brew install pkgconf, since otherwise
       who knows where pkg-config is really coming from.
 * Using $(brew --prefix) and constructing the paths from there is not
   necessarily correct. Use $(brew --prefix /package/) instead, for
   each installed dependency.
 * $(brew --prefix)/lib/pkgconfig should be in the PKG_CONFIG_PATH,
   it's the default in Homebrew and you're overriding it.


-- Brane

Reply via email to