From owner-freebsd-arm@FreeBSD.ORG Sun Aug 11 01:30:00 2013 Return-Path: Delivered-To: freebsd-arm@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 99C08DF6 for ; Sun, 11 Aug 2013 01:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7A94529C6 for ; Sun, 11 Aug 2013 01:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7B1U0fR053619 for ; Sun, 11 Aug 2013 01:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7B1U0dm053618; Sun, 11 Aug 2013 01:30:00 GMT (envelope-from gnats) Resent-Date: Sun, 11 Aug 2013 01:30:00 GMT Resent-Message-Id: <201308110130.r7B1U0dm053618@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christopher Abbey Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1B1B4CE6 for ; Sun, 11 Aug 2013 01:20:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E275C2984 for ; Sun, 11 Aug 2013 01:20:01 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7B1K1cD064594 for ; Sun, 11 Aug 2013 01:20:01 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7B1K1Os064591; Sun, 11 Aug 2013 01:20:01 GMT (envelope-from nobody) Message-Id: <201308110120.r7B1K1Os064591@oldred.freebsd.org> Date: Sun, 11 Aug 2013 01:20:01 GMT From: Christopher Abbey To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: arm/181220: make xdev for arm installation fails X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Aug 2013 01:30:00 -0000 >Number: 181220 >Category: arm >Synopsis: make xdev for arm installation fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 11 01:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Christopher Abbey >Release: 9.1 >Organization: >Environment: FreeBSD robolace.localdomain 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When building xdev: make XDEV=arm XDEV_ARCH=armv6 xdev It fails with the output: set -e; cd /usr/src/include; make buildincludes; make installincludes creating osreldate.h from newvers.sh *** [osreldate.h] Error code 1 Stop in /usr/src/include. *** [includes] Error code 1 Stop in /usr/src/include. *** [include.includes__D] Error code 1 Stop in /usr/src. *** [_xi-includes] Error code 1 Stop in /usr/src. *** [xdev] Error code 1 Stop in /usr/src. The problem file appears to be: /usr/src/sys/conf/newvers.sh It looks like ${0} is printing sh instead of the script name >How-To-Repeat: make XDEV=arm XDEV_ARCH=armv6 xdev >Fix: Hard coding the script name into the script. Patch attached with submission follows: --- newvers.sh.old 2013-08-11 11:10:22.000000000 +1000 +++ newvers.sh 2013-08-11 11:10:09.000000000 +1000 @@ -30,6 +30,7 @@ # @(#)newvers.sh 8.1 (Berkeley) 4/20/94 # $FreeBSD: head/sys/conf/newvers.sh 254094 2013-08-08 15:59:00Z gjb $ +SCRIPT_NAME="/usr/src/sys/conf/newvers.sh" TYPE="FreeBSD" REVISION="10.0" BRANCH="CURRENT" @@ -96,7 +97,7 @@ # Run svnversion from ${dir} on this script; if return code # is not zero, the checkout might not be compatible with the # svnversion being used. - ${dir}/svnversion $(basename ${0}) >/dev/null 2>&1 + ${dir}/svnversion ${SCRIPT_NAME} >/dev/null 2>&1 if [ $? -eq 0 ]; then svnversion=${dir}/svnversion break @@ -105,7 +106,7 @@ done if [ -z "${svnversion}" ] && [ -x /usr/bin/svnliteversion ] ; then - /usr/bin/svnversion $(basename ${0}) >/dev/null 2>&1 + /usr/bin/svnversion ${SCRIPT_NAME} >/dev/null 2>&1 if [ $? -eq 0 ]; then svnversion=/usr/bin/svnliteversion else >Release-Note: >Audit-Trail: >Unformatted: