From owner-freebsd-questions@freebsd.org Sun Oct 30 23:25:15 2016 Return-Path: Delivered-To: freebsd-questions@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 1951CC2773F for ; Sun, 30 Oct 2016 23:25:15 +0000 (UTC) (envelope-from antonfb@hesiod.org) Received: from styx.hesiod.org (jaanton-pt.tunnel.tserv3.fmt2.ipv6.he.net [IPv6:2001:470:1f04:d1::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cust.hesiod.org", Issuer "hesiod.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8711D1F67 for ; Sun, 30 Oct 2016 23:25:14 +0000 (UTC) (envelope-from antonfb@hesiod.org) Received: from atlas.hesiod.org (atlas.hesiod.org [192.168.2.2]) by styx.hesiod.org (8.15.2/8.15.2) with ESMTP id u9UNPBXp099092 for ; Sun, 30 Oct 2016 16:25:12 -0700 (PDT) (envelope-from antonfb@hesiod.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hesiod.org; s=Oct16; t=1477869912; bh=bYE0lty1a5KbuQcOysC45eNaGXHxczzD0NCkwnS8jRA=; h=To:From:Subject:Date; b=P5aqQYxlsUWXZAFTavuwcGNMWLsYI0OAT2TK/QuhGtwf/sIW9BX1JPbykeGY3aYb3 81WvgO7WCslFvT9pBq02ty+EsW9EcmySxWOApAYA9onfjd5q5bmqINzzGjJ6XeY5v0 XmUNynQ/kvhBYr6bmOPHnYi0Xe59LFZEIUDg9fSU89KgC4QDJqHsDJyjjNJSn4bb3v xGMr+vrDnI332FwJmVfQ4vQG0ASUapnzTZ+rsgBVzQz7zXNGOtDuFk5S7qZ3QAM4TI fJAHRuZwripKAWbe8+WK6Fq/JzRwIC7Vfh354qESGVx0/98e/f3GOMBus13yJdg/uL PKjINrr6r6gEQ== To: freebsd-questions@freebsd.org From: Jeff Anton Subject: problems with make installworld DESTDIR= Message-ID: Date: Sun, 30 Oct 2016 16:25:11 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.2 at styx.hesiod.org X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2016 23:25:15 -0000 I've been following the handbook "Updating Multiple Jails" section and the latest time I've tried that it has failed against 10.3-RELEASE-p11 I tried a couple different machines, each failed. First, /usr/src/bin/freebsd-version install fails. To fix that in its Makefile I change SCRIPTS = freebsd-version to SCRIPTS = freebsd-version.sh Then the install of /usr/bin/include fails with "env: not found" I change env ECHO="${ECHO}" \ to /usr/bin/env ECHO="${ECHO}" \ Then the install fails with mktemp not found and in mk-osreldate.sh I change tmpfile=$(mktemp osreldate.XXXXXXXX) to tmpfile=$(/usr/bin/mktemp osreldate.XXXXXXXX) It seems like these issues should have failed much earlier. But maybe the DESTDIR stuff no longer works against an empty directory. Seems like $path must be set to get stuff from the world being installed, but these installations depend upon stuff not yet installed. I would also recommend that the handbook change the make installworld to make -DNO_FSCHG installworld DESTDIR=${nr} or recommend -DNO_FSCHG because my host machine is running in a secure mode which makes removing these old jails impossible until a reboot. Anyone else seeing problems with make installworld DESTDIR= ? Jeff Anton