From: Christoph Egger Subject: [PATCH][XEN] Build fix for 64bit Date: Tue, 3 Jun 2008 17:48:26 +0200 Message-ID: <200806031748.26842.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_KfWRIHwqUC0E5BC" 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 --Boundary-00=_KfWRIHwqUC0E5BC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! The sh manpage for option -e says: -e errexit If not interactive, exit immediately if any untested command fails. The exit status of a c= om- mand is considered to be explicitly tested if t= he command is used to control an if, elif, while, = or until; or if the command is the left hand opera= nd of an ``&&'' or ``||'' operator. In short, the statement test -x /usr/xpg4/bin/sed fails on NetBSD (directory xpg4 does not exist) and aborts build process immediately. Attached patch fixes this. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_KfWRIHwqUC0E5BC Content-Type: text/x-diff; charset="us-ascii"; name="xen_build.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_build.diff" diff -r 5603534c62f9 xen/tools/get-fields.sh --- a/xen/tools/get-fields.sh Tue Jun 03 09:41:19 2008 +0100 +++ b/xen/tools/get-fields.sh Tue Jun 03 17:25:41 2008 +0200 @@ -2,7 +2,9 @@ set -ef set -ef SED=sed -test -x /usr/xpg4/bin/sed && SED=/usr/xpg4/bin/sed +if test -x /usr/xpg4/bin/sed; then + SED=/usr/xpg4/bin/sed +fi get_fields () { --Boundary-00=_KfWRIHwqUC0E5BC 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 --Boundary-00=_KfWRIHwqUC0E5BC--