From pdf@salador.ucs.mun.ca  Thu May  9 15:05:52 2002
Return-Path: <pdf@salador.ucs.mun.ca>
Received: from salador.ucs.mun.ca (salador.ucs.mun.ca [134.153.2.9])
	by hub.freebsd.org (Postfix) with ESMTP id DD10B37B40F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 May 2002 15:05:50 -0700 (PDT)
Received: from salador.ucs.mun.ca (localhost [127.0.0.1])
	by salador.ucs.mun.ca (8.12.3/8.12.3) with ESMTP id g49M5nrc055176
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 9 May 2002 19:35:49 -0230 (NDT)
	(envelope-from pdf@salador.ucs.mun.ca)
Received: (from root@localhost)
	by salador.ucs.mun.ca (8.12.3/8.12.3/Submit) id g49LlZWL055009;
	Thu, 9 May 2002 19:17:35 -0230 (NDT)
Message-Id: <200205092147.g49LlZWL055009@salador.ucs.mun.ca>
Date: Thu, 9 May 2002 19:17:35 -0230 (NDT)
From: Paul Fardy <pdf@mun.ca>
Reply-To: Paul Fardy <pdf@mun.ca>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: make distribution DESTDIR=/path -DNO_MAKEDEV fails to install MAKEDEV
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37909
>Category:       conf
>Synopsis:       make distribution DESTDIR=/path -DNO_MAKEDEV fails to install MAKEDEV
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 09 15:10:00 PDT 2002
>Closed-Date:    Sun Feb 08 00:46:39 PST 2004
>Last-Modified:  Sun Feb 08 00:46:39 PST 2004
>Originator:     Paul Fardy
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
Memorial University of Newfoundland
>Environment:

System: FreeBSD salador.ucs.mun.ca 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Tue May 7 12:20:29 NDT 2002 pdf@salador.ucs.mun.ca:/usr/obj/usr/src/sys/GENERIC i386

>Description:
	Probably not restricted to jail(8), but the jail installation is incomplete:

	cd /usr/src/etc; make distribution DESTDIR=/path/to/jail -DNO_MAKEDEV

	Should install /dev/MAKEDEV (or rather /path/to/jail/dev/MAKEDEV) but it doesn't.
	On FreeBSD 4.5-RELEASE-p4, make distribution reports the install of MAKEDEV in the
	first, albeit long, line, following the pwd_mkdb.

-- log of make follows --
salador # make distribution DESTDIR=/m1/jail/tristram -DNO_MAKEDEV
(cd /usr/src/etc;  install -c -o root -g wheel -m 644 amd.map apmd.conf auth.conf  crontab csh.cshrc csh.login csh.logout  dhclient.conf dm.conf fbtab ftpusers gettytab group  hosts hosts.allow host.conf hosts.equiv hosts.lpd  inetd.conf login.access login.conf  motd modems networks newsyslog.conf  pam.conf phones printcap profile protocols  rc rc.atm rc.diskless1 rc.diskless2 rc.firewall rc.firewall6  rc.network rc.network6 rc.pccard rc.sendmail rc.serial rc.shutdown  rc.syscons rc.sysctl remote rpc services shells sysctl.conf  syslog.conf usbd.conf  etc.i386/disktab  etc.i386/rc.i386  etc.i386/ttys  /usr/src/etc/../gnu/usr.bin/man/manpath/manpath.config  /usr/src/etc/../usr.bin/mail/misc/mail.rc  /usr/src/etc/../usr.bin/locate/locate/locate.rc rc.isdn /m1/jail/tristram/etc;  install -c -o root -g wheel -m 755 netstart pccard_ether rc.suspend rc.resume /m1/jail/tristram/etc;  install -c -o root -g wheel -m 644 defaults/rc.conf /m1/jail/tristram/etc/defaults/;  install -c -o!
  root -g wheel -m 644 defaults/make.conf /m1/jail/tristram/etc/defaults/;  install -c -o root -g wheel -m 644 defaults/pccard.conf /m1/jail/tristram/etc/defaults/;  install -c -o root -g wheel -m 644 defaults/periodic.conf /m1/jail/tristram/etc/defaults/;  install -c -o root -g wheel -m 600 /dev/null  /m1/jail/tristram/var/log/cron;  install -c -o root -g wheel -m 600  master.passwd nsmb.conf /m1/jail/tristram/etc;  ( cd /usr/src/etc/periodic; make install );  ( cd /usr/src/etc/../gnu/usr.bin/send-pr; make etc-gnats-freefall );  ( cd /usr/src/etc/../share/termcap; make etc-termcap );  ( cd /usr/src/etc/../usr.sbin/rmt; make etc-rmt );  pwd_mkdb -p -d /m1/jail/tristram/etc /m1/jail/tristram/etc/master.passwd )
