From: Ian Jackson Subject: Re: xen 4.4.0 unnecessary dependency on Perl Date: Tue, 29 Jul 2014 11:54:07 +0100 Message-ID: <21463.32079.785549.354004@mariner.uk.xensource.com> References: <53D6B1B4.3040702@overnetdata.com> <1406624527.20809.13.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406624527.20809.13.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Anthony Wright List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] xen 4.4.0 unnecessary dependency on Perl"): > On Mon, 2014-07-28 at 21:25 +0100, Anthony Wright wrote: > > To me it would seem wise to minimise the number of xen's dependencies > > and so use Python instead or if speed is really important here, a custom > > C program. We have a custom Linux distro that includes xen and to us the > > size of the distro is very important. This single 8 line section of code > > introduces a dependency on Perl and so adds another 10M to 20M. > > Please send a patch. > > Now that xend is gone Python is reasonably optional as well I think > (it's needed for pygrub but not a lot else IIRC). In the absence of any > other suitable facilities in a base system that might point to a custom > C utility being the best approach, but you should probably wait for > other feedback (from Ian Jackson, CCd, in particular) before picking an > approach. The perl fragment there is comparing inode numbers. I think that can be done with stat(1). For the fd stdin, it can be done with `stat -L /dev/stdin'. Ian.