[SRU] Make sbuild usable for '<email address hidden>' users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sbuild (Ubuntu) |
Fix Released
|
High
|
Carlos Nihelton | ||
Noble |
Fix Committed
|
High
|
Carlos Nihelton | ||
Oracular |
In Progress
|
Low
|
Carlos Nihelton | ||
Plucky |
Fix Committed
|
Medium
|
Carlos Nihelton |
Bug Description
[Impact]
With the increasing adoption of tools like authd, it's very likely that Linux desktop users in corporate environments end up with their usernames like '<email address hidden>', what doesn't play nice with sbuild/schroot. Without properly escaping the username, the '@' character ends up being interpreted as a string interpolation what breaks the lock_chroot() subroutine.
Fore more information about the issue, please check the upstream bug: https:/
[ Test plan ]
1. Make sure to have a user account containing the '@' character in its name, such as '<email address hidden>'.
2. Make sure to have a schroot environment ready. `mk-sbuild oracular` for example to create one for oracular. Note: the mk-sbuild command is provided by the ubuntu-dev-tools package, so make sure to have it installed.
3. Retrieve the sources of a simple package: `pull-lp-source hello noble`
4. Build the binary package with sbuild: `cd hello-2.10/ && sbuild -d noble-amd64` (adjust the schroot environment name according to your computer's architecture)
Expected results without the patches herein proposed is a failure like:
```
I: NOTICE: Log filtering will replace 'var/run/
Possible unintended interpolation of @org in string at -e line 50.
Global symbol "@org" requires explicit package name (did you forget to declare "my @org"?) at -e line 50.
Execution of -e aborted due to compilation errors.
E: Error locking chroot session: skipping livecd-rootfs
```
Building the package should proceed normally with the patches applied.
[ Where problems could occur ]
The scope of the changes herein proposed is so small and self-contained that I
don't expect any issues arising from it under any circumstances.
[ Other Info ]
I'm skipping 'Questing', as I expect it to receive the fix via debian merges,
sbuild version 0.89.2 (just accepted into Debian unstable) contains this patch (alongside other stuff).
description: | updated |
description: | updated |
Changed in sbuild (Ubuntu): | |
importance: | Undecided → High |
Changed in sbuild (Ubuntu Noble): | |
importance: | Undecided → High |
Changed in sbuild (Ubuntu Oracular): | |
importance: | Undecided → Medium |
importance: | Medium → Low |
Changed in sbuild (Ubuntu Plucky): | |
importance: | Undecided → Medium |
Changed in sbuild (Ubuntu): | |
assignee: | nobody → Carlos Nihelton (cnihelton) |
Changed in sbuild (Ubuntu Noble): | |
assignee: | nobody → Carlos Nihelton (cnihelton) |
Changed in sbuild (Ubuntu Oracular): | |
assignee: | nobody → Carlos Nihelton (cnihelton) |
Changed in sbuild (Ubuntu Plucky): | |
assignee: | nobody → Carlos Nihelton (cnihelton) |
Changed in sbuild (Ubuntu): | |
status: | New → In Progress |
Changed in sbuild (Ubuntu Noble): | |
status: | New → In Progress |
Changed in sbuild (Ubuntu Oracular): | |
status: | New → In Progress |
Changed in sbuild (Ubuntu Plucky): | |
status: | New → In Progress |
Here's the debdiff for plucky