===> daily
install -c -o root -g wheel -m 755 100.clean-disks  110.clean-tmps  120.clean-preserve  130.clean-msgs  140.clean-rwho  150.clean-hoststat  200.backup-passwd  210.backup-aliases  220.backup-distfile  300.calendar  310.accounting  320.rdist  330.news  400.status-disks  420.status-network  430.status-rwho  440.status-mailq  450.status-security  460.status-mail-rejects  470.status-named  500.queuerun  999.local 340.uucp  410.status-uucp  /m1/jail/tristram/etc/periodic/daily
===> security
install -c -o root -g wheel -m 755 100.chksetuid  200.chkmounts  300.chkuid0  400.passwdless  500.ipfwdenied  550.ipfwlimit  600.ip6fwdenied  650.ip6fwlimit  700.kernelmsg  800.loginfail  900.tcpwrap  /m1/jail/tristram/etc/periodic/security
===> weekly
install -c -o root -g wheel -m 755 120.clean-kvmdb  310.locate  320.whatis  330.catman  340.noid  400.status-pkg  999.local 300.uucp  /m1/jail/tristram/etc/periodic/weekly
===> monthly
install -c -o root -g wheel -m 755 200.accounting  999.local  /m1/jail/tristram/etc/periodic/monthly
install -c -o root -g wheel -m 0644  /usr/src/gnu/usr.bin/send-pr/categories  /m1/jail/tristram/etc/gnats/freefall
ln -fs /usr/share/misc/termcap /m1/jail/tristram/etc/termcap
rm -f /m1/jail/tristram/etc/rmt
ln -s /usr/sbin/rmt /m1/jail/tristram/etc/rmt
( cd /usr/src/etc/isdn; make install )
for i in answer                  isdntel.sh              record                 tell                     tell-record             unknown_incoming ; do  install -c -o root -g wheel -m 700 $i /m1/jail/tristram/etc/isdn ;  done ;  for i in holidays.D          isdnd.rates.A           isdnd.rates.D           isdnd.rates.F  isdnd.rates.L            isdnd.rates.UK.BT       isdnd.rc.sample                isdntel.alias.sample ; do  install -c -o root -g wheel -m 600 $i /m1/jail/tristram/etc/isdn ;  done
( cd /usr/src/etc/sendmail; make distribution );
install -c -o root -g wheel -m 644 /usr/src/etc/sendmail/freebsd.mc  /m1/jail/tristram/etc/mail/freebsd.mc
install -c -o root -g wheel -m 644 freebsd.cf  /m1/jail/tristram/etc/mail/freebsd.cf
install -c -o root -g wheel -m 644 freebsd.cf  /m1/jail/tristram/etc/mail/sendmail.cf
install -c -o root -g wheel -m 444 /usr/src/etc/sendmail/../../contrib/sendmail/cf/cf/submit.mc  /m1/jail/tristram/etc/mail/freebsd.submit.mc
install -c -o root -g wheel -m 444 /usr/src/etc/sendmail/../../contrib/sendmail/cf/cf/submit.cf  /m1/jail/tristram/etc/mail/freebsd.submit.cf
install -c -o root -g wheel -m 444 /usr/src/etc/sendmail/../../contrib/sendmail/cf/cf/submit.cf  /m1/jail/tristram/etc/mail/submit.cf
install -c -o root -g wheel -m 444 /usr/src/etc/sendmail/../../contrib/sendmail/src/helpfile  /m1/jail/tristram/etc/mail/helpfile
install -c -o root -g wheel -m 644 /dev/null  /m1/jail/tristram/var/log/sendmail.st
( cd /usr/src/etc/../gnu/libexec/uucp/sample; make install )
install -c -o root  -g wheel -m 444   call.sample  /m1/jail/tristram/etc/uucp/call.sample
install -c -o root  -g wheel -m 444   config.sample  /m1/jail/tristram/etc/uucp/config.sample
install -c -o root  -g wheel -m 444   dial.sample  /m1/jail/tristram/etc/uucp/dial.sample
install -c -o root  -g wheel -m 444   dialcode.sample  /m1/jail/tristram/etc/uucp/dialcode.sample
install -c -o root  -g wheel -m 444   passwd.sample  /m1/jail/tristram/etc/uucp/passwd.sample
install -c -o root  -g wheel -m 444   port.sample  /m1/jail/tristram/etc/uucp/port.sample
install -c -o root  -g wheel -m 444   sys1.sample  /m1/jail/tristram/etc/uucp/sys1.sample
install -c -o root  -g wheel -m 444   sys2.sample  /m1/jail/tristram/etc/uucp/sys2.sample
(cd /usr/src/etc; install -c -o root -g wheel -m 644 /usr/src/etc/../crypto/openssh/ssh_config  /usr/src/etc/../crypto/openssh/sshd_config  primes  /m1/jail/tristram/etc/ssh )
(cd /usr/src/etc; install -c -o root -g wheel -m 644 /usr/src/etc/../crypto/openssl/apps/openssl.cnf  /m1/jail/tristram/etc/ssl )
(cd /usr/src/etc/root;  install -c -o root -g wheel -m 644 dot.cshrc  /m1/jail/tristram/root/.cshrc;  install -c -o root -g wheel -m 644 dot.klogin  /m1/jail/tristram/root/.klogin;  install -c -o root -g wheel -m 644 dot.login  /m1/jail/tristram/root/.login;  install -c -o root -g wheel -m 644 dot.profile  /m1/jail/tristram/root/.profile;  rm -f /m1/jail/tristram/.cshrc /m1/jail/tristram/.profile;  ln /m1/jail/tristram/root/.cshrc /m1/jail/tristram/.cshrc;  ln /m1/jail/tristram/root/.profile /m1/jail/tristram/.profile)
cd /usr/src/etc/mtree; install -c -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 BSD.sendmail.dist /m1/jail/tristram/etc/mtree
cd /usr/src/etc/namedb; install -c -o root -g wheel -m 644  PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root  make-localhost /m1/jail/tristram/etc/namedb
cd /usr/src/etc/ppp; install -c -o root -g wheel -m 600  ppp.conf /m1/jail/tristram/etc/ppp
cd /usr/src/etc/mail; install -c -o root -g wheel -m 644  Makefile README mailer.conf access.sample virtusertable.sample  mailertable.sample aliases /m1/jail/tristram/etc/mail
+ ln -s mail/aliases /m1/jail/tristram/etc/aliases
install -c -o root -g operator -m 664 /dev/null  /m1/jail/tristram/etc/dumpdates
install -c -o nobody -g wheel -m 644 /dev/null  /m1/jail/tristram/var/db/locate.database
install -c -o root -g wheel -m 600 /dev/null  /m1/jail/tristram/var/log/auth.log
install -c -o root -g wheel -m 644 /dev/null  /m1/jail/tristram/var/log/lpd-errs
install -c -o root -g wheel -m 640 /dev/null  /m1/jail/tristram/var/log/maillog
install -c -o root -g wheel -m 644 /dev/null  /m1/jail/tristram/var/log/lastlog
install -c -o root -g wheel -m 644 /dev/null  /m1/jail/tristram/var/log/messages
install -c -o root -g wheel -m 600 /dev/null  /m1/jail/tristram/var/log/security
install -c -o root -g network -m 640 /dev/null  /m1/jail/tristram/var/log/slip.log
install -c -o root -g network -m 640 /dev/null  /m1/jail/tristram/var/log/ppp.log
install -c -o root -g wheel -m 644 /dev/null  /m1/jail/tristram/var/log/wtmp
install -c -o root -g wheel -m 644 /dev/null  /m1/jail/tristram/var/run/utmp
install -c -o root -g wheel -m 644 /usr/src/etc/minfree  /m1/jail/tristram/var/crash
(cd /usr/src/etc/..;  install -c -o root -g wheel -m 444  COPYRIGHT  /m1/jail/tristram/)
(cd /usr/src/etc/../share/man; make makedb; )
makewhatis /m1/jail/tristram/usr/share/man
makewhatis /m1/jail/tristram/usr/share/perl/man
salador # pwd
/usr/src/etc
salador # cd /m1/jail/tristram/dev
salador # ls
fd/
salador # 
>How-To-Repeat:

	D=/var/tmp/jail
	cd /usr/src
	make installworld DESTDIR=$D
	cd /usr/src/etc; make distribution DESTDIR=$D -DNO_MAKEDEV
	cd $D/dev
	ls -l MAKEDEV

