problems with port upgrade consistency using portsnap
fddi at gmx.it
Sun May 19 16:26:36 UTC 2013
hello, here is from portsnap.conf
so it is /usr/ports
instead in my environment $PORTSDIR is undefined.
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
On 5/19/13 11:04 AM, Shane Ambler wrote:
> On 19/05/2013 15:49, fddi wrote:
>> 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
> 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
>> but if I go into
>> 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 at freebsd.org mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions