Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 2015 19:42:32 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-current@freebsd.org
Subject:   Re: make installworld DESTDIR=/mnt  failes
Message-ID:  <20150802174232.GB1697@c720-r276659>
In-Reply-To: <20150802134753.GA1743@c720-r276659>
References:  <20150802092932.GA1659@c720-r276659> <20150802134753.GA1743@c720-r276659>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Sunday, August 02, 2015 a las 03:47:53PM +0200, Matthias Apitz escribió:

> El día Sunday, August 02, 2015 a las 11:29:32AM +0200, Matthias Apitz escribió:
> 
> >    # make installworld  DESTDIR=/mnt
> > 
> > but this time the installworld failes after some time with:
> > 
> > ...
> > install -s -o root -g wheel -m 555   primes /mnt/usr/bin/primes
> > ===> games/random (install)
> > install -s -o root -g wheel -m 555   random /mnt/usr/bin/random
> > install -o root -g wheel -m 444 random.6.gz  /mnt/usr/share/man/man6
> > ===> games/tests (install)
> > install -o root  -g wheel -m 444  /usr/home/guru/r285885/src/tests/Kyuafile  /mnt/usr/tests/games/Kyuafile
> > ===> cddl (install)
> > ===> cddl/lib (install)
> > ===> cddl/lib/drti (install)
> > make[6]: /usr/home/guru/r285885/obj/usr/home/guru/r285885/src/cddl/lib/drti/.depend, 79: ignoring stale .depend for /home/guru/r285885/obj/usr/home/guru/r285885/src/tmp/usr/include/unistd.h
> > ...
> 
> I found the problem: The system where the 'make installworld' was
> running, have had no sym link from /home --> usr/home and that's why the
> file /home/guru/r285885/obj/usr/home/guru/r285885/src/tmp/usr/include/unistd.h
> from .depend could not be checked. A big pitfall :-(

I was asking me, why that happened (for the 1st time) and investigated
one of the older boot keys which I always produce nearly the same way to
pollute other hardware with new systems/kernels... 

I always compile/install world and kernel into some DESTDIR and make from that a
bootable USB key with the script /usr/src/release/amd64/make-memstick.sh

The fundamental mistake I did this time was having the src and obj below
/usr/home/guru/r285885/[src|obj] and not below /usr/local/..../[src|obj]. This way
the .depend files contain references to /usr/home/... and to /home/...
files, which will not work if /home does not exist as a sym link to
usr/home

Lesion learned.

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!



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