From owner-freebsd-questions@FreeBSD.ORG Sun May 19 16:26:36 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6DEF5AD7 for ; Sun, 19 May 2013 16:26:36 +0000 (UTC) (envelope-from fddi@gmx.it) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by mx1.freebsd.org (Postfix) with ESMTP id 1AAD4F86 for ; Sun, 19 May 2013 16:26:35 +0000 (UTC) Received: from knuth.default.domain.invalid ([31.177.41.8]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LtDpH-1UTgI037n9-012oVK; Sun, 19 May 2013 18:26:32 +0200 Message-ID: <5198FD3A.4040603@gmx.it> Date: Sun, 19 May 2013 18:26:34 +0200 From: fddi User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Shane Ambler Subject: Re: problems with port upgrade consistency using portsnap References: <51986F0A.4030509@gmx.it> <519895B3.9060506@ShaneWare.Biz> In-Reply-To: <519895B3.9060506@ShaneWare.Biz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:AzkqiLTiK68JSFaaW8STwoaw47KKFFPQmmUgf16cikb8M99XG3f HqynP7t1cIkuOj+IbadqgHrVtPAgFQge1bUjpzHb0HT2CNjUQWQLgTbVCKxCjnh5/Judjp4 2TPmxpwiL/xyY9eXsYvVMqFcE+TsaPS4vY6BD1pOHkokqRZW0XqPYSZYIwRH4Kmt+w3N94K DsZnYbhym09HgPLJKSJIg== Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2013 16:26:36 -0000 hello, here is from portsnap.conf # PORTSDIR=/usr/ports so it is /usr/ports instead in my environment $PORTSDIR is undefined. Here is /usr/ports/lang/python27/Makefile PORTNAME= python27 PORTVERSION= 2.7.3 PORTREVISION= 6 after I did portsnap fetch update everythign looks up to date so ther is something wrong in my crontab 0 3 * * * /usr/sbin/portsnap -I cron update && pkg_version -vIL= the problem was in portsnap -I which updates only thr index files... thanks for helping me to identify the issue cheers Rick On 5/19/13 11:04 AM, Shane Ambler wrote: > On 19/05/2013 15:49, fddi wrote: >> Hello, >> I am using portsnap to update my port collection on FreeBSD 9.1 >> >> the first time I ran it a few weeks ago I did| >> || >> |||portsnap fetch| >> || >> |and then >> >> portsnap exctract >> >> >> then I did a crontab script to update ports every night >> >> 0 3 * * * /usr/sbin/portsnap -I cron update && pkg_version -vIL= >> >> >> Now after a few weeks pkg_version is reporting me a lot of ports which >> needs updating > >> py27-sqlite3-2.7.3_3 < needs updating (index has 2.7.5_3) >> python27-2.7.3_6 < needs updating (index has 2.7.5) > > That is correct. You are confusing two different things. portsnap > updates the ports tree, which contains the files needed to compile the > programs you install. It is only information about the programs and > version with instructions to compile. portsnap does not install the > programs for you. > > pkg_version is telling you that the ports tree has information on new > versions available of programs you have installed. > >> if I use portmaster to upgrade my ports collection it is telling me all >> packages are up to date... >> so there is something not working > > portmaster installs the binary programs for you. Look into this later > if the later info doesn't fix it. > >> for example >> >> py27-sqlite3-2.7.3_3 < needs updating (index has >> 2.7.5_3) > > This is a python library to add access to sqlite db files. Don't > confuse it with python itself. The Makefile for this will be in > databases/py-sqlite3 > >> but if I go into >> >> /usr/ports/lang/python27 >> >> and I look in Makefile, it reports >> >> PORTNAME= python27 >> PORTVERSION= 2.7.3 >> PORTREVISION= 6 > > While this isn't the Makefile for py-sqlite3, pkg_version is telling > you it knows about python 2.7.5 so this is not the Makefile that > pkg_version is looking at, but it would appear to be the file that > portmaster is looking at. It looks like you have two copies of the > ports tree. > > Check /etc/portsnap.conf you may have an odd setting for PORTSDIR. > Another possibility is you have an odd PORTSDIR defined in your > environment, what does echo $PORTSDIR show? You may also have bad > settings in cron - run portsnap fetch update manually and see if > python27/Makefile changes > > Start by sorting out why pkg_version and portmaster are using > different files before you progress further. > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"