Re: install erroring out durning mergemaster...

From: Jeremie Le Hen <jeremie_at_le-hen.org>
Date: Wed, 6 Jul 2005 01:47:58 +0200
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 >
Received on Tue Jul 05 2005 - 21:47:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC