From owner-freebsd-current@freebsd.org Sun Aug 2 17:42:40 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61D179B0F36 for ; Sun, 2 Aug 2015 17:42:40 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25287E9A for ; Sun, 2 Aug 2015 17:42:39 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.15.236.90] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1ZLxHQ-0004w1-SO; Sun, 02 Aug 2015 19:42:37 +0200 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t72HgYTQ001742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 2 Aug 2015 19:42:34 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t72HgWZQ001741; Sun, 2 Aug 2015 19:42:32 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 2 Aug 2015 19:42:32 +0200 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: Re: make installworld DESTDIR=/mnt failes Message-ID: <20150802174232.GB1697@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-current@freebsd.org References: <20150802092932.GA1659@c720-r276659> <20150802134753.GA1743@c720-r276659> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150802134753.GA1743@c720-r276659> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.15.236.90 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Aug 2015 17:42:40 -0000 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! Όχι! -- Ευχαριστούμε!