From owner-freebsd-sysinstall@FreeBSD.ORG Mon Nov 8 10:43:17 2010 Return-Path: Delivered-To: freebsd-sysinstall@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88EC01065670; Mon, 8 Nov 2010 10:43:17 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id E13778FC16; Mon, 8 Nov 2010 10:43:16 +0000 (UTC) Received: by gxk9 with SMTP id 9so3361111gxk.13 for ; Mon, 08 Nov 2010 02:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=hegM2IJGkDhk5ld2kikgHBeHooLjbJPt5tTekM5Pb24=; b=de/ZGldAvOkLsewQad0fY3ThIQbsogh3SS0hERHyyKvAzVUy2hXbIa30CtzJl++XR/ Hhq4DkL0LobYXYHPGhubx9mzJ7IwXCqfV8JBs/qIeiWK/c5dXXs3z3gDJ9RyxTGTeU4Q ucuEwT+Q4UUZiQooy8ET0AY3lQ3Lr/UwUpXhA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=VYu5gSNp26Z61Pk+Y2VPxRoV2YQVvU7RCAQmsypHnHQl4xAuFar5EAeg0jyZ7tF/gE DoV2KJRb2sq/tXm4fb9t8lF16jR9FvtkzYK6A6PbjXw42Qd0g1GAFtEqwEQXG3GQUlEE TKxZzq/xaQXA4I4StCRdXWHcXYcV4sYBQIMQg= MIME-Version: 1.0 Received: by 10.42.180.131 with SMTP id bu3mr3610800icb.129.1289211482211; Mon, 08 Nov 2010 02:18:02 -0800 (PST) Sender: baptiste.daroussin@gmail.com Received: by 10.231.69.212 with HTTP; Mon, 8 Nov 2010 02:18:02 -0800 (PST) In-Reply-To: References: <4CD4602C.2080804@FreeBSD.org> <20101108084958.000042be@unknown> Date: Mon, 8 Nov 2010 11:18:02 +0100 X-Google-Sender-Auth: kFzpLpfxrw2ky6mHABfTGjYlVIs Message-ID: From: Baptiste Daroussin To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 Cc: Doug Barton , Eitan Adler , pav@freebsd.org, Mark Linimon , freebsd-sysinstall@freebsd.org Subject: Re: Proposed OPTIONS replacement X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2010 10:43:17 -0000 Hi, the problem with libdialog, is that it doesn't have features we need for the ports infrastructure. With libdialog it is not possible to mix radio button and "normal" button and for the options framework we need the be able to get the following feature imho: simple options: check box exclusive options: radio button exclusive options if a simple option is check (for example option X11 allow to choose between the following options QT3 QT4 GTK etc) group options: a user can check choose between 0-N options (check box) if a other options is activated example a port can be build with 2 or more gui toolkit at the same time: avidemux for example group options with at least one options checked (1-N). As far as I've looked into libdialog it is nearly impossible to handle in a simple (I may be wrong and missed some part of libdialog) Other choices will be : 1/ create a ncurses tool dedicated for the ports as Eitan began to do it (thanks for that :)) (this is my favorite choice) 2/ there is libndialog which BSDL unfortunately 4 clause BSDL (may be the author will accept to change it to a 3 or 2 clause BSDL), which is very closed to libdialog and allow to write easily more complexe ui. So that we could rewrite a dialog compatible tool extended with more complexe UI dedicated to the ports (similat to Eitan work). (http://www.pell.portland.or.us/~orc/Code/ndialog/dialog.html, https://github.com/Orc/ndialog) the latest version from github compiles fine on freebsd, the work to port sysinstall and sade to libndialog is pretty easy, if this is direction we take, I can manage porting all the tools that depend on libdialog in base to ndialog. regards, Bapt