Subject: Re: NetBSD 3 crossbuild problem
To: None <current-users@netbsd.org>
From: Jens =?iso-8859-15?q?Wei=DFe?= <jens.weisse@bsd-crew.de>
List: current-users
Date: 07/07/2005 15:02:31
Am Donnerstag, 7. Juli 2005 02:57 schrieb Luke Mewburn:
>
> It might be the 'INFODIR' environment variable that's causing
> the problem, not the 'INFOPATH' variable.
>
> Please try the following patch to build.sh and rerunning build.sh,
> and let me know the results.
>
>
> Index: build.sh
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/src/build.sh,v
> retrieving revision 1.135
> retrieving revision 1.136
> diff -p -p -u -r1.135 -r1.136
> --- build.sh	26 Mar 2005 06:02:13 -0000	1.135
> +++ build.sh	19 May 2005 01:37:30 -0000	1.136
> @@ -139,6 +139,12 @@ initdefaults()
>  	# Set source directories
>  	#
>  	setmakeenv NETBSDSRCDIR "${TOP}"
> +
> +	# Set various environment variables to known defaults,
> +	# to minimize (cross-)build problems observed "in the field".
> +	#
> +	unsetmakeenv INFODIR
> +	setmakeenv LC_ALL C
>  }
>
>  getarch()
> @@ -659,7 +665,6 @@ parseoptions()
>
>  	# Set up default make(1) environment.
>  	#
> -	setmakeenv LC_ALL C
>  	makeenv=3D"${makeenv} TOOLDIR MACHINE MACHINE_ARCH MAKEFLAGS"
>  	[ -z "${BUILDID}" ] || makeenv=3D"${makeenv} BUILDID"
>  	MAKEFLAGS=3D"-de -m ${TOP}/share/mk ${MAKEFLAGS}
> MKOBJDIRS=3D${MKOBJDIRS-yes}"


This patch works great "in the field". Thank you for this. :-)




I applied the patch on the "old" source from yesterday and build.sh=20
compiled everything (incl. all kernels). Unfortunatly failed build.sh to=20
make  release.
<--------------------  ><8  ------------------------>
#   execute  checkflist
/export/btmpl/btmpl/NetBSD/usr/src/obj/tooldir.Linux-2.4.21-291-athlon-athl=
on/bin/nbmake=20
checkflist
cd /export/btmpl/btmpl/NetBSD/usr/src/distrib/sets && =20
DESTDIR=3D/btmpl/NetBSD/destdir  MACHINE=3Di386 MACHINE_ARCH=3Di386 =20
CKSUM=3D/export/btmpl/btmpl/NetBSD/usr/src/obj/tooldir.Linux-2.4.21-291-ath=
lon-athlon/bin/nbcksum=20
MAKE=3D/export/btmpl/btmpl/NetBSD/usr/src/obj/tooldir.Linux-2.4.21-291-athl=
on-athlon/bin/nbmake=20
MTREE=3D/export/btmpl/btmpl/NetBSD/usr/src/obj/tooldir.Linux-2.4.21-291-ath=
lon-athlon/bin/nbmtree =20
MKTEMP=3D/export/btmpl/btmpl/NetBSD/usr/src/obj/tooldir.Linux-2.4.21-291-at=
hlon-athlon/bin/nbmktemp=20
PAX=3D/export/btmpl/btmpl/NetBSD/usr/src/obj/tooldir.Linux-2.4.21-291-athlo=
n-athlon/bin/nbpax=20
HOST_SH=3Dsh  sh ./checkflist  -b  -M /btmpl/NetBSD/destdir/METALOG

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D  1 extra files  =3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
=46iles in DESTDIR but missing from flist.
=46ile is obsolete or flist is out of date ?
=2D-----------------------------------------
=2E/var/chroot/pfspamd
=3D=3D=3D=3D=3D=3D=3D=3D=3D  end of 1 extra files  =3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
<--------------------  ><8  ------------------------>

I will do a cvs-update  and try it again.


Jens Wei=DFe