From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 3 09:50:28 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1819B16A5DE for ; Thu, 3 Aug 2006 09:50:26 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A949E43D5A for ; Thu, 3 Aug 2006 09:50:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k739oLYi066147 for ; Thu, 3 Aug 2006 09:50:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k739oLIi066146; Thu, 3 Aug 2006 09:50:21 GMT (envelope-from gnats) Resent-Date: Thu, 3 Aug 2006 09:50:21 GMT Resent-Message-Id: <200608030950.k739oLIi066146@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Heiner Eichmann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27AFE16A4DE for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/101310: proposal: OPTION_VERSION in port system X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 09:50:28 -0000 >Number: 101310 >Category: ports >Synopsis: proposal: OPTION_VERSION in port system >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 03 09:50:21 GMT 2006 >Closed-Date: >Last-Modified: >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: >Unformatted: