From bryan@shatow.net  Wed Jun 13 15:31:34 2012
Return-Path: <bryan@shatow.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4B65610656B9
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Jun 2012 15:31:34 +0000 (UTC)
	(envelope-from bryan@shatow.net)
Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92])
	by mx1.freebsd.org (Postfix) with ESMTP id AA8F38FC1C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Jun 2012 15:31:33 +0000 (UTC)
Received: (qmail 55469 invoked from network); 13 Jun 2012 10:31:30 -0500
Received: from unknown (HELO test8.xzibition.com) (10.10.0.34)
  by sweb.xzibition.com with SMTP; 13 Jun 2012 10:31:30 -0500
Received: by test8.xzibition.com (sSMTP sendmail emulation); Wed, 13 Jun 2012 10:31:22 -0500
Message-Id: <20120613153134.4B65610656B9@hub.freebsd.org>
Date: Wed, 13 Jun 2012 10:31:22 -0500
From: "Bryan Drewery" <bryan@shatow.net>
Reply-To: Bryan Drewery <bryan@shatow.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: bapt@freebsd.org, avg@FreeBSD.org, girgen@pingpong.net
Subject: [bsd.port.mk] Fix sanity-config error when using WRKDIRPREFIX
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         169039
>Category:       ports
>Synopsis:       [bsd.port.mk] Fix sanity-config error when using WRKDIRPREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bapt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 13 15:40:06 UTC 2012
>Closed-Date:    Fri Jun 15 12:05:12 UTC 2012
>Last-Modified:  Fri Jun 15 12:10:01 UTC 2012
>Originator:     Bryan Drewery
>Release:        FreeBSD 8.3-RELEASE i386
>Organization:
>Environment:

	
>Description:
	When using WRKDIRPREFIX=/usr/obj, the 'make config' can cause an error:

	make: don't know how to make sanity-config. Stop
	*** Error code 2

	Stop in /usr/ports/devel/subversion.

>How-To-Repeat:
	echo "WRKDIRPREFIX=/usr/obj" >> /etc/make.conf
	cd /tmp
	make -C /usr/ports/devel/subversion config
>Fix:

	Patch By: Andriy Gapon <avg@FreeBSD.org>
	Reported by: Paul Girgensohn

--- patch-sanity-config.txt begins here ---
--- bsd.port.mk.orig	2012-06-13 10:26:44.000000000 -0500
+++ bsd.port.mk	2012-06-13 10:26:51.000000000 -0500
@@ -6101,7 +6101,7 @@
 		${CAT} $${TMPOPTIONSFILE} > ${OPTIONSFILE}; \
 	fi; \
 	${RM} -f $${TMPOPTIONSFILE}
-	@${MAKE} sanity-config
+	@cd ${.CURDIR} && ${MAKE} sanity-config;
 .endif
 .endif # config
 
--- patch-sanity-config.txt ends here ---


>Release-Note:
>Audit-Trail:

From: Bryan Drewery <bryan@shatow.net>
To: bug-followup@FreeBSD.org
Cc: Baptiste Daroussin <bapt@FreeBSD.org>
Subject: Re: ports/169039: [bsd.port.mk] Fix sanity-config error when using
 WRKDIRPREFIX
Date: Wed, 13 Jun 2012 10:46:23 -0500

 This is a multi-part message in MIME format.
 --------------000308080004090702070809
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 Attached is proper patch.
 
 --------------000308080004090702070809
 Content-Type: text/plain; charset=windows-1252;
  name="patch-sanity-config.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="patch-sanity-config.txt"
 
 --- bsd.port.mk.orig	2012-06-13 10:26:44.000000000 -0500
 +++ bsd.port.mk	2012-06-13 10:37:21.000000000 -0500
 @@ -6010,7 +6010,7 @@
  	[Nn]|[Nn][Oo]) \
  		exit 0; \
  	esac; \
 -	${MAKE} config
 +	cd ${.CURDIR} && ${MAKE} config;
  .endif
  .endif # sanity-config
  
 @@ -6101,7 +6101,7 @@
  		${CAT} $${TMPOPTIONSFILE} > ${OPTIONSFILE}; \
  	fi; \
  	${RM} -f $${TMPOPTIONSFILE}
 -	@${MAKE} sanity-config
 +	@cd ${.CURDIR} && ${MAKE} sanity-config;
  .endif
  .endif # config
  
 
 --------------000308080004090702070809--
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Thu Jun 14 07:37:26 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169039 
Responsible-Changed-From-To: miwi->bapt 
Responsible-Changed-By: bapt 
Responsible-Changed-When: Fri Jun 15 11:49:26 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169039 
State-Changed-From-To: open->closed 
State-Changed-By: bapt 
State-Changed-When: Fri Jun 15 12:05:11 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/169039: commit references a PR
Date: Fri, 15 Jun 2012 12:05:20 +0000 (UTC)

 bapt        2012-06-15 12:04:52 UTC
 
   FreeBSD ports repository
 
   Modified files:
     Mk                   bsd.port.mk 
   Log:
   Fix sanity-config error when using WRKDIRPREFIX [1]
   While apply the same fix to fetch-urlall-list and fetch-url-list [2]
   
   PR:             ports/169039 [1]
   Reported by:    avg@ [1], Jan Beich <jbeich@tormail.org> [2]
   exp-run:        pointyhat-west (bapt)
   
   Revision  Changes    Path
   1.729     +5 -5      ports/Mk/bsd.port.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:
