Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eit inject explosion with systemd on arm #64

Open
geaaru opened this issue Oct 27, 2018 · 6 comments
Open

Eit inject explosion with systemd on arm #64

geaaru opened this issue Oct 27, 2018 · 6 comments

Comments

@geaaru
Copy link
Contributor

geaaru commented Oct 27, 2018

╠  * [core-arm] adding package: systemd-239-r1.tbz2Traceback (most recent call last):
  File "/usr/lib/entropy/lib/entropy/server/interfaces/main.py", line 6924, in add_packages_to_repository
    repository_id, package_filepaths, inject = inject)
  File "/usr/lib/entropy/lib/entropy/server/interfaces/main.py", line 6146, in _package_injector
    restricted_callback = _package_injector_check_restricted)
  File "/usr/lib/entropy/lib/entropy/spm/plugins/interfaces/portage_plugin/__init__.py", line 1428, in extract_package_metadata
    extract_path = pkg_dir, catch_empty = False)
  File "/usr/lib/entropy/lib/entropy/tools.py", line 2159, in uncompress_tarball
    for tarinfo in tar:
  File "/usr/lib/python2.7/tarfile.py", line 2510, in next
    tarinfo = self.tarfile.next()
  File "/usr/lib/python2.7/tarfile.py", line 2358, in next
    tarinfo = self.tarinfo.fromtarfile(self)
  File "/usr/lib/python2.7/tarfile.py", line 1254, in fromtarfile
    return obj._proc_member(tarfile)
  File "/usr/lib/python2.7/tarfile.py", line 1276, in _proc_member
    return self._proc_pax(tarfile)
  File "/usr/lib/python2.7/tarfile.py", line 1406, in _proc_pax
    value = value.decode("utf8")
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 8: invalid start byte
@geaaru
Copy link
Contributor Author

geaaru commented Oct 27, 2018

I reproduce this on amd64 with py2.7. It seems a python issue. With py3.6 (at least on amd64) works fine.
I try to upgrade to py3.6 also for ARM arch.

@Enlik
Copy link
Member

Enlik commented Nov 4, 2018

Confirmed with sys-apps/systemd-239-r2.tbz2 built for amd64.

@Enlik
Copy link
Member

Enlik commented Nov 5, 2018

  • The package uses the "pax" tar format.
  • The problem is with the entries:
filename item(s)
./var/log/journal SCHILY.xattr.system.posix_acl_default, SCHILY.xattr.system.posix_acl_access
./var/log/journal/remote SCHILY.xattr.system.posix_acl_default, SCHILY.xattr.system.posix_acl_access
./var/log/journal/remote/.keep_sys-apps_systemd-0 SCHILY.xattr.system.posix_acl_access

which cannot be decoded as utf8.

  • Tarfile from Python 2.7 cannot cope with that.

@Enlik
Copy link
Member

Enlik commented Nov 5, 2018

It was likely fixed with https://bugs.python.org/issue8633 ("tarfile doesn't support undecodable filename in PAX format"), commit python/cpython@1465cc2, not for Python 2. Issue for Python 2 is https://bugs.python.org/issue26740.

@geaaru
Copy link
Contributor Author

geaaru commented Nov 16, 2018

I confirm that with py3.6 all works fine. I close issue.

@geaaru geaaru closed this as completed Nov 16, 2018
@mudler mudler reopened this Nov 16, 2018
@mudler
Copy link
Member

mudler commented Nov 16, 2018

Let it open to keep track of it, I still see it in amd64 builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants