Closed Bug 1783570 Opened 2 years ago Closed 2 years ago

Checking for pkg-config in embedder build broken on macOS

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1776255

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.

Blocks: sm-embedding

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.

Assignee: nobody → philip.chimento
Status: NEW → ASSIGNED

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.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: