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

Bug 566212

Summary: sys-apps/portage: install-xattr: setxattr() failed: Operation not supported (/usr/portage is on NFS)
Product: Portage Development Reporter: Christian Parpart <trapni>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Parpart 2015-11-19 13:07:46 UTC
long story short, mount your portage dir via NFS from somewhere, install an ebuild that does something like `dosbin ${FILESDIR}/...` (or similar) in `src_install()`, and you'll see that it will fail with a message like this:

    install-xattr: setxattr() failed: Operation not supported

This message (while misleading) is, because your portage directory is mounted via NFS and thus, your $FILESDIR is being listxattr(2)'d returning values that install-xattr binary cannot getxattr(2).

Whilst this looks like a bad behaviour of the NFS mount, one may want to imply, that install-xattr (used by portage by *default*) should be able to handle those cases.

Best Regards,
Christian Parpart.
Comment 1 Zac Medico gentoo-dev 2015-11-19 16:58:23 UTC
Please export PORTAGE_INSTALL_XATTR_IMPLEMENTATION="python" to try it with portage's internal install-xattr implementation, and see if that outputs any more useful information.

The fact that it complains about setxattr failing suggests that you lack xattr support inside ${PORTAGE_TMPDIR}.