From nobody@FreeBSD.org  Sun Sep 23 13:58:13 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 33180106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Sep 2012 13:58:13 +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 1DF898FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Sep 2012 13:58:13 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8NDwCmK049646
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Sep 2012 13:58:12 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q8NDwCGP049645;
	Sun, 23 Sep 2012 13:58:12 GMT
	(envelope-from nobody)
Message-Id: <201209231358.q8NDwCGP049645@red.freebsd.org>
Date: Sun, 23 Sep 2012 13:58:12 GMT
From: Matthias Petermann <matthias@d2ux.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [BUG] sysutils/ezjail: ezjail_admin update -b (Cannot find your copy of the FreeBSD source tree)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: erdgeist@erdgeist.org

>Number:         171893
>Category:       ports
>Synopsis:       [BUG] sysutils/ezjail: ezjail_admin update -b (Cannot find your copy of the FreeBSD source tree)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 23 14:00:26 UTC 2012
>Closed-Date:    Fri Apr 26 22:43:01 UTC 2013
>Last-Modified:  Fri Apr 26 22:43:01 UTC 2013
>Originator:     Matthias Petermann
>Release:        9.0-p3
>Organization:
>Environment:
FreeBSD compaq 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The command:

	ezjail_admin update -b

responds with an error message on my system:

	Error: Cannot find your copy of the FreeBSD source tree in .
  	  Consider using 'ezjail-admin install' to create the base jail from
          an ftp server.

Opposite to the message, the FreeBSD source tree is installed under /usr/src
and the respective path is set in /usr/local/etc/ezjail.conf (ezjail_sourcetree).

Another system with ezJail 3.1 works fine with the same settings. I drilled
down the problem with diff of ezjail_admin version 3.1 vs. 3.2.2. It looks
like that 3.2.2 within the  #### ezjail-admin UPDATE ##### section unsets a
couple of variables but never assigns them again. Thats why later in the code: 

	# Bump the user for some of the most common errors
    [ -d "${ezjail_sourcetree}" ] || exerr "Error: Cannot find your
    copy of the FreeBSD source tree in ${ezjail_sourcetree}.\n  
    Consider using '${ezjail_admin} install' to create the base 
    jail from an ftp server."

exits with the error.

The problem was already reported to ezjail@erdgeist.org (the ezJail
mailing list). This PR is for informational purpose.
>How-To-Repeat:
After the installation of ezjail, try to update the basejail with:

ezjail_admin update -b
>Fix:
I could fix the problem in 3.2.2 temporarely by changing the line:
	unset ezjail_provideports ezjail_installaction ezjail_osversion_source
	ezjail_osversion_destination ezjail_sourcetree
to:
	unset ezjail_provideports ezjail_installaction ezjail_osversion_source 
	ezjail_osversion_destination 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Sep 23 14:00:39 UTC 2012 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: erdgeist@erdgeist.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/171893: [BUG] sysutils/ezjail: ezjail_admin update -b (Cannot find your copy of the FreeBSD source tree)
Date: Sun, 23 Sep 2012 14:00:35 UT

 Maintainer of sysutils/ezjail,
 
 Please note that PR ports/171893 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/171893
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Matthias Petermann <matthias@d2ux.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: ports/171893: [BUG] sysutils/ezjail: ezjail_admin update -b (Cannot
 find your copy of the FreeBSD source tree)
Date: Mon, 24 Sep 2012 18:26:23 +0200

 Hello, please close this PR. It was solved via Maintainer update on ports/171894 (http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/171894).
 
 Kind regards,
 Matthias
 
 -- 
 Matthias Petermann <matthias@d2ux.net>

From: Matthias Petermann <matthias@d2ux.net>
To: bug-followup@FreeBSD.org, matthias@d2ux.net
Cc:  
Subject: Re: ports/171893: *Please Close* [BUG] sysutils/ezjail: ezjail_admin
 update -b (Cannot find your copy of the FreeBSD source tree)
Date: Sat, 27 Apr 2013 00:10:29 +0200

 Hello, this PR is fixed by the maintainer long time ago. It can be closed.
 
 Thanks & Kind regards,
 Matthias
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Apr 26 22:42:47 UTC 2013 
State-Changed-Why:  
Closed at submitter's request. 

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