From owner-freebsd-ports@FreeBSD.ORG Sat Aug 15 15:08:47 2009 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 3F980106568C for ; Sat, 15 Aug 2009 15:08:47 +0000 (UTC) (envelope-from serenity@exscape.org) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id EFB338FC59 for ; Sat, 15 Aug 2009 15:08:46 +0000 (UTC) Received: from c83-253-252-234.bredband.comhem.se ([83.253.252.234]:51210 helo=mx.exscape.org) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1McKch-0004Oq-4w for freebsd-ports@freebsd.org; Sat, 15 Aug 2009 16:52:49 +0200 Received: from [192.168.1.5] (macbookpro [192.168.1.5]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx.exscape.org (Postfix) with ESMTPSA id 4ED593495E for ; Sat, 15 Aug 2009 16:52:46 +0200 (CEST) Message-Id: From: Thomas Backman To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Sat, 15 Aug 2009 16:52:43 +0200 X-Mailer: Apple Mail (2.936) X-Originating-IP: 83.253.252.234 X-Scan-Result: No virus found in message 1McKch-0004Oq-4w. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1McKch-0004Oq-4w 11f67f5c87a80171cbeeed0b845ee5a7 Subject: portversion and pkg_version have different opinions on current versions 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, 15 Aug 2009 15:08:47 -0000 First off: not subscribed to this list, please make sure to Cc me or I won't see your answers! :) Oh, and I use portsnap, in crontab: 0 19 * * * portsnap -I cron update So, long story short: [root@chaos ~]# pkgdb -aF ---> Checking the package registry database [root@chaos ~]# portversion -l '<' dnsmasq < ezm3 < libtool < python26 < [root@chaos ~]# pkg_version | awk '$2 !~ /=/' [root@chaos ~]# portupgrade -a [root@chaos ~]# ... How do I figure out which is correct, and which/what should I use in my crontab to check for out-of-date packages? I'm pretty new to FreeBSD (testing use since May, but I've used it briefly before), but have almost 10 years of Linux experience, mostly Gentoo, so I'm not new to *nix-like OS's, not to mention that Gentoo's portage is based on FreeBSD ports - except that it has an official interface (i.e. emerge), rather than portupgrade, portmaster, portmanager, etc. A bit of a mess in my outsider opinion. ;) I don't care overly much about having the bleeding-edge version, but I'd rather not, as I currently have, use packages with known vulnerabilities (I do know about portaudit, though, and will give that a check). For instance, I just noticed yesterday that I needed to upgrade apr, among about 6-7 other packages; the apr vulnerability had been known for a while before I updated. Regards, Thomas