Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2002 11:25:11 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Eugene Grosbein <eugen@grosbein.pp.ru>
Cc:        stable@FreeBSD.ORG
Subject:   Re: make release fails
Message-ID:  <20021118092511.GD91887@sunbay.com>
In-Reply-To: <20021117162107.A19974@main.svzserv.kemerovo.su>
References:  <20021117162107.A19974@main.svzserv.kemerovo.su>

next in thread | previous in thread | raw e-mail | index | archive | help

--FFoLq8A0u+X9iRU8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 17, 2002 at 04:21:07PM +0700, Eugene Grosbein wrote:
> Hi!
>=20
> I'm trying to setup a box for building releases of RELENG_4.
>=20
> This box already has cvsup-mirror and local mirror of the Repo
> and has been used as local CVSup mirror for a while with success.
> My goal is to build releases in a way that doesn't touch
> this system's own /usr/src, /usr/sup and /usr/obj.
> So I'm trying to have another copy of src, sup and obj
> using extra supfile and building script:
>=20
> #!/bin/sh -ex
>=20
> export CVSROOT=3D/home/ncvs		# Here is the Repo
> export KERNEL_FLAGS=3D"-j4 CPUTYPE=3Di386"	# I have CPUTYPE=3Di686 in /et=
c/make.conf
> 					# and that's SMP system
> export WORLD_FLAGS=3D"$KERNEL_FLAGS"
> SUPFILENAME=3Dstable-supfile		# has custom host, base and prefix:
> SRC=3D/mnt/.1/release/src			# /mnt/.1/release
>=20
> mkdir -p $SRC				# Here sources must live
> /usr/local/bin/cvsup -g -L 2 `dirname $0`/$SUPFILENAME # update sources
> cd $SRC/release
> nice -17 make -j4 release \
>     VNDEVICE=3Dvn1 \
>     RELEASETAG=3DRELENG_4 \
>     CHROOTDIR=3D/mnt/.1/release/chroot 2>&1 | tee /mnt/.1/release/log
>=20
> My problem is that it doesn't work. What am I doing wrong?
> Here is a log.
>=20
> rm -rf /mnt/.1/release/chroot 2>/dev/null
> chflags -R noschg /mnt/.1/release/chroot/.
> rm -rf /mnt/.1/release/chroot
> mkdir -p /mnt/.1/release/chroot
> >>> make release for i386 started on Sun Nov 17 09:14:12 GMT 2002
> cd /mnt/.1/release/src/release/.. && make TARGET_ARCH=3Di386 TARGET=3Di38=
6 -DNOGAMES -DNOHTML -DNOINFO -DNOMAN  -DNOPROFILE installworld DESTDIR=3D/=
mnt/.1/release/chroot
> mkdir -p /tmp/install.22943
> for prog in [ awk cat chflags chmod chown date echo egrep find grep  ln m=
ake makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl  test true uname wc =
zic; do  cp `which $prog` /tmp/install.22943;  done
> cd /mnt/.1/release/src; MAKEOBJDIRPREFIX=3D/usr/obj  MACHINE_ARCH=3Di386 =
 MACHINE=3Di386  OBJFORMAT_PATH=3D/usr/obj/mnt/.1/release/src/i386/usr/libe=
xec  PERL5LIB=3D/usr/obj/mnt/.1/release/src/i386/usr/libdata/perl/5.00503  =
GROFF_BIN_PATH=3D/usr/obj/mnt/.1/release/src/i386/usr/bin  GROFF_FONT_PATH=
=3D/usr/obj/mnt/.1/release/src/i386/usr/share/groff_font  GROFF_TMAC_PATH=
=3D/usr/obj/mnt/.1/release/src/i386/usr/share/tmac  PATH=3D/usr/obj/mnt/.1/=
release/src/i386/usr/sbin:/usr/obj/mnt/.1/release/src/i386/usr/bin:/usr/obj=
/mnt/.1/release/src/i386/usr/games:/tmp/install.22943 make -f Makefile.inc1=
 reinstall
> --------------------------------------------------------------
> >>> Making hierarchy
> --------------------------------------------------------------
> cd /mnt/.1/release/src; make -f Makefile.inc1 hierarchy
> cd /mnt/.1/release/src/etc;		make distrib-dirs
> `grep "^[a-zA-Z]" /mnt/.1/release/src/etc/locale.deprecated`;  while [ $#=
 -gt 0 ] ;  do  for dir in /usr/share/locale  /usr/share/nls  /usr/local/sh=
are/nls;  do  test -d /mnt/.1/release/chroot/${dir} && cd /mnt/.1/release/c=
hroot/${dir};  test -L "$2" && rm -rf "$2";  test \! -L "$1" && test -d "$1=
" && mv "$1" "$2";  done;  shift; shift;  done
> mtree -deU -f /mnt/.1/release/src/etc/mtree/BSD.root.dist -p /mnt/.1/rele=
ase/chroot/
>=20
> [skip lot's of mtree's output]
>=20
> mtree -deU -f /mnt/.1/release/src/etc/mtree/BSD.sendmail.dist -p /mnt/.1/=
release/chroot/
> ./var/spool/clientmqueue missing (created)
> cd /mnt/.1/release/chroot/; rm -f /mnt/.1/release/chroot/sys; ln -s usr/s=
rc/sys sys
> cd /mnt/.1/release/chroot/usr/share/man/en.ISO8859-1; ln -sf ../man* .
> cd /mnt/.1/release/chroot/usr/share/man;  `grep "^[a-zA-Z]" /mnt/.1/relea=
se/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" =
"$1";  shift; shift;  done
> --------------------------------------------------------------
> >>> Installing everything..
> --------------------------------------------------------------
> cd /mnt/.1/release/src; make -f Makefile.inc1 install
> =3D=3D=3D> share/info
> install -o root -g wheel -m 444  dir-tmpl /mnt/.1/release/chroot/usr/shar=
e/info/dir
> install: not found
> *** Error code 127
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
>=20
You should have built your current world before attempting to
make release.  Refer to the release(7) manpage for details.


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--FFoLq8A0u+X9iRU8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE92LH2Ukv4P6juNwoRAtFdAJ0boVQEqeoEgBDp60c2PEc0HTFOwwCeIPCi
51KN/PbFrOy35prDDCI1/oo=
=d6Ir
-----END PGP SIGNATURE-----

--FFoLq8A0u+X9iRU8--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021118092511.GD91887>