From owner-freebsd-ports@FreeBSD.ORG Fri Aug 1 09:24:33 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 271DC1065671 for ; Fri, 1 Aug 2008 09:24:33 +0000 (UTC) (envelope-from kimelto@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id EF0FD8FC17 for ; Fri, 1 Aug 2008 09:24:32 +0000 (UTC) (envelope-from kimelto@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so784899wfg.7 for ; Fri, 01 Aug 2008 02:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=uY+Q+aGNzG1QVOG0flT5kGVagHjD1CkmgF/OrHZkMYw=; b=gvjg/zjnMll1u/SVsQKLqbkvd+p6X79clK5I2OXzDRLxu4/Li1a0yBarAxN/mInwlH G7KqTKT3kS86vuR1tgNs1LeADwBRApoNbW6X8OIU0sNoUyXx87wC2wlYgFCqRN5FhhM/ sb4fhLkWFKGsvIWBHO5NzZ2iqbsMIzFSXOo34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FX2CdGBthTB4Urqv3bMNWjVollwpx9ibRZrQWtKXoIRzOc//o8w9vYmHzF6wf8EOsL qP0Gr4qq1YGZXs/VG9t9DUmV+sFa86lbEejnP5buDmsDDXwvLKR4R7IhkJ2tNIU1JIW3 WwbBO8LKigl8OBw7SY9JsZh1qwaqgv3su+TTQ= Received: by 10.142.12.14 with SMTP id 14mr3639975wfl.147.1217580918971; Fri, 01 Aug 2008 01:55:18 -0700 (PDT) Received: by 10.142.226.17 with HTTP; Fri, 1 Aug 2008 01:55:18 -0700 (PDT) Message-ID: Date: Fri, 1 Aug 2008 10:55:18 +0200 From: kimelto To: "Marcin Wisnicki" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-ports@freebsd.org Subject: Re: Call for comments - pkg_trans X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2008 09:24:33 -0000 Hi, On Fri, Aug 1, 2008 at 12:04 AM, Marcin Wisnicki wrote: > > Looking at your use cases I think what you are proposing is overkill. > > * Install some large group of packages, like KDE or GNOME. Don't like it, > want to delete all packages installed during the operation. > > This could be achieved by tracking which ports were installed explicitly > by user. I.e. when I type: > (cd /usr/ports/x11/gnome2; make install) > or > pkg_add -r gnome2 > > It will install gnome2 along with it's dependencies but in some way mark > gnome2 package as installed by user, say, by creating /var/db/pkg/ > gnome2-2.22/+USER_INSTALLED or even easier, by maintaing some special > unremovable dummy package that would depend on all packages installed > explicitly. In the pkg_improved project , Anders plan to add some new fields. Maybe he could add the "USER_INSTALLED" too :) > > Then when you decide you want to get rid of gnome something like this > could be implemented: > > pkg_deinstall -Ru gnome2-2.22 > > where option 'R' (already exists in pkg_deinstall but could be added to > pkg_delete) means "Deinstall all those packages required by the given > packages as well." and option 'u' would be something like "keep packages > installed explicitly". > > I think similar solution is/was used in Gentoo. > I like this way sooooo much ! IMHO, it is the occasion to add these features in the userland, and by the way rewrite the pkg_tools according to these ideas : http://www.freebsd.org/projects/ideas/#p-ports-pkgtools / http://wiki.freebsd.org/libpkg http://www.freebsd.org/projects/ideas/#p-ports-upgrade Regards, Julien