Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2013 18:26:34 +0200
From:      fddi <fddi@gmx.it>
To:        Shane Ambler <FreeBSD@ShaneWare.Biz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: problems with port upgrade consistency using portsnap
Message-ID:  <5198FD3A.4040603@gmx.it>
In-Reply-To: <519895B3.9060506@ShaneWare.Biz>
References:  <51986F0A.4030509@gmx.it> <519895B3.9060506@ShaneWare.Biz>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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"




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?5198FD3A.4040603>