From nobody@FreeBSD.org  Wed Oct 24 14:53:52 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 066A716A469
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2007 14:53:52 +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 02B1413C4A3
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2007 14:53:52 +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 l9OErPLf006811
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2007 14:53:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9OErO64006810;
	Wed, 24 Oct 2007 14:53:24 GMT
	(envelope-from nobody)
Message-Id: <200710241453.l9OErO64006810@www.freebsd.org>
Date: Wed, 24 Oct 2007 14:53:24 GMT
From: Erik Cederstrand <erik@cederstrand.dk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: make config doesn't work with DESTDIR
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117453
>Category:       ports
>Synopsis:       make config doesn't work with DESTDIR
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 24 15:00:05 UTC 2007
>Closed-Date:    Tue Mar 11 23:37:42 UTC 2008
>Last-Modified:  Tue Mar 11 23:40:08 UTC 2008
>Originator:     Erik Cederstrand
>Release:        7.0-PRERELEASE
>Organization:
>Environment:
FreeBSD pc.local 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Thu Oct 18 09:08:52 CEST 2007     root@pc.local:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Installing ports with config options into new FreeBSD environments using the
new DESTDIR support for ports doesn't work. It leaves the console with a blank
screen and a cursor blinking at the lower right corner. Presumably, it is
possible to interact blindly with the config screen (e.g. press Esc to choose
the default options), but the option screen never shows.

As a workaround, placing the /var/db/ports/myport/options file inside the
chroot lets "make install clean" complete.
>How-To-Repeat:
cd /usr/ports/benchmarks/super-smack
make config DESTDIR=/path/to/chroot
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Oct 24 15:31:47 UTC 2007 
Responsible-Changed-Why:  
bsd.port.mk is portmgr territory (via the GNATS Auto Assign Tool) 

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

From: Erik Cederstrand <erik@cederstrand.dk>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/117453: make config doesn't work with DESTDIR
Date: Fri, 26 Oct 2007 15:42:57 +0200

 Some addidtional data:
 
 If I submit a chroot /path/to/chroot sh -c "cd /path/to/port; make 
 install clean;" which seems to be what the destdir implementation does, 
 I get the config screen.
 
 Erik

From: Pav Lucistnik <pav@FreeBSD.org>
To: bug-followup@FreeBSD.org, erik@cederstrand.dk
Cc:  
Subject: Re: ports/117453: make config doesn't work with DESTDIR
Date: Thu, 03 Jan 2008 14:29:19 +0100

 Here is the stop-gap patch to fix this problem:
 
 Index: bsd.destdir.mk
 ===================================================================
 RCS file: /home/pcvs/ports/Mk/bsd.destdir.mk,v
 retrieving revision 1.1
 diff -a -u -r1.1 bsd.destdir.mk
 --- bsd.destdir.mk	4 Aug 2007 11:37:23 -0000	1.1
 +++ bsd.destdir.mk	3 Jan 2008 13:28:24 -0000
 @@ -76,7 +76,7 @@
  .endif
  
  DESTDIR_ENV_LIST?=
 -DESTDIR_ENV=	CHROOTED=yes
 +DESTDIR_ENV=	CHROOTED=yes TERM=${TERM}
  .for _var in ${DESTDIR_ENV_LIST:NDESTDIR:NCHROOTED:NPORTSDIR}
  DESTDIR_ENV+=	${_var}="${${_var}}"
  .endfor
 
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 The Linimon's Rule: The More You Close, The More Will Come
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Tue Mar 11 23:35:58 UTC 2008 
State-Changed-Why:  
Fixed, thanks for reporting this! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/117453: commit references a PR
Date: Tue, 11 Mar 2008 23:37:38 +0000 (UTC)

 pav         2008-03-11 23:37:32 UTC
 
   FreeBSD ports repository
 
   Modified files:
     Mk                   bsd.destdir.mk 
   Log:
   - Pass PATH variable to chrooted command, so BUILD/RUN_DEPENDS have a chance of
     working
   
   PR:             ports/117738
   Reported by:    Erik Cederstrand <erik@cederstrand.dk>
   Patch by:       pav
   
   - Pass TERM variable to chrooted command, so the OPTIONS screen work
   
   PR:             ports/117453
   Reported by:    Erik Cederstrand <erik@cederstrand.dk>
   Patch by:       pav
   
   Revision  Changes    Path
   1.2       +2 -2      ports/Mk/bsd.destdir.mk
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
