Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2016 16:25:11 -0700
From:      Jeff Anton <antonfb@hesiod.org>
To:        freebsd-questions@freebsd.org
Subject:   problems with make installworld DESTDIR=<newdirectory>
Message-ID:  <c77d5495-df5f-5d39-767c-24248b742b71@hesiod.org>

next in thread | raw e-mail | index | archive | help
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=<new> ?

Jeff Anton



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c77d5495-df5f-5d39-767c-24248b742b71>