Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2010 14:22:21 -0700
From:      Charlie Kester <corky1951@comcast.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: portmaster always re-installs some ports
Message-ID:  <20100817212221.GC34339@comcast.net>
In-Reply-To: <AANLkTi=mx5k%2BAhHxHfBWWR=JzKRa79cTUvFxQSefuwdW@mail.gmail.com>
References:  <AANLkTi=mx5k%2BAhHxHfBWWR=JzKRa79cTUvFxQSefuwdW@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon 16 Aug 2010 at 20:40:44 PDT b. f. wrote:
>>A while back I aborted a recursive update (bad idea, I know now) and
>>must have messed up something in whatever info portmaster uses to decide
>>whether to re-install a port.  Now, whenever I use portmaster -a, it
>>re-installs py26-imaging, py26-reportlab and py26-xml.
>
>>From portmaster(8):
>
>"/var/db/pkg/*/PM_UPGRADE_DONE_FLAG
>           Indicates to a subsequent -a, -f, or -r run which includes the -R
>           option that a port has already been rebuilt, so it can be safely
>           ignored if it is up to date."
>
>Are there any of the above files left in your PKG_DBDIR (/var/db/pkg,
>by default)?  If so, delete them, and try again.  

There were many of these, but not in the directories corresponding to
the three python ports.  (But perhaps in one or more of the ports that
depend on them?)

Anyway, I deleted all of them.  It didn't fix the problem.  py-reportlab
and py-xml are still unnecessarily reinstalled.

py-imaging was recently updated, but when I ran portmaster yesterday it
complained that a previous version was still installed.  

Hmm, portmaster usually uninstalls the old version automatically.  So I
tried deinstalling it manually and got an error message about not being
able to completely remove the PIL directory from Python's site-packages.
Found a .so file in there and deleted it and the directory.  Then
installed the new version of py-imaging from the ports tree.  

Today midori needed an update, so portmaster -a found some work to do.
py-imaging is no longer re-installed!

Tried manually de-installing py-reportlab and got a similar error
message from pkg_delete about not being able to delete
site-packages/reportlab.  This looks promising.  I'll clean this stuff
out manually and then reinstall, as I did with py-imaging, and check
py-xml to see if it has a similar problem.



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