Stage-packages fails at unpack_stage_packages when installing some packages
Metadata
Current evaluation
Stage-package unpacking was fixed upstream by canonical/craft-parts#215, merged as cf1004fc, correcting symlink normalization for OpenSSL paths.
Resolution: closed resolved
Reason: The maintainer identified craft-parts PR #215 as the fix; it was merged in commit cf1004fc with the implementation commit 45fe13c0 normalizing unpacked package symlinks.
Evaluated by: mr-cal-bot
No scores available.
Issue body
```yaml
name: test
version: 1.0
base: ubuntu:20.04
parts:
part1:
plugin: nil
stage-packages:
- ca-certificates
```
this example _rockcraft.yaml_ fails with the following error while executing `rockcraft pack` (in the `unpack_stage_packages` function):
```sh
ValueError: '/root/parts/part1/install/etc/ssl/openssl.cnf' does not start with '/root/parts/part1/install/usr/lib/ssl'
```
See the full log [rockcraft-20220422-181812.655447.log](https://github.com/canonical/rockcraft/files/8542481/rockcraft-20220422-181812.655447.log).
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Stage-package unpacking was fixed upstream by canonical/craft-parts#215, merged as cf1004fc, correcting symlink normalization for OpenSSL paths. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by canonical/craft-parts#215, merged in commit cf1004fc, correcting symlink normalization when unpacking stage packages. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by integrating craft-parts PR #215. The unpack_stage_packages ValueError during rockcraft pack when installing packages like ca-certificates is resolved. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by integrating craft-parts PR #215, resolving the path mismatch error in unpack_stage_packages that occurred during ca-certificates installation. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by integrating craft-parts PR #215, which resolves the path validation error in unpack_stage_packages that caused rockcraft pack to fail when installing certain packages. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed by integrating craft-parts PR #215, which resolves the ValueError in unpack_stage_packages triggered when installing packages like ca-certificates. Issue closed. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-parts#215
(confidence 99%)
Merged upstream fix for symlink normalization, later integrated into Rockcraft.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1686481 stage-packages does not handle unmet dependencies | snapcraft (launchpad) | closed | Fixed by canonical/craft-parts#258 (commit 8d0ee1cd), making stage-packages use repositories for the build host architecture when resolving cross-architecture packages. | |
| #258 packages: fetch stage-packages from host arch's repo | craft-parts | merged | Merged in canonical/craft-parts#258 via ef86c802, fetching stage-packages from host-architecture repositories to fix cross-compilation failures. |