Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Aug 2009 22:58:38 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org, Thomas Backman <serenity@exscape.org>
Subject:   Re: portversion and pkg_version have different opinions on current versions
Message-ID:  <4A87217E.3040406@quip.cz>
In-Reply-To: <4A870FD1.5070605@FreeBSD.org>
References:  <B787D58E-9157-48E7-ADF3-E8D54F8AF22F@exscape.org>	<4A86FF1E.1030705@quip.cz> <6B5B7698-CCD8-48FF-A5FB-0349D4CC1143@exscape.org> <4A870FD1.5070605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton wrote:

> Thomas Backman wrote:
> 
> 
>>Thanks, guys!
>>However, a new issue appeared... Kind of. I know I read something about
>>portsnap and INDEX on the -current list recently, so I'm guessing this
>>is related? Maybe not, though (see later in the mail).
>>
>>[root@chaos /usr/ports/ports-mgmt]# portsnap -I fetch update >/dev/null
>>[root@chaos /usr/ports/ports-mgmt]# pkg_version -vL=
>>[root@chaos /usr/ports/ports-mgmt]# pkg_version -vIL=
>>curl-7.19.5_1                       <   needs updating (index has 7.19.6)
>>dnsmasq-2.49_1                      <   needs updating (index has 2.49_2)
>>ezm3-1.1_2                          <   needs updating (index has 1.2_1)
> 
> 
> Can you check the files in your ports tree to see if they have the
> older versions or the newer? You can either read the Makefiles or do this:
> 
> cd /usr/ports/ftp/curl
> make -V PKGNAME
> 
> I suspect that somehow the INDEX file and your ports tree are out of
> date, although my understanding was that this should not happen with
> portsnap.

Files in ports tree and INDEX are out of sync, because of the -I in 
portsnap command. The -I updates INDEX only!

man portsnap:
      -I   For the update command, update INDEX files, but not the rest
	  of the ports tree.

That's why portupgrade -a cannot upgrade anything, because ports tree 
doesn't have updated files.

Solution:

portsnap fetch update

(This will update both INDEX + files)

Miroslav Lachman


PS: do not redirect output of the portsnap command to /dev/null and you 
will see, what portsnap is doing :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A87217E.3040406>