From nobody@FreeBSD.org  Thu Aug  3 09:49:25 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 27AFE16A4DE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Aug 2006 09:49:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1964943D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Aug 2006 09:49:24 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k739nNG7013470
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Aug 2006 09:49:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k739nN0v013466;
	Thu, 3 Aug 2006 09:49:23 GMT
	(envelope-from nobody)
Message-Id: <200608030949.k739nN0v013466@www.freebsd.org>
Date: Thu, 3 Aug 2006 09:49:23 GMT
From: Heiner Eichmann <h.eichmann@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc: pav@FreeBSD.org,itetcu@FreeBSD.org
Subject: proposal: OPTION_VERSION in port system
X-Send-Pr-Version: www-2.3

>Number:         101310
>Category:       ports
>Synopsis:       proposal: OPTION_VERSION in port system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 03 09:50:21 GMT 2006
>Closed-Date:    Sat Jul 28 23:14:53 GMT 2007
>Last-Modified:  Sat Jul 28 23:14:53 GMT 2007
>Originator:     Heiner Eichmann
>Release:        5.3
>Organization:
Sirius Cybernetics Corp.
>Environment:
>Description:
In order to configure a port, it is recommended, that the porter uses the OPTIONS variable in the port. If the user
installs the port, the options are shown and the choices are used to build the port. Furthermore these choices are strored.
If the port is upgrade or reinstalled, the stored choices are used. The only problem is: if the porter changes the options
(e.g. adding new options or changing the meaning of existing ones), the port user will not notice it.

A solution could be an additional variable: OPTION_VERSION. The porter should set it to a number. This number is stored 
together with the users choices. Just two rules are necessary:

- if the porter chnages the options, increment the OPTION_VERSION number in the ports Makefile
- if a port is built and the Makefiles OPTION_VERSION if higher than the OPTION_VERSION of the stored choices, show the
option dialog again, using the proviously stored choices, if possible.

With this two rules the user will always be aware of an options change of a port.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Thu Aug 3 10:14:35 UTC 2006 
Responsible-Changed-Why:  
Track for now 

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

From: Ion-Mihai "IOnut" Tetcu <itetcu@FreeBSD.org>
To: Heiner Eichmann <h.eichmann@gmx.de>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/101310: proposal: OPTION_VERSION in port system
Date: Thu, 3 Aug 2006 13:14:10 +0300

 --Sig__sxJTRIWoq.ZZdUJxEr5RUT
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 Take a look at mail/dspam/Makefile for
 MIN_OPTION_VER and check-options-version: target
 I think it does what you want.
 
 There is also a PR on this submitted by pav@=20
 
 
 --=20
 IOnut - Un^d^dregistered ;) FreeBSD "user"
   "Intellectual Property" is   nowhere near as valuable   as "Intellect"
 
 BOFH excuse #10:
 hardware stress fractures
 
 
 
 --Sig__sxJTRIWoq.ZZdUJxEr5RUT
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.4 (FreeBSD)
 
 iD8DBQFE0cxzBX6fi0k6KXsRAkYmAKCxplnaWrvo6EXUw7O7zojThZiihgCgjTkg
 q/qQx1NdtDR/jRpCPTnhY2E=
 =tzJL
 -----END PGP SIGNATURE-----
 
 --Sig__sxJTRIWoq.ZZdUJxEr5RUT--
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri May 25 03:34:08 UTC 2007 
State-Changed-Why:  
To pav and itetcu: are either of you interested in pursuing this one? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101310 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Sat Jul 28 23:14:10 UTC 2007 
State-Changed-Why:  
The framework will re-display the OPTIONS dialog, if the set of OPTIONS in the 
port is different from the saved preferences. That change happened quite some 
time ago. 

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