From nobody@FreeBSD.org  Sat May 13 02:11:23 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8E17F16A401
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 13 May 2006 02:11:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5C33E43D48
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 13 May 2006 02:11:23 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4D2BLQQ027498
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 13 May 2006 02:11:21 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4D2BLdN027497;
	Sat, 13 May 2006 02:11:21 GMT
	(envelope-from nobody)
Message-Id: <200605130211.k4D2BLdN027497@www.freebsd.org>
Date: Sat, 13 May 2006 02:11:21 GMT
From: Peter Losher <Peter_Losher@isc.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NO_BIND_* 
X-Send-Pr-Version: www-2.3

>Number:         97188
>Category:       misc
>Synopsis:       NO_BIND_{MTREE|NAMED} breaks mergemaster
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 13 02:20:16 GMT 2006
>Closed-Date:    Sun Jun 04 06:41:15 GMT 2006
>Last-Modified:  Sun Jun 04 06:41:15 GMT 2006
>Originator:     Peter Losher
>Release:        6.1-RELEASE
>Organization:
ISC
>Environment:
FreeBSD foo.isc.org 6.1-RELEASE FreeBSD 6.1-RELEASE #2: Mon May  8 13:39:37 PDT 2006     plosher@foo.isc.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When enabling NO_BIND_* it breaks mergemaster:

-=-
# To keep the integrated BIND9 install on 5.x from interfering w/
# servers where we install our own BIND package.  We still want the
# clients installed (dig, nslookup) but not the server bits (named,
# rndc, lwresd) and no chroot.
NO_BIND_MTREE=true       # Do not run mtree to create chroot directories
NO_BIND_NAMED=true       # Do not build named, rndc, lwresd, etc.
-=-
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
-=-

>How-To-Repeat:
add NO_BIND_MTREE=tree to /etc/make.conf and run mergemaster on 5.3 and later releases.
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Fri Jun 2 23:58:48 UTC 2006 
Responsible-Changed-Why:  

Both of these are my problem :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97188 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sun Jun 4 06:35:05 UTC 2006 
State-Changed-Why:  

Per my recent commit to src/etc/Makefile: 

If NO_BIND_MTREE is set, we don't have anywhere to install the namedb files 
to, so don't try.  

The PR indicates that NO_BIND_NAMED would also trigger this problem, but 
I was unable to reproduce it. 

This is going directly to RELENG_6 because testing shows that HEAD is not 
affected by this issue, likely due to the renovation of the make knobs 
in that branch.  

Thanks for bringing this to my attention (x2!) Peter. 

Doug 


http://www.freebsd.org/cgi/query-pr.cgi?pr=97188 
>Unformatted:
