Makefile: sudo make install causes permission errors on subsequent builds
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 185
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
sudo make install triggers build as root, making .build/xdr-boost owned by root. Any subsequent non-sudo build fails:
ld: can't write output file: .build/xdr-boost
Repro: make build → sudo make install → make launch-agent → fails
Cause: Dependency chain launch-agent → install → build means sudo propagates into the build step.
Fix: Remove build as a dependency of install (and install from launch-agent), so sudo is only used for the copy to /usr/local/bin.
Contributor guide
No contributing guide indexed for this repository
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
Start in the Makefile and inspect the dependency chain between launch-agent, install, and build. Reproduce with make build, sudo make install, and make launch-agent; done means installation only uses sudo for copying to /usr/local/bin and a subsequent non-sudo build no longer fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100