homebrew-amc icon indicating copy to clipboard operation
homebrew-amc copied to clipboard

Fix cairo issue

Open rcqls opened this issue 2 years ago • 4 comments

fix cairo issue due to pkg-config issue when determining GCC_PDF.

rcqls avatar Jan 13 '23 03:01 rcqls

Hey. Thanks for the workaround! I’ll investigate later to see why GCC_PDF is empty.

maelvls avatar Jan 13 '23 06:01 maelvls

Hey. Thanks for the workaround! I’ll investigate later to see why GCC_PDF is empty.

$GCC_PDF was empty because pkg-config --cflags --libs cairo was failing because depending on libpthread-stubs.

When adding in your original formula: system "pkg-config", "--cflags", "cairo" (before adding libpthread-stubs dependency)

The error message was clear (explaining why $GCC_PDF was empty).

pkg-config
--cflags
cairo

Package pthread-stubs was not found in the pkg-config search path.
Perhaps you should add the directory containing `pthread-stubs.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pthread-stubs', required by 'xcb', not found

rcqls avatar Jan 13 '23 08:01 rcqls

Oups I made a mistake: it was libpthread-stubs and not libpthread_stubs. Also it seems that it is only required in the build step.

rcqls avatar Jan 13 '23 08:01 rcqls

Thanks. I’ll try it out on my Mac and approve the change.

maelvls avatar Jan 13 '23 16:01 maelvls