From: Muli Ben-Yehuda Subject: [PATCH] patch(1) is required for building (was Re: Xen unstable/SuSE 9.3 install issue) Date: Wed, 19 Oct 2005 04:15:08 +0200 Message-ID: <20051019021508.GH26239@granada.merseine.nu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: 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 Cc: Robert Hulme List-Id: xen-devel@lists.xenproject.org On Wed, Oct 19, 2005 at 02:42:25AM +0100, Robert Hulme wrote: > > I am having a similar compile problem. My woes seem to begin when it > > can't find smp_alt.h (which I've checked and does not exist). > Thanks to muli on the IRC channel this problem is now resolved. > > The problem is that the build was failing as it wasn't running patch > as it wasn't installed. > > I assume this is a bug? Shouldn't the buildscript fail if patch is not > installed? I'll enter it into the bugtracker. Here's a quick patch to stop the build if patch(1) fails for some reason. Tested on x86 with and without patch(1). Signed-Off-By: Muli Ben-Yehuda # HG changeset patch # User Muli Ben-Yehuda # Node ID 11e4f65368c2a8d1c583ad19621c58d155d0cd20 # Parent 446aa56ca4fee7d3ea2badfb59e8bb3540b507ae building the kernels should fail if patch(1) is not available when patching the kernel, rather than failing later when trying to build the unpatched kernel. - set -e - avoid two subshells so that make notices our exit status diff -r 446aa56ca4fee7d3ea2badfb59e8bb3540b507ae -r 11e4f65368c2a8d1c583ad19621c58d155d0cd20 buildconfigs/Rules.mk --- a/buildconfigs/Rules.mk Mon Oct 17 12:50:28 2005 +++ b/buildconfigs/Rules.mk Wed Oct 19 02:10:00 2005 @@ -80,10 +80,11 @@ rm -f patches/*/.makedep ref-%/.valid-ref: pristine-%/.valid-pristine + set -e rm -rf $(@D) cp -al $(