From owner-freebsd-geom@FreeBSD.ORG Thu Apr 8 14:54:00 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3C9B1065678 for ; Thu, 8 Apr 2010 14:54:00 +0000 (UTC) (envelope-from kris@pcbsd.org) Received: from mail.iXsystems.com (newknight.ixsystems.com [206.40.55.70]) by mx1.freebsd.org (Postfix) with ESMTP id 7D6018FC1F for ; Thu, 8 Apr 2010 14:54:00 +0000 (UTC) Received: from mail.ixsystems.com (localhost [127.0.0.1]) by mail.iXsystems.com (Postfix) with ESMTP id 2EFC8A664B9; Thu, 8 Apr 2010 07:53:58 -0700 (PDT) Received: from mail.iXsystems.com ([127.0.0.1]) by mail.ixsystems.com (mail.ixsystems.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 16348-03; Thu, 8 Apr 2010 07:53:58 -0700 (PDT) Received: from [192.168.0.55] (unknown [75.131.46.136]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTPSA id 04D46A66400; Thu, 8 Apr 2010 07:53:56 -0700 (PDT) Message-ID: <4BBDB5BC.3060002@pcbsd.org> Date: Thu, 08 Apr 2010 10:53:48 +0000 From: Kris Moore User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100302 Thunderbird/3.0.3 MIME-Version: 1.0 To: Alexander Leidinger References: <55861270658151@web135.yandex.ru> <4BBD68DB.7050600@yandex.ru> <201004080727.21020.bruce@cran.org.uk> <4BBD7CDC.2070505@yandex.ru> <20100408103809.13496s9i6ny03ocg@webmail.leidinger.net> <867hoi8gbl.fsf@ds4.des.no> <20100408121500.13995d1eu7b9bt0k@webmail.leidinger.net> <86fx36up9e.fsf@ds4.des.no> <20100408155309.42884l21ogy7m7sw@webmail.leidinger.net> <86vdc2t4hs.fsf@ds4.des.no> <20100408163936.137245fp5ycrre0w@webmail.leidinger.net> In-Reply-To: <20100408163936.137245fp5ycrre0w@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Bruce Cran , freebsd-geom@FreeBSD.ORG, Teske , Randi Harper , freebsd-current@FreeBSD.ORG, "Andrey V. Elsukov" , =?UTF-8?B?RGFnLUVybGluZyBTbcODwrhyZ3Jhdg==?= Subject: Re: [RFC] Rewriting sade(8) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2010 14:54:00 -0000 On 04/08/2010 14:39, Alexander Leidinger wrote: > Quoting Dag-Erling Smørgrav (from Thu, 08 Apr 2010 > 16:15:27 +0200): > >> Alexander Leidinger writes: >>> Dag-Erling Smørgrav writes: >>> > There have been at least three or four attempts to do this in the >>> > past. One of them was even fully funded by the FreeBSD Foundation. >>> > They all failed. >>> I was told a lot of people tried to make the WITH_CTF part working >>> without the need to use -DWITH_CTF each time at the command line and >>> failed. Nevertless I did it. So telling something is not possible >>> because other people tried and failed is ridiculous. >> >> It's not ridiculous, it's experience. *Painful* experience over a >> period of nearly 15 years. >> >>> BTW: I do not think you talk about a partition editor, but about the >>> complete sysinstall. >> >> Yes and no. I'm talking about making the user interface pluggable, >> i.e. run the same program (whether sysinstall or sade) with, say, an >> ncurses interface on the console and a gtk interface in X. > > I did not suggest to run the same program and get different > interfaces. My suggestion was to have a backend-lib and a frontend. > The backend containing the "business-logic", and the frontend being > the presentation layer. If you want a GTK GUI, write a new frontend. > In the case of sysinstall and sade, both use some kind of curses > interface, my suggestion was to the lib as they are both 2 different > kind of frontends (two different kinds of point of view regarding the > required functionality). > > I was misunderstanding your idea in the beginning, I was understanding > the description of jhb better. It surely is an applicable idea (and an > improvement to what we have currently), but it looks like it is > limiting what we could do with sade (the frontend part, not the > backend part) if it would be decoupled from sysinstall. > > Bye, > Alexander. > That's a pretty similar to the approach we've taken with our new backend in PC-BSD 8.x. The notable exception is that instead of just a lib, our backend is a complete program (written in sh), which performs scripted installs, and provides all the functionality for front-ends to query the system and present data to the end-user. This has a few advantages, in that the backend can be used stand-alone for scripted installations and also provide great flexibility to the front-end developer. They don't need to worry about performing any of the actual installation logic, they just provide a way for users to select their installation options, generate a configuration script, and let the backend run with it. -- Kris Moore PC-BSD Software iXsystems