Errors in pkgconfig file lead to very cryptic build failure
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.6k
- Forks
- 1.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 33
Description
I've come across an obvious error in spandsp library .pc file. They ended up with `$(prefix)` rather then `${prefix}`. That's not meson bug, but it breaks in a very cryptic way. I also could not figure-out how to recover from that other then just wiping out the build directory.
`ninja: error: build.ninja:2608: bad $-escape (literal $ must be written as $$)`
Calling any target result in the same error.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
First inspect the reported spandsp .pc file and the generated build.ninja around line 2608, then reproduce the failure by invoking a Ninja target. Determine whether Meson should handle this malformed pkg-config input or whether the issue belongs to spandsp. Done requires a documented or tested resolution for the cryptic build failure and recovery path.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100