From owner-freebsd-ports@FreeBSD.ORG Thu Dec 1 13:56:34 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97A2316A41F for ; Thu, 1 Dec 2005 13:56:34 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58DB743D73 for ; Thu, 1 Dec 2005 13:56:19 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so153580wxc for ; Thu, 01 Dec 2005 05:56:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Vxi0smI88hpYy4jvU/oxTltjtveJwek0Fb4X2si6/sY7RbTcx2Y2yuuBHIS2lqdS7Y4htEjhOrZ5iYM1hRZUenUefBhAKOOLKaVZWsUAhlcPYkChYKxrIjCzYgOB9bIzaMJ3FnwCNlFJPgFbayaJzEkKdaKeBVKzpLu1U0pu/sU= Received: by 10.70.26.11 with SMTP id 11mr1209493wxz; Thu, 01 Dec 2005 05:56:19 -0800 (PST) Received: from ?192.168.2.1? ( [71.102.14.129]) by mx.gmail.com with ESMTP id i12sm1735755wxd.2005.12.01.05.56.18; Thu, 01 Dec 2005 05:56:19 -0800 (PST) From: "Michael C. Shultz" To: patrick@spacesurfer.com, freebsd-ports@freebsd.org Date: Thu, 1 Dec 2005 05:56:14 -0800 User-Agent: KMail/1.8.3 References: <20051130184231.2E3299F8547@ws7.spacesurfer.com> <200511301059.02499.ringworm01@gmail.com> <20051201132528.433149F86B3@ws7.spacesurfer.com> In-Reply-To: <20051201132528.433149F86B3@ws7.spacesurfer.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512010556.15019.ringworm01@gmail.com> Cc: Subject: Re: mozilla/firefox libglib-2.0.so.600 missing 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: Thu, 01 Dec 2005 13:56:34 -0000 On Thursday 01 December 2005 05:25, patrick@spacesurfer.com wrote: > WOW, portmanager really is great. Sorted out my mozilla problems and also > let me do all sorts of stuff with ports that I have been wanting to be able > to do for ages! I love the status and leaves features, very usefull. Nice to hear it worked for you. :) > > I do have a suggestion for a future version. It would be nice if I could > install a list of ports. So for example take the output of pkg_info from > one OLD machine to produce a LIST of packages. Then use a portmanager > switch to install all those packages on a NEW machine. It would be good if > I could also specify a /var/db/ports/ directory for the ports to be > installed so that I could copy the /var/db/ports directory to the NEW > machine and use those options just to build and install the missing > packages from the LIST. > > Just a suggestion, but as it stands portmanager is already very usefull. > > Patrick > As far as your suggestion here is one of my own, assumes both machines use same FreeBSD version and same CPUTYPE?= in /etc/make.conf: A) When updating or anything add the -bu switch, this will cause portmanager to build packages of what it upgrades or installs. B) Copy everything in /usr/ports/packages, /usr/ports/distfils, /var/db to the new machine. C) I think this will work, but its out put would be ugly, on the new machine first try: cd /usr/ports/packages/All && pkg_add *. If that doesn't work (I'm not sure if pkg_add will accept wild cards like that) then feed all of the packages to pkg_add with a script. What will happen is packages with many dependencies will use the dependency packages, then when the dependency package comes up it will complain of being installed allready and not install, so what, its in there allready... d) Because you copied everything in /var/db the new machine knows what ports (from /var/db/pkg) are supposed to be installed, and their blue screen options as well (from /var/db/ports), just run portmanager -u -p on the new machine and it will fix any holes. (likely to come from ports that won't allow packaging) Above is essentially the way I trouble shoot problems now, less the packages. All I do on difficult bug reports is have the person reporting send a copy of their /var/db directory and the version of FreeBSD they are using, from there I can duplicate on my machine what they have on theirs. -Mike