From nobody@FreeBSD.org  Sat Sep 24 20:20:06 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 88FAC1065680
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Sep 2011 20:20:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 585F58FC25
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Sep 2011 20:20:06 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8OKK6Yr086933
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Sep 2011 20:20:06 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8OKK5db086928;
	Sat, 24 Sep 2011 20:20:06 GMT
	(envelope-from nobody)
Message-Id: <201109242020.p8OKK5db086928@red.freebsd.org>
Date: Sat, 24 Sep 2011 20:20:06 GMT
From: Glen Barber <gjb@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] etc/sendmail/Makefile: 'make distribution' fails to install freebsd.cf and freebsd.submit.cf
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160995
>Category:       misc
>Synopsis:       [patch] etc/sendmail/Makefile: 'make distribution' fails to install freebsd.cf and freebsd.submit.cf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 24 20:30:09 UTC 2011
>Closed-Date:    Thu Sep 29 20:42:11 UTC 2011
>Last-Modified:  Thu Sep 29 20:42:11 UTC 2011
>Originator:     Glen Barber
>Release:        9.0-BETA1, 64-bit
>Organization:
>Environment:
FreeBSD kaos 9.0-BETA1 FreeBSD 9.0-BETA1 #1 r224632: Wed Aug  3 14:36:24 EDT 2011     root@kaos:/usr/obj/usr/src/sys/KAOS  amd64
>Description:
Configuring a 9.0-STABLE (r225746), 32-bit Tinderbox jail on a 9.0-BETA2, 64-bit host machine consistently fails when 'make distribution' is run.  This does not happen when configuring 64-bit Tinderbox jails.

Output from distribution.tmp shows the following:

===> master (install)
install -o root -g wheel  -m 644 empty.db localhost-forward.db localhost-reverse.db /tinderbox/jails/9-STABLE-32/tmp/etc/namedb/master
cd /tinderbox/jails/9-STABLE-32/src/etc/sendmail; make distribution
install -o root -g wheel -m 644  /tinderbox/jails/9-STABLE-32/src/etc/sendmail/freebsd.mc freebsd.cf /tinderbox/jails/9-STABLE-32/tmp/etc/mail
install: freebsd.cf: No such file or directory
*** Error code 71

Stop in /tinderbox/jails/9-STABLE-32/src/etc/sendmail.
*** Error code 1

Stop in /tinderbox/jails/9-STABLE-32/src/etc.


>How-To-Repeat:

>Fix:
The attached patch fixes the problem for me.

Patch attached with submission follows:

Index: etc/sendmail/Makefile
===================================================================
--- etc/sendmail/Makefile	(revision 225746)
+++ etc/sendmail/Makefile	(working copy)
@@ -64,9 +64,9 @@
 
 distribution:
 	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
-	    ${.CURDIR}/freebsd.mc freebsd.cf ${DESTDIR}/etc/mail
+	    ${.CURDIR}/freebsd.mc freebsd.cf
 	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
-	    ${.CURDIR}/freebsd.submit.mc freebsd.submit.cf ${DESTDIR}/etc/mail
+	    ${.CURDIR}/freebsd.submit.mc freebsd.submit.cf
 	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
 	    ${SMDIR}/helpfile ${DESTDIR}/etc/mail
 	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 \


>Release-Note:
>Audit-Trail:

From: Glen Barber <gjb@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc: Glen Barber <gjb@FreeBSD.org>
Subject: Re: misc/160995: [patch] etc/sendmail/Makefile: 'make distribution'
 fails to install freebsd.cf and freebsd.submit.cf
Date: Mon, 26 Sep 2011 12:44:40 -0400

 On 9/24/11 4:20 PM, Glen Barber wrote:
 >> Number:         160995
 >> Category:       misc
 >> Synopsis:       [patch] etc/sendmail/Makefile: 'make distribution' fails to install freebsd.cf and freebsd.submit.cf
 
 I've just reproduced this with clean checkouts of 10-CURRENT.  As with
 the original report, this appears to be i386 and/or cross-building specific.
 
 I can provide the full log files if necessary (rather large to post to
 GNATS, I think).
 
 Regards,
 
 Glen
 
 -- 
 Glen Barber | gjb@FreeBSD.org
 FreeBSD Documentation Project
State-Changed-From-To: open->closed 
State-Changed-By: gjb 
State-Changed-When: Thu Sep 29 20:40:51 UTC 2011 
State-Changed-Why:  
I'm not yet sure why, but when cross-building outside of tinderbox, 
'make distribution' works as expected. 


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