From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Abd-El-Malek Subject: [PATCH] linux-2.6.18-xen.hg: check that awk supports 'gensub' command Date: Tue, 09 Oct 2007 22:53:37 -0400 Message-ID: <470C3EB1.6020207@cmu.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000401020402060106090002" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000401020402060106090002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The linux-2.6.18-xen.hg/scripts/Makefile.xen.awk script depends on the GNU AWK-specific function "gensub". If another awk is used (e.g., Debian installs mawk by default), the lack of gensub trickles down to cause the -xen.c files to not be compiled. This was time-consuming to track. So we should check that the awk program supports 'gensub'. Signed-off-by: Michael Abd-El-Malek --------------000401020402060106090002 Content-Type: text/plain; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch" diff -r b0ec211da98a scripts/Makefile.build --- a/scripts/Makefile.build Fri Oct 05 10:51:53 2007 +0100 +++ b/scripts/Makefile.build Tue Oct 09 22:45:45 2007 -0400 @@ -71,6 +71,8 @@ ifeq ($(CONFIG_XEN),y) ifeq ($(CONFIG_XEN),y) $(objtree)/scripts/Makefile.xen: $(srctree)/scripts/Makefile.xen.awk $(srctree)/scripts/Makefile.build @echo ' Updating $@' + $(if $(shell echo a | $(AWK) '{ print gensub(/a/, "AA", "g"); }'),\ + ,$(error 'Your awk program does not define gensub. Use gawk or another awk with gensub')) @$(AWK) -f $< $(filter-out $<,$^) >$@ xen-src-single-used-m := $(patsubst $(srctree)/%,%,$(wildcard $(addprefix $(srctree)/,$(single-used-m:.o=-xen.c)))) --------------000401020402060106090002 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000401020402060106090002--