Date: Thu, 01 Nov 2007 12:04:25 -0400 From: "Brian A. Seklecki" <lavalamp@spiritual-machines.org> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions@FreeBSD.ORG Subject: iso.1 target and release(8) in RELENG_7 (WAS: Re: release(8) environmental variables) Message-ID: <1193933065.3974.38.camel@ingress.pitbpa0.priv.collaborativefusion.com> In-Reply-To: <20071031174533.GA33931@kobe.laptop> References: <20071030180139.Y81307@arbitor.digitalfreaks.org> <20071031115412.GD3140@kobe.laptop> <1193843040.4419.9.camel@ingress.pitbpa0.priv.collaborativefusion.com> <20071031164101.GC33211@kobe.laptop> <20071031132514.E81307@arbitor.digitalfreaks.org> <20071031174533.GA33931@kobe.laptop>
next in thread | previous in thread | raw e-mail | index | archive | help
Here's some fun -- I'm pretty sure this worked in RELENG_6: "make release" in /usr/src/release into RELEASEDIR=/opt/releasedir The rebuild completes (release.1 -> release.8), the kernels are built, the file system layout is prepared (ftp.1 -> cdrom.3), then (I think) the iso.1 target is called and the images are zero-bytes. Log excerpts below... Either I'm confused, I have my environmental variables set wrong, or this is broken. :) 1) My $LOCAL_SCRIPT properly copies mkisofs(1) and mkhybrid(1) into place in the $CHROOTDIR/usr/bin $ ls -al /opt/relchroot/usr/bin/mkisofs -r-xr-xr-x 1 root wheel 510712 Nov 1 02:13 /opt/relchroot/usr/bin/mkisofs 2) On the root of the system, I have to make /R a sylink to /opt/relchroot/R to make "make iso.1" succeed : # ls -al /R lrwxr-xr-x 1 root wheel 16 Oct 29 23:20 /R -> /opt/relchroot/R Other-wise: [root@build-fbsd-releng7-amd64 /usr/src/release]# make iso.1 Creating ISO images... mkisofs: No such file or directory. Invalid node - /R/cdrom/bootonly *** Error code 2 Stop in /usr/src/release. 3) I don't see how $CHROOTDIR is used in /usr/src/release/Makefile at: iso.1: [...] Unless, when not run as a manual target outside of the chroot(), it runs in the chroot and /R is relative to $CHROOTDIR?. That would make sense of the error in the log excerpt below matched what I encounter on the command line as a manual run. I'm setting: # applies to build export DESTDIR=/opt/dest export MAKEOBJDIRPREFIX=/opt/obj export RELEASEDIR=/opt/release export CHROOTDIR=/opt/relchroot This is a shell script that runs nightly -- it worked in RELENG_6. ~BAS [...] Created /R/stage/floppies/boot.flp touch floppies.1 touch floppies.3 Setting up FTP distribution area 0 blocks 0 blocks touch ftp.1 Building CDROM live filesystem image 0 blocks 0 blocks 0 blocks 0 blocks 0 blocks 0 blocks 0 blocks 0 blocks 0 blocks Copy GENERIC kernel to boot area Setting up CDROM boot area touch cdrom.1 Building CDROM disc1 filesystem image 0 blocks 0 blocks Building CDROM disc2 filesystem image touch cdrom.2 Building bootonly CDROM filesystem image touch cdrom.3 Release done [...] On Wed, 2007-10-31 at 19:45 +0200, Giorgos Keramidas wrote: > On 2007-10-31 13:26, "Brian A. Seklecki" <lavalamp@spiritual-machines.org> wrote: > >>> really sucks. > >> > >> I believe that's intentional, so re-running "make release" with > >> different CHROOTDIR values will produce consistently "similar" binaries. > > > > I use LOCAL_SCRIPT to copy /etc/make.conf (well, /etc/src.conf) into place > > inside the jail for the rebuild so that I can build a custom internal > > release w/o certain subsystems (IPv6 or CSH, for example) > > > > Is there a better way to do it? > > LOCAL_SCRIPT sounds fine to me :) > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1193933065.3974.38.camel>