>Fix:

	None to offer.  I suspect it's got something to do with -DNO_MAKEDEV and,
	perhaps, makefile mods anticipating DEVFS or something like that.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Oct 3 12:36:38 PDT 2003 
State-Changed-Why:  
Originator demonstrates good sense of humor. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37909 

From: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
To: Ruslan Ermilov <ru@freebsd.org>
Cc: FreeBSD-gnats-submit@freebsd.org, pdf@mun.ca
Subject: Re: conf/37909: make distribution DESTDIR=/path -DNO_MAKEDEV fails to install MAKEDEV
Date: Fri, 3 Oct 2003 22:23:06 +0200

 On Fri, Oct 03, 2003 at 12:38:00PM -0700, Ruslan Ermilov wrote:
 
 > Synopsis: make distribution DESTDIR=/path -DNO_MAKEDEV fails to install MAKEDEV
 > 
 > State-Changed-From-To: open->closed
 > State-Changed-By: ru
 > State-Changed-When: Fri Oct 3 12:36:38 PDT 2003
 > State-Changed-Why: 
 > Originator demonstrates good sense of humor.
 
 Note, make.conf states:
 
 # To avoid running MAKEDEV all on /dev during install:
 #NO_MAKEDEV=    true
 
 Same about make.conf(5):
      NO_MAKEDEV    (bool) Set to avoid running `MAKEDEV all'' on /dev during
                    install.
 
 Originator simply follows the documentation...
 
 However, NO_MAKEDEV prevents from installing and running MAKEDEV,
 while NO_MAKEDEV_RUN does the thing mentioned in make.conf for
 NO_MAKEDEV.
 
 
 
 -- 
 ha ha,
 Pawe Maachowski
State-Changed-From-To: closed->open 
State-Changed-By: ru 
State-Changed-When: Fri Oct 3 13:34:55 PDT 2003 
State-Changed-Why:  
Doug, your "en masse" MFC commit did not take care of 
upgrading the make.conf(5) and src/etc/defaults/make.conf 
regarding the NO_MAKEDEV_INSTALL variable. 

Could you please take care of it now? 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: ru 
Responsible-Changed-When: Fri Oct 3 13:34:55 PDT 2003 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=37909 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sun Feb 8 00:32:09 PST 2004 
State-Changed-Why:  

I fixed the documentation, thanks for bringing this to my attention. 

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