From edwardc@pc12.adsl93c.tku.edu.tw  Sat Mar 11 16:17:32 2000
Return-Path: <edwardc@pc12.adsl93c.tku.edu.tw>
Received: from pc12.adsl93c.tku.edu.tw (pc12.adsl93c.tku.edu.tw [163.13.93.204])
	by hub.freebsd.org (Postfix) with ESMTP id E79B137BAAC
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Mar 2000 16:17:22 -0800 (PST)
	(envelope-from edwardc@pc12.adsl93c.tku.edu.tw)
Received: (from edwardc@localhost)
	by pc12.adsl93c.tku.edu.tw (8.9.3/8.9.3) id IAA01372;
	Sun, 12 Mar 2000 08:16:56 +0800 (CST)
	(envelope-from edwardc)
Message-Id: <200003120016.IAA01372@pc12.adsl93c.tku.edu.tw>
Date: Sun, 12 Mar 2000 08:16:56 +0800 (CST)
From: edwardc@firebird.org.tw
Sender: edwardc@pc12.adsl93c.tku.edu.tw
Reply-To: edwardc@firebird.org.tw
To: FreeBSD-gnats-submit@freebsd.org
Subject: no USA_RESIDENT define while make release
X-Send-Pr-Version: 3.2

>Number:         17328
>Category:       misc
>Synopsis:       no USA_RESIDENT define while make release
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 11 16:20:00 PST 2000
>Closed-Date:    Wed Mar 15 19:22:23 PST 2000
>Last-Modified:  Wed Mar 15 19:23:45 PST 2000
>Originator:     Edward Ping-Da Chuang
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Firebird BBS Project
>Environment:

FreeBSD puffy.firebird.dhs.org 4.0-CURRENT FreeBSD 4.0-CURRENT #3: Sat Mar 11 
07:12:36 CST 2000     root@puffy.firebird.dhs.org:/S/src/sys/compile/Ming-Hue
y  i386

>Description:

	There's no USA_RESIDENT to stuff in ${CHROOTDIR}/mk while make
	release, so it will broken while execute make world after chroot.

	Please commit this ASAP. I think it's critical for future release.

>How-To-Repeat:

	cd /usr/src/release ; make release 

>Fix:

--- Makefile.orig   Sat Mar  4 04:39:22 2000
+++ Makefile    Sun Mar 12 08:12:37 2000
@@ -142,6 +142,9 @@
 .if !defined(CHROOTDIR) || !defined(BUILDNAME) || !defined(CVSROOT)
    @echo "To make a release you must set CHROOTDIR, BUILDNAME and CVSROOT" &&
 .endif
+.if !defined(USA_RESIDENT)
+   @echo "You must set USA_RESIDENT to YES or NO if you are resident in USA."
+.endif
 .if make(release)
 .if exists(${CHROOTDIR})
 # The first command will fail on a handful of files that have their schg
@@ -238,6 +241,8 @@
 .endif
    # Don't remove this, or the build will fall over!
    echo "export RELEASEDIR=${_R}"      >> ${CHROOTDIR}/mk
+   # add USA_RESIDENT since openssl add to the source tree
+   echo "export USA_RESIDENT=${USA_RESIDENT}"  >> ${CHROOTDIR}/mk
    echo "export PATH=${BOOTSTRAPDIR}:$${PATH}:${LOCALDIR}" >> ${CHROOTDIR}/mk
    echo "if [ ! -f /tmp/.world_done ]; then" >> ${CHROOTDIR}/mk
    echo "  cd /usr/src"            >> ${CHROOTDIR}/mk

>Release-Note:
>Audit-Trail:

From: Ruslan Ermilov <ru@ucb.crimea.ua>
To: edwardc@firebird.org.tw
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/17328: no USA_RESIDENT define while make release
Date: Mon, 13 Mar 2000 10:51:01 +0200

 On Sun, Mar 12, 2000 at 08:16:56AM +0800, edwardc@firebird.org.tw wrote:
 > 
 > >Number:         17328
 > >Category:       misc
 > >Synopsis:       no USA_RESIDENT define while make release
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       high
 > >Release:        FreeBSD 4.0-CURRENT i386
 > 
 > 	There's no USA_RESIDENT to stuff in ${CHROOTDIR}/mk while make
 > 	release, so it will broken while execute make world after chroot.
 > 
 > 	Please commit this ASAP. I think it's critical for future release.
 > 
 You could set USA_RESIDENT in the environment, or on the make(1)'s command
 line.
 
 
 -- 
 Ruslan Ermilov		Sysadmin and DBA of the
 ru@ucb.crimea.ua	United Commercial Bank,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.247.647	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
 
State-Changed-From-To: open->closed  
State-Changed-By: cpiazza 
State-Changed-When: Wed Mar 15 19:22:23 PST 2000 
State-Changed-Why:  
Similar addition to src/release/Makefile was done by jkh on Mar. 12. 
Thanks! 
>Unformatted:
