From owner-freebsd-questions@FreeBSD.ORG Sun May 19 09:04:56 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 A58615F4 for ; Sun, 19 May 2013 09:04:56 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:2:6]) by mx1.freebsd.org (Postfix) with ESMTP id 124B8ED6 for ; Sun, 19 May 2013 09:04:55 +0000 (UTC) Received: from ppp247-71.static.internode.on.net (HELO leader.local) ([203.122.247.71]) by ipmail06.adl2.internode.on.net with ESMTP; 19 May 2013 18:34:53 +0930 Message-ID: <519895B3.9060506@ShaneWare.Biz> Date: Sun, 19 May 2013 18:34:51 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130516 Thunderbird/17.0.6 MIME-Version: 1.0 To: fddi Subject: Re: problems with port upgrade consistency using portsnap References: <51986F0A.4030509@gmx.it> In-Reply-To: <51986F0A.4030509@gmx.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 09:04:56 -0000 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.