From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1B971138A1F for ; Mon, 27 Jan 2014 14:04:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FF0BE0F2B; Mon, 27 Jan 2014 14:03:59 +0000 (UTC) Received: from mail-bk0-f51.google.com (mail-bk0-f51.google.com [209.85.214.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80D3DE0F2A for ; Mon, 27 Jan 2014 14:03:58 +0000 (UTC) Received: by mail-bk0-f51.google.com with SMTP id w10so2840332bkz.38 for ; Mon, 27 Jan 2014 06:03:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ctkKbWB0Dybllqswht9D32v3vfiilKvosPaZ4B5dx8M=; b=dbMjgGidrFgD/hVR84TG7sAVeZvhUm9z7+0J0TlZks+EWgGEJn66QTDCLAJTw7GcNy 8tDkr8ymy+/Kpm8+JD+7W2qN17kczxk39HLOa9frh7CevyUO7K4LXagaRtOTQ1QaqCeN rhv3ekI6XP3PPqMpWJsL0DTpnPHVTZ7ROfFjnGTnZWye3NSbeg70zEdMslr2NvcyDPG8 lQI/Bxkt3izS5q8Ng/oXL+ydtCcBxzPopYDUxrymFxOcpRxzV0c6hUGi5ksTCuDngrwN ldaLglT0LGQ7wY0V/952Th7DOZnbkDpuHJ7RWwknXqRGGtkxBOSg5wp+VjpMIiHxFCOp tEHA== X-Received: by 10.205.37.78 with SMTP id td14mr1177036bkb.105.1390831437186; Mon, 27 Jan 2014 06:03:57 -0800 (PST) Received: from ?IPv6:2001:1418:100:558::2? (cl-1369.trn-01.it.sixxs.net. [2001:1418:100:558::2]) by mx.google.com with ESMTPSA id dg4sm13613486bkc.10.2014.01.27.06.03.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 06:03:56 -0800 (PST) Message-ID: <52E666F6.8020102@gmail.com> Date: Mon, 27 Jan 2014 15:02:30 +0100 From: "vivo75@gmail.com" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] xattr wrapper for install, bug #465000 References: <52E591F8.8010705@opensource.dyc.edu> In-Reply-To: <52E591F8.8010705@opensource.dyc.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: bc35dbc0-922b-44ba-9f8b-9f9c4f04cdf0 X-Archives-Hash: 18a55e3d6c4d6286cfc37921f21996a4 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