Checking for pkg-config in embedder build broken on macOS
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
People
(Reporter: ptomato, Assigned: ptomato)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The fix for Bug 513617 broke SpiderMonkey embedder builds on macOS. check_prog() is never executed for pkg-config when target.os is "OSX", so pkg_config is always None and subsequent usages of things like pkg_check_modules() which depend on the pkg_config target will fail with the following message:
ERROR: *** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
In addition, this error is misleading, because it occurs even when the pkg-config binary is in the path and the PKG_CONFIG environment variable is set.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
SpiderMonkey embedder builds require checking for pkg-config. Without
this, the configure step will fail with a misleading error message about
pkg-config not existing.
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
I'm guessing this patch is not quite what you want, but this is what I'm using downstream for now and I'd love to know how to adapt it to get it upstream.
Updated•2 years ago
|
Description
•