* Re: [gentoo-portage-dev] xattr wrapper for install, bug #465000
@ 2014-01-29 16:33 99% ` Anthony G. Basile
0 siblings, 0 replies; 1+ results
From: Anthony G. Basile @ 2014-01-29 16:33 UTC (permalink / raw
To: gentoo-portage-dev
On 01/27/2014 09:02 AM, vivo75@gmail.com wrote:
> On 01/26/14 23:53, Anthony G. Basile wrote:
>> Hi everyone,
>>
>> A while back, I wrote a python wrapper for install to preserve xattrs.
>> Its installed in LIBDIR/portage/bin/install.py. It is *painfully*
>> slow. For a package like moodle with 16650 .php files, none of which
>> probably need any xattr's set, it takes about 30 mins to install. I
>> rewrote the wrapper in C. Replacing the python wrapper with the C
>> wrapper, the same example reduces from about 30 mins to 2 mins.
>>
>> Mike and I did some back and forth about how best to write it. The
>> latest version is pretty much done at
>>
>> https://bugs.gentoo.org/show_bug.cgi?id=465000#c56
>>
>> We need to get that integrated into portage. 1) I'm not 100% sure how
>> to do that. 2) We may want to install it at /usr/bin/install-xattr
>> because I'm sure it will be useful for more than just portage.
>>
>> Comments?
>>
> patch install from coreutils (and then upstream changes) is not an option?
> they already support selinux contexts
>
> anyway install-xattr could be useful and /usr/bin would be a good option
> IMHO
>
Been there and I even had a patch ready. Upstream answer was '\0'. The
only people who engaged the discussion were gentoo devs.
Would patching coreutils have been the better approach? Some people
might argue install and cp and mv etc should just copy contents to keep
these utilities as simple as possible. Although, as you say, install
can copy selinux contexts, and cp can copy xattr attributes. So what's
the problem with extending installs functionality to include arbitrary
xattr attributes?
Anyhow, seeing as upstream is uninterested, I prefer this wrapper to
maintaining a local patch against coreutils.
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-01-26 22:53 [gentoo-portage-dev] xattr wrapper for install, bug #465000 Anthony G. Basile
2014-01-27 14:02 ` vivo75
2014-01-29 16:33 99% ` Anthony G. Basile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox