Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550006 - sys-apps/portage: quickpkg does not preserve xattrs
Summary: sys-apps/portage: quickpkg does not preserve xattrs
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 549914
  Show dependency tree
 
Reported: 2015-05-21 03:35 UTC by Zac Medico
Modified: 2015-09-22 01:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2015-05-21 03:35:41 UTC
Since quicpkg uses python's tarfile module which does not support xattrs, we have a couple of options:

1) We can still use python's tarfile if we can use it to emulate the ways that GNU tar and/or bsdtar store xattrs.

2) We can use GNU tar and/or bsdtar. The --files-from option allows us to add files without the need to copy them to a temp directory first. Special quickpkg --include-config=n handling can be implemented by creating a tree of empty config files in a temporary directory, and using the GNU tar --transform option or bsdtar -s option to correct their path in the resulting tar file.
Comment 1 Zac Medico gentoo-dev 2015-05-23 01:30:30 UTC
It appears that GNU tar represents xattrs as pax headers that python's tarfile module is capable of manipulating.
Comment 2 Zac Medico gentoo-dev 2015-05-23 07:06:48 UTC
There's a patch in the following branch:

https://github.com/zmedico/portage/tree/bug_550006

I've posted it for review here:

https://archives.gentoo.org/gentoo-portage-dev/message/c57cfb9ca6582f39a224a691b068fae2
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2015-09-22 01:17:12 UTC
Released in portage-2.2.21