"error: failed to acquire package cache lock" in sbuild
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cargo (Ubuntu) |
Fix Released
|
Undecided
|
Canonical Foundations Team | ||
Xenial |
Fix Released
|
Undecided
|
Canonical Foundations Team | ||
Bionic |
Fix Released
|
Undecided
|
Canonical Foundations Team | ||
Disco |
Won't Fix
|
Undecided
|
Canonical Foundations Team |
Bug Description
[Impact]
All packages using cargo (rust's package manager) to build in Launchpad will FTBFS because cargo tries to acquire a lock on $HOME/.cargo, but $HOME is set to /sbuild-nonexistent in sbuild.
This includes the thunderbird 60.9.1+build1 SRU tracked by bug #1850651.
[Test Case]
In a xenial/disco virtual machine:
sudo apt install cargo
cd `mktemp -d`
export HOME=/nonexistent
cargo init --name foobar
cargo build
This should succeed. With the unpatched version currently in xenial/disco, it fails with "error: failed to acquire package cache lock".
[Regression Potential]
Low. This cherry-picks one single upstream commit that addresses only this bug.
[Original Description]
Upstream issue: https:/
This breaks firefox and thunderbird builds in eoan:
export CARGO_HOME=
cargo install --path . --bin cbindgen --root ../../cbindgen
error: failed to acquire package cache lock
Caused by:
failed to open: /sbuild-
Caused by:
Permission denied (os error 13)
The following commit needs to be backported as a distro patch: https:/
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: cargo 0.37.0-3ubuntu1
ProcVersionSign
Uname: Linux 5.0.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu7
Architecture: amd64
Date: Fri Aug 23 14:24:46 2019
SourcePackage: cargo
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in cargo (Ubuntu Xenial): | |
status: | New → Fix Committed |
Changed in cargo (Ubuntu Bionic): | |
status: | New → Fix Committed |
Changed in cargo (Ubuntu Disco): | |
status: | New → Fix Committed |
Changed in cargo (Ubuntu Xenial): | |
status: | Fix Committed → In Progress |
Changed in cargo (Ubuntu Disco): | |
status: | Fix Committed → In Progress |
description: | updated |
Changed in cargo (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
Changed in cargo (Ubuntu Bionic): | |
status: | Fix Released → Fix Committed |
Changed in cargo (Ubuntu Disco): | |
status: | Fix Committed → Won't Fix |
Changed in cargo (Ubuntu Xenial): | |
status: | Fix Committed → Fix Released |
Changed in cargo (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
I confirm https:/ /launchpad. net/ubuntu/ +source/ cargo/0. 37.0-3ubuntu2 fixed this on eoan.
But other stable series are affected too.
@Michael, can you please add the patch to the xenial, bionic and disco builds? Thanks!