Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538654 - dev-util/catalyst: xattr/acl params to tar need to be configurable
Summary: dev-util/catalyst: xattr/acl params to tar need to be configurable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords: InVCS
Depends on: 608058
Blocks:
  Show dependency tree
 
Reported: 2015-02-03 11:53 UTC by Joshua Kinard
Modified: 2018-01-10 18:20 UTC (History)
1 user (show)

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 Joshua Kinard gentoo-dev 2015-02-03 11:53:32 UTC
catalyst-2.0.18 added the following options to the various tar commands invoked during the stage builds:

--xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux

Using these on a filesystem that does not have ACL or xattr support enabled leads to very noisy output:

tar-1.28.tar.bz2
tar: XATTR support is not available
tar: acl_set_file_at: Cannot set POSIX ACLs for file 'tar-1.28/acinclude.m4': Operation not supported
tar: SELinux support is not available
tar: acl_set_file_at: Cannot set POSIX ACLs for file 'tar-1.28/ChangeLog.1': Operation not supported
tar: acl_set_file_at: Cannot set POSIX ACLs for file 'tar-1.28/config.h.in': Operation not supported
tar: acl_set_file_at: Cannot set POSIX ACLs for file 'tar-1.28/Make.rules': Operation not supported
tar: acl_set_file_at: Cannot set POSIX ACLs for file 'tar-1.28/doc/value.texi': Operation not supported
tar: acl_set_file_at: Cannot set POSIX ACLs for file 'tar-1.28/doc/rendition.texi': Operation not supported
tar: acl_set_file_at: Cannot set POSIX ACLs for file 'tar-1.28/doc/fdl.texi': Operation not supported
[truncated]

Not sure of a good way to handle this, so I don't have a patch available.  I modified my local copy of catalyst to remove these params from the tar calls as a hack.  Probably some kind of switch in catalyst.conf might work, with an appropriate default.
Comment 1 Joshua Kinard gentoo-dev 2015-02-03 11:57:01 UTC
I should add, this appears to happen on an XFS filesystem lacking ACL support.  ext3/ext4 filesystems only print the errors about missing XATTR and ACL once, but under XFS, the ACL errors are printed once per file extracted.
Comment 2 SpanKY gentoo-dev 2015-10-28 19:50:07 UTC
as noted somewhere else, i don't think any official release media should be built w/out xattrs.  i have no problem with making support optional for users for their own builds however.
Comment 3 Joshua Kinard gentoo-dev 2015-10-29 06:29:44 UTC
(In reply to SpanKY from comment #2)
> as noted somewhere else, i don't think any official release media should be
> built w/out xattrs.  i have no problem with making support optional for
> users for their own builds however.

Well, MIPS stages for the SGIs are experimental anyways, and xattr support is going to depend on the underlying host filesystem, of which none of my build machines use xattr at all.  And I'm still hamstrung by that ncurses mess-up a while back on my Octane anyways.

I'd say make the support optional within catalyst, but defaulted to on, and update the releng guides to indicate that official/stable release media needs to be built with the support enabled.
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2016-03-20 03:46:34 UTC
This is in git now.

New spec file options:

compressor_options:
compressor_arch:

Default linux compressor_options are the current xattr options.  Adding this option to hte spec file will override the defaults.

setting

compressor_options: None

will remove any defaults and add no additional options to the definitions.