From: Brian Jackson Subject: Re: [PATCH 1/1] Add configure script check for gawk and unifdef when using kvm-userspace.git Date: Mon, 27 Oct 2008 15:51:37 -0500 Message-ID: <200810271551.37219.iggy@theiggy.com> References: <200810271508.25854.iggy@theiggy.com> <5d6222a80810271329y417beb69m71808ed089a4e912@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from theiggy.com ([66.220.1.110]:34884 "EHLO mail.theiggy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753316AbYJ0Uvj (ORCPT ); Mon, 27 Oct 2008 16:51:39 -0400 Received: from phil-connors.local (unknown [216.63.86.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.theiggy.com (Postfix) with ESMTPSA id BBB22C130 for ; Mon, 27 Oct 2008 15:51:38 -0500 (CDT) In-Reply-To: <5d6222a80810271329y417beb69m71808ed089a4e912@mail.gmail.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Monday 27 October 2008 3:29:22 pm Glauber Costa wrote: > On Mon, Oct 27, 2008 at 6:08 PM, Brian Jackson wrote: > > When building kvm-userspace from git, gawk and unifdef are used by > > kernel/Makefile. Without this check it's non-obvious why kernel/Makefile > > fails. > > > > Signed-off-by: Brian Jackson > > > > diff --git a/configure b/configure > > index 3b5d14f..26f73f3 100755 > > --- a/configure > > +++ b/configure > > @@ -113,6 +113,17 @@ if [ -d "$kerneldir/include2" ]; then > > kernelsourcedir=${kerneldir%/*}/source > > fi > > > > +# check for some utils we use > > +if [ -d .git ] ; then > > + if [ ! -x "`which gawk`" ] ; then > > + echo "gawk not installed and necessary for compiling from git" > > + exit 1 > > + fi > > + if [ ! -x "`which unifdef`" ] ; then > > + echo "unifdef not installed and necessary for compiling from > > git" + exit 1 > > +fi > > This is unlikely to be the correct fix. unifdef is provided by the kernel > tree, under scripts. What we want is something like this: > > - unifdef -DCONFIG_$(ARCH_CONFIG) -UCONFIG_$(NONARCH_CONFIG) > $1.orig > $1; \ > + $(LINUX)/scripts/unifdef -DCONFIG_$(ARCH_CONFIG) > -UCONFIG_$(NONARCH_CONFIG) $1.orig > $1; \ > [ $$? -le 2 ] && rm $1.orig > Huh... I just apt-get installed unifdef and it started working for me, so I figured that's what it needed. The other part of the patch should still be good. Avi, want me to resend just the gawk bit? Or just leave it out and hope people figure out they need gawk. > > + > > #configure user dir > > (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir" > > \ --arch="$arch" \ > > -- > > To unsubscribe from this list: send the line "unsubscribe kvm" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html