sources can't extract tar.xz archive
Metadata
Current evaluation
Snapcraft 2.8.4 fails to extract a tar.xz source (transmission-2.92) with a KeyError on a missing symlink target during tarfile.extractall. 10+ years old, no maintainer response; traceback references code paths no longer present in the current codebase.
Suggested action: close stale
Reason: The issue is 10+ years old (last activity ~8.5 years ago, 0 comments) and targets Snapcraft 2.8.4, a long-deprecated release. The traceback references snapcraft/internal/sources.py and snapcraft/_baseplugin.py, which no longer exist in the current codebase (now organized under snapcraft/parts/ and snapcraft/commands/), so the reported code path is no longer applicable.
Impact:
30
Quick Win:
18.0
Staleness:
95
Complexity:
40
Confidence:
60
Support Request:
15
Issue body
That's the trace from Snapcraft 2.8.4
```
"GET /files/transmission-2.92.tar.xz HTTP/1.1" 200 3378116
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 31, in <module>
snapcraft.main.main()
File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 146, in main
return run(args, project_options)
File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 193, in run
lifecycle.snap(project_options, args['<directory>'], args['--output'])
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 240, in snap
snap = execute('strip', project_options)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 82, in execute
_Executor(config, project_options).run(step, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 111, in run
self._run_step(step, part, part_names, dirty, recursed)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 149, in _run_step
getattr(part, step)()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler.py", line 259, in pull
self.code.pull()
File "/usr/lib/python3/dist-packages/snapcraft/_baseplugin.py", line 120, in pull
sources.get(self.sourcedir, self.build_basedir, self.options)
File "/usr/lib/python3/dist-packages/snapcraft/internal/sources.py", line 280, in get
handler.pull()
File "/usr/lib/python3/dist-packages/snapcraft/internal/sources.py", line 188, in pull
self.provision(self.source_dir)
File "/usr/lib/python3/dist-packages/snapcraft/internal/sources.py", line 212, in provision
self._extract(tarball, dst)
File "/usr/lib/python3/dist-packages/snapcraft/internal/sources.py", line 247, in _extract
tar.extractall(members=filter_members(tar), path=dst)
File "/usr/lib/python3.5/tarfile.py", line 1995, in extractall
numeric_owner=numeric_owner)
File "/usr/lib/python3.5/tarfile.py", line 2037, in extract
numeric_owner=numeric_owner)
File "/usr/lib/python3.5/tarfile.py", line 2115, in _extract_member
self.makelink(tarinfo, targetpath)
File "/usr/lib/python3.5/tarfile.py", line 2202, in makelink
self._extract_member(self._find_link_target(tarinfo),
File "/usr/lib/python3.5/tarfile.py", line 2369, in _find_link_target
raise KeyError("linkname %r not found" % linkname)
KeyError: "linkname 'transmission-2.92/qt/icons/Faenza/actions/scalable/small/list-remove.svg' not found"
```
But I can extract the archive just fine from the command line using the xf flags
The snapcraft config
```
transmission:
plugin: autotools
source: https://download.transmissionbt.com/files/transmission-2.92.tar.xz
source-type: tar
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
30
Quick Win:
18.0
Staleness:
95
Complexity:
40
Confidence:
60
Support Request:
15
|
close stale | Snapcraft 2.8.4 fails to extract a tar.xz source (transmission-2.92) with a KeyError on a missing symlink target during tarfile.extractall. 10+ years old, no maintainer response; traceback references code paths no longer present in the current codebase. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
30
Confidence:
95
Support Request:
10
|
close stale | Snapcraft 2.8.4 fails to extract tar.xz archives with a KeyError during symlink resolution. Reported over 10 years ago with no maintainer response. The affected version and Python runtime are long deprecated. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
90
Support Request:
5
|
close stale | Snapcraft 2.8.4 fails to extract tar.xz archives due to a Python tarfile KeyError. Unaddressed for over 8 years with no maintainer interaction. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
25
Confidence:
95
Support Request:
10
|
close stale | Snapcraft 2.8.4 fails to extract a tar.xz archive due to a Python tarfile KeyError. The report is over 10 years old, references unsupported software, and has had no maintainer interaction. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
20
Confidence:
95
Support Request:
5
|
close stale | Snapcraft fails to extract tar.xz archives with symlinks, raising a KeyError in Python's tarfile module. The report is stale with zero comments and no activity in over eight years. Needs triage and reproduction. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1899311 tarfile.ReadError: unexpected end of data | snapcraft (launchpad) | open | snapcraft pull fails with tarfile.ReadError 'unexpected end of data' when extracting a local tar source. 5+ years old, snapcraft 2.43.1, zero comments, no maintainer interaction. Likely a truncated/corrupt tar file on the user's side, not a snapcraft defect. |