Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 550006

Summary: sys-apps/portage: quickpkg does not preserve xattrs
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Binary packages supportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 549914    

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