From nobody@FreeBSD.org  Wed Jan 18 13:03:43 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 3AA5116A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Jan 2006 13:03:43 +0000 (GMT)
	(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 066AB43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Jan 2006 13:03:43 +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 k0ID3g5I006122
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Jan 2006 13:03:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k0ID3gJZ006121;
	Wed, 18 Jan 2006 13:03:42 GMT
	(envelope-from nobody)
Message-Id: <200601181303.k0ID3gJZ006121@www.freebsd.org>
Date: Wed, 18 Jan 2006 13:03:42 GMT
From: "KK.Kon" <kkkon@mizar.freemail.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: incorrect cross-install ?(/usr/src/etc/Makefile)
X-Send-Pr-Version: www-2.3

>Number:         91959
>Category:       conf
>Synopsis:       incorrect cross-install ?(/usr/src/etc/Makefile)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 18 13:10:04 GMT 2006
>Closed-Date:    Mon Mar 24 08:45:11 UTC 2008
>Last-Modified:  Mon Mar 24 08:45:11 UTC 2008
>Originator:     KK.Kon
>Release:        6.0-RELEASE
>Organization:
>Environment:
FreeBSD P3BF.eve 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
/usr/src/UPDATING
 To cross-install current onto a separate partition

'make distribution' does incorrect copy
in /usr/src/etc/Makefile

it use ${MACHINE_ARCH} and ${MACHINE}

>How-To-Repeat:
i.e make distribution TARGET_ARCH=amd64 at i386 machine
>Fix:
/usr/src/etc/Makefile

maybe modify ${MACHINE_ARCH} and ${MACHINE} to ${TARGET_ARCH}

>Release-Note:
>Audit-Trail:

From: "Dylan Cochran" <a134qaed@gmail.com>
To: bug-followup@freebsd.org, KK.Kon <kkkon@mizar.freemail.ne.jp>
Cc:  
Subject: Re: conf/91959: incorrect cross-install ?(/usr/src/etc/Makefile)
Date: Fri, 22 Feb 2008 18:40:06 -0500

 Makefile.inc1 sets MACHINE and MACHINE_ARCH to TARGET and TARGET_ARCH
 respectively, before running the actual copy; did you change TARGET
 and TARGET_ARCH or just one?
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sat Feb 23 02:41:03 UTC 2008 
State-Changed-Why:  
Note that submitter has been asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91959 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Mon Mar 24 08:43:40 UTC 2008 
State-Changed-Why:  
Feedback timeout (1 month).  I've just tested it on a 7.0-R 
system, and "make distribution" seems to work as expected 
when TARGET_ARCH is set. 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Mar 24 08:43:40 UTC 2008 
Responsible-Changed-Why:  
Track 

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