From owner-freebsd-ports@FreeBSD.ORG Sat Feb 4 13:30:18 2006 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 C099716A420 for ; Sat, 4 Feb 2006 13:30:18 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 3A50543D46 for ; Sat, 4 Feb 2006 13:30:18 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 22561 invoked by uid 399); 30 Jan 2006 19:43:35 -0000 Received: from localhost (HELO ?192.168.1.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 30 Jan 2006 19:43:35 -0000 Message-ID: <43DE6C65.9040306@FreeBSD.org> Date: Mon, 30 Jan 2006 11:43:33 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Panagiotis Astithas References: <43BCF31F.8050900@FreeBSD.org> <1136501778.40648.17.camel@localhost> <43C38A38.1020408@FreeBSD.org> <1136893017.2410.9.camel@pav.hide.vol.cz> <43C8E446.5010603@FreeBSD.org> <20060114144016.1dc9fdd0@Magellan.Leidinger.net> <43C97BEB.3030601@FreeBSD.org> <43CA33E4.40809@ebs.gr> <43D610B6.5080008@FreeBSD.org> <43DE40FE.6000507@ebs.gr> In-Reply-To: <43DE40FE.6000507@ebs.gr> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd ports Subject: Re: New /bin/sh based script to manage ports 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: Sat, 04 Feb 2006 13:30:18 -0000 Panagiotis Astithas wrote: > Doug Barton wrote: >> Panagiotis Astithas wrote: >> >>> Can portmaster be used to do something like 'portupgrade -rf gnutls' >>> (i.e. rebuild all dependent applications), like it is often requested in >>> UPDATING? >> >> Thanks for this suggestion. I just added this feature, and updated the >> web >> page. >> >> http://dougbarton.us/portmaster.html > > Thank you! Now, while working towards replacing portupgrade with > portmaster in my daily system maintenance Thanks for giving this a try! This kind of feedback is very valuable. > I encountered a couple of other issues: > > % portmaster -aiv > ===>>> Starting check of installed ports for available updates > grep: /var/db/pkg/pkgdb.db/+CONTENTS: Not a directory > ===>>> Checking installed port: birda-1.3 > ===>>> Checking installed port: ca-roots-1.1 > ===>>> Checking installed port: cabextract-1.1 > ===>>> Checking installed port: cscope-15.5_1 > ===>>> Checking installed port: cvsup-without-gui-16.1h_2 > ===>>> Checking installed port: freebsd-update-1.6_2 > ===>>> Checking installed port: hcidump-1.5.1 > ===>>> Checking installed port: iftop-0.16_1 > ===>>> Checking installed port: iwi-firmware-2.4_2 > ===>>> Checking installed port: last.fm-player-1.0.3 > > ===>>> This port has been deleted: > ===>>> Aborting update > > The first grep error comes from portupgrade, which creates a pkgdb.db > file in that directory. Well that's just rude! :) > Can portmaster be smart enough to skip that, or > even better, not consider regular files (i.e. not directories) at all? Yes, that's easily done. I just uploaded a new version that fixes this issue, and I tested the other instances of 'grep blah $pdb/*/+CONTENTS' to make sure they are safe. As a side effect of this check it dawned on me that I could remove some old instances of -r in the grep command lines that are no longer necessary, so now the whole script is a tiny bit faster too. > The seconf error comes from my installation of a package that does not > come from a port (last.fm-player-1.0.3). I installed it directly from > the vendor's site (http://last.fm). Can portmaster not error when > encountering such packages, but rather just produce a warning? Hrrrm.... this situation is tougher to handle, because there are a lot more variables. It would be very useful if you could tar up /var/db/pkg/last.fm-player-1.0.3 and send it to me if you're comfortable doing that (I don't need the software, just the metadata). If I can see what is/isn't in the +CONTENTS file of that package I can have a better idea how to work around this. Thanks again, Doug -- This .signature sanitized for your protection