branch: elpa/pdf-tools
commit e4b7f1f37cf59ddf025d609ffcdabe732a6e99ba
Author: Vedang Manerikar <[email protected]>
Commit: Vedang Manerikar <[email protected]>

    fix(macos): add poppler and pcre2 to PKG_CONFIG_PATH for Homebrew builds
    
    Some macOS users were experiencing build failures where pkg-config
    could not find poppler, even with Homebrew's poppler package installed.
    This occurs when Homebrew doesn't properly link the .pc files to the
    standard pkg-config search path.
    
    Fixes #299
---
 server/autobuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/autobuild b/server/autobuild
index 6166c623481..eb5d0494b51 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -399,7 +399,7 @@ os_macos() {
         # 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/"
+        export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$(brew --prefix 
poppler)/lib/pkgconfig/:$(brew --prefix libffi)/lib/pkgconfig/:$(brew --prefix 
zlib)/lib/pkgconfig/:$(brew --prefix glib)/lib/pkgconfig/:$(brew --prefix 
pcre2)/lib/pkgconfig/"
     elif which port >/dev/null 2>&1; then
         PKGCMD=port
         PKGARGS=install

Reply via email to