diff options
| author | Vedang Manerikar <ved.manerikar@gmail.com> | 2024-04-05 18:41:20 +0530 |
|---|---|---|
| committer | Vedang Manerikar <ved.manerikar@gmail.com> | 2024-04-05 18:41:20 +0530 |
| commit | a1048bceb2bd3f635437b0f2bfac27cae8c2dabc (patch) | |
| tree | 1bbcbff839ad1d01c1845b52290f7c6b2002eeb2 /server | |
| parent | aee2f6d6413c3ed510baa5beeacb122a1ef406f7 (diff) | |
Fix: Update PKG_CONFIG_PATH to add glib headers
Copying my comment from the Github issue:
> The problem is that something seems to have changed in the way brew
> installs glib, due to which pkg-config does not find the glib headers.
>
> To fix this, I have updated the autobuild script to manually modify
> the PKG_CONFIG_PATH. This should fix the problem.
>
> I will test the change and close this issue via the commit once I push
> it. You will need to update your version of pdf-tools and then restart
> Emacs to trigger the re-build again. (It might take a few hours for
> Melpa to pick up the latest version of the pdf-tools)
>
> I will create a linked issue to investigate a better long-term
> solution to this problem.
Closes: #269
Diffstat (limited to 'server')
| -rwxr-xr-x | server/autobuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/autobuild b/server/autobuild index 92480af..91ee3a5 100755 --- a/server/autobuild +++ b/server/autobuild @@ -362,9 +362,12 @@ os_macos() { PKGARGS=install PACKAGES="pkg-config poppler autoconf automake" PKG_INSTALL_AS_ROOT= - # brew installs libffi as keg-only, meaning we need to set - # PKG_CONFIG_PATH manually so configure can find it - export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$(brew --prefix libffi)/lib/pkgconfig/:$(brew --prefix zlib)/lib/pkgconfig/" + # We need to set PKG_CONFIG_PATH manually so configure can + # find these dependencies. I don't know why (one possible + # explanation has to do with 'keg-only' installs). If you do, + # please update: + # https://github.com/vedang/pdf-tools/issues/270 + export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$(brew --prefix libffi)/lib/pkgconfig/:$(brew --prefix zlib)/lib/pkgconfig/:$(brew --prefix glib)/lib/pkgconfig/" elif which port >/dev/null 2>&1; then PKGCMD=port PKGARGS=install |
