From nobody@FreeBSD.org  Mon Oct  1 01:21:41 2007
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 9544616A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Oct 2007 01:21:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 85E1313C4B5
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Oct 2007 01:21:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l911LeSm067019
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 1 Oct 2007 01:21:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l911Le4M067018;
	Mon, 1 Oct 2007 01:21:40 GMT
	(envelope-from nobody)
Message-Id: <200710010121.l911Le4M067018@www.freebsd.org>
Date: Mon, 1 Oct 2007 01:21:40 GMT
From: Daniel Mansfiled <dman@cse.unsw.edu.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: make distribution failed for sendmail
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116775
>Category:       misc
>Synopsis:       [patch] make distribution failed for sendmail while cross-compiling i386 to amd64
>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:   Mon Oct 01 01:30:00 GMT 2007
>Closed-Date:    Mon Nov 19 09:00:49 UTC 2007
>Last-Modified:  Mon Nov 19 09:00:49 UTC 2007
>Originator:     Daniel Mansfiled
>Release:        6.2
>Organization:
>Environment:
FreeBSD artemis.botany.ath.cx 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

>Description:
While cross compiling an AMD64 userland and kernel on my i386: make
distribution failed because of incomplete paths specified between lines
66-76 of /usr/src/etc/sendmail/Makefile.

Also freebsd.submit.cf was missing.

Dan  

>How-To-Repeat:
cd /usr/src; make buildworld
cd /usr/src/etc; make distribution
>Fix:
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
            ${.CURDIR}/freebsd.mc freebsd.cf ${DESTDIR}/etc/mail

should read

${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
            ${.CURDIR}/freebsd.mc ${.CURDIR}/freebsd.cf ${DESTDIR}/etc/mail


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Nov 18 14:33:03 UTC 2007 
Responsible-Changed-Why:  
Reclassify this.  There is no really good category for these types of 
errors. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116775 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon Nov 19 08:53:47 UTC 2007 
State-Changed-Why:  
Daniel, 

src/etc/sendmail/Makefile is correct, and your suggested change is wrong. 
The *.cf files are generated during the build and placed in the object 
directory (the canonical path being /usr/obj/usr/src/etc/sendmail), 
which is the current working directory when make(1) is run. 

Also, as a general note, while running "make distribution", and especially 
when cross-building with TARGET_ARCH/TARGET, run it from the top-level 
src/Makefile, and not from src/etc/Makefile directly. 

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