From root@corp.grupos.com.br  Wed Dec  8 20:00:43 2004
Return-Path: <root@corp.grupos.com.br>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id D469A16A4CE; Wed,  8 Dec 2004 20:00:43 +0000 (GMT)
Received: from gwmail1.grupos.com.br (gwmail1.grupos.com.br [66.90.64.125])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 763DC43D5C; Wed,  8 Dec 2004 20:00:43 +0000 (GMT)
	(envelope-from root@corp.grupos.com.br)
Received: from corp.grupos.com.br (unknown [150.162.166.55])
	by gwmail1.grupos.com.br (Postfix) with ESMTP id BA1C13BFE7;
	Wed,  8 Dec 2004 18:00:42 -0200 (BRST)
Received: by corp.grupos.com.br (Postfix, from userid 0)
	id F276620A9B; Wed,  8 Dec 2004 18:00:41 -0200 (BRST)
Message-Id: <20041208200041.F276620A9B@corp.grupos.com.br>
Date: Wed,  8 Dec 2004 18:00:41 -0200 (BRST)
From: Marcus Grando <marcus@corp.grupos.com.br>
Reply-To: Marcus Grando <marcus@corp.grupos.com.br>
To: FreeBSD-gnats-submit@freebsd.org
Cc: portmgr@FreeBSD.org
Subject: Update Mk/bsd.port.mk to support python packages with OPTIONS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         74866
>Category:       ports
>Synopsis:       Update Mk/bsd.port.mk to support python packages with OPTIONS
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 08 20:10:17 GMT 2004
>Closed-Date:    Tue Nov 08 09:14:46 GMT 2005
>Last-Modified:  Tue Nov 08 09:14:46 GMT 2005
>Originator:     Marcus Grando
>Release:        FreeBSD 4.11-PRERELEASE i386
>Organization:
Grupos Internet S/A
>Environment:
System: FreeBSD corp.grupos.com.br 4.11-PRERELEASE FreeBSD 4.11-PRERELEASE #32: Tue Dec 7 12:11:36 BRST 2004 root@corp.grupos.com.br:/usr/obj/usr/src/sys/CORP i386


	
>Description:
Update Mk/bsd.port.mk to support python (py-*) packages with OPTIONS

In accordance with Hye-Shik Chang <perky@FreeBSD.org> say, include bsd.python.mk
is need before OPTIONS part.

Patch only move OPTIONS to the end of pre section.
	
>How-To-Repeat:
	
>Fix:
	

--- bsd.port.mk.patch begins here ---
--- bsd.port.mk.orig	Tue Dec  7 18:49:22 2004
+++ bsd.port.mk	Tue Dec  7 18:49:49 2004
@@ -954,25 +954,6 @@
 USE_SUBMAKE=	yes
 .endif
 
-# where 'make config' records user configuration options
-PORT_DBDIR?=	/var/db/ports
-
-.if defined(LATEST_LINK)
-UNIQUENAME?=	${LATEST_LINK}
-.else
-UNIQUENAME?=	${PKGNAMEPREFIX}${PORTNAME}
-.endif
-OPTIONSFILE?=	${PORT_DBDIR}/${UNIQUENAME}/options
-_OPTIONSFILE!=	${ECHO_CMD} "${OPTIONSFILE}"
-.if defined(OPTIONS)
-.if exists(${_OPTIONSFILE}) && !make(rmconfig)
-.include "${_OPTIONSFILE}"
-.endif
-.if exists(${_OPTIONSFILE}.local)
-.include "${_OPTIONSFILE}.local"
-.endif
-.endif
-
 # check for old, crufty, makefile types, part 1:
 .if !defined(PORTNAME) || !( defined(PORTVERSION) || defined (DISTVERSION) ) || defined(PKGNAME)
 check-makefile::
@@ -1199,6 +1180,25 @@
 # Owner and group of the WWW user
 WWWOWN?=	www
 WWWGRP?=	www
+
+# where 'make config' records user configuration options
+PORT_DBDIR?=	/var/db/ports
+
+.if defined(LATEST_LINK)
+UNIQUENAME?=	${LATEST_LINK}
+.else
+UNIQUENAME?=	${PKGNAMEPREFIX}${PORTNAME}
+.endif
+OPTIONSFILE?=	${PORT_DBDIR}/${UNIQUENAME}/options
+_OPTIONSFILE!=	${ECHO_CMD} "${OPTIONSFILE}"
+.if defined(OPTIONS)
+.if exists(${_OPTIONSFILE}) && !make(rmconfig)
+.include "${_OPTIONSFILE}"
+.endif
+.if exists(${_OPTIONSFILE}.local)
+.include "${_OPTIONSFILE}.local"
+.endif
+.endif
 
 .endif
 # End of pre-makefile section.
--- bsd.port.mk.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr 
Responsible-Changed-By: erwin 
Responsible-Changed-When: Wed Dec 8 20:46:28 GMT 2004 
Responsible-Changed-Why:  
portmgr territory 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74866 
State-Changed-From-To: open->analyzed 
State-Changed-By: kris 
State-Changed-When: Wed Jun 1 19:43:28 GMT 2005 
State-Changed-Why:  
Currently scheduled for testing on the next experimental package build. 

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

From: Sergey Matveychuk <sem@FreeBSD.org>
To: bug-followup@FreeBSD.org,  marcus@corp.grupos.com.br
Cc:  
Subject: Re: ports/74866: Update Mk/bsd.port.mk to support python packages
 with OPTIONS
Date: Wed, 28 Sep 2005 22:46:49 +0400

 Will it work if somebody wants to use optional python dependence 
 (WITH_PYTHON/WITHOUT_PYTHON) in OPTIONS?
 
 --
 Sem.
State-Changed-From-To: analyzed->closed 
State-Changed-By: clement 
State-Changed-When: Tue Nov 8 09:14:24 GMT 2005 
State-Changed-Why:  
Committed. Thanks! 

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