Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jul 2005 01:47:58 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Peter Losher <Peter_Losher@isc.org>
Cc:        Doug Barton <DoubB@FreeBSD.org>, freebsd-current@freebsd.org, Jeremie Le Hen <jeremie@le-hen.org>
Subject:   Re: install erroring out durning mergemaster...
Message-ID:  <20050705234758.GR73907@obiwan.tataz.chchile.org>
In-Reply-To: <200507051106.49609.Peter_Losher@isc.org>
References:  <200507031439.48288.Peter_Losher@isc.org> <20050705095859.GO73907@obiwan.tataz.chchile.org> <200507051106.49609.Peter_Losher@isc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Peter, Hi Doug,

> -=-
> cd /usr/src/etc/root;  install -o root -g wheel -m 644
> dot.cshrc /var/tmp/temproot/root/.cshrc;  install -o root -g wheel -m 644
> dot.login /var/tmp/temproot/root/.login;  install -o root -g wheel -m 644
> dot.profile /var/tmp/temproot/root/.profile;  rm
> -f /var/tmp/temproot/.cshrc /var/tmp/temproot/.profile;
> ln /var/tmp/temproot/root/.cshrc /var/tmp/temproot/.cshrc;
> ln /var/tmp/temproot/root/.profile /var/tmp/temproot/.profile
> cd /usr/src/etc/mtree; install -o root -g wheel -m 444  BSD.include.dist
> BSD.local.dist BSD.root.dist BSD.usr.dist  BSD.var.dist BSD.x11.dist
> BSD.x11-4.dist BIND.chroot.dist /var/tmp/temproot/etc/mtree
> cd /usr/src/etc/namedb; install -o root -g wheel -m 644  PROTO.localhost.rev
> PROTO.localhost-v6.rev named.conf named.root
> make-localhost /var/tmp/temproot/var/named/etc/namedb
> install: wrong number or types of arguments
> usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>                [-o owner] file1 file2
>        install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>                [-o owner] file1 ... fileN directory
>        install -d [-v] [-g group] [-m mode] [-o owner] directory ...
> *** Error code 64
> 
> Stop in /usr/src/etc.
> 
>   *** FATAL ERROR: Cannot 'cd' to /usr/src/etc and install files to
>       the temproot environment
> -=-

> That sounds about right (I have NO_BIND_ETC=true defined in make.conf); any 
> workaround, since we really have no need to run the BIND9 release that comes 
> w/ 5.x ;), and a error like this makes NO_BIND or NO_BIND_ETC rather 
> useless. :( (if there isn't, I'll open a PR on it)

Given the error you showed us, I would say you have NO_BIND_MTREE
instead of NO_BIND_ETC in make.conf(5).  This leads to not create
/var/tmp/temproot/var/named/etc/namedb and then, it appears you do not
have NO_BIND_ETC, because it tries to install files from src/etc/namedb
(see src/etc/Makefile, distribution target).

I don't know why this separation have been made.  I would say that if
someone don't want Bind configuration files installed, he doesn't want
to run mtree for its chroot either.  Conversely, if he doesn't want to
run mtree for chroot'd Bind, he certainly doesn't want to install its
configuration files.

I dare to Cc Doug Barton to have an answer to this, since he is the
author of these bits, IIRC.

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >



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