portmaster always re-installs some ports
corky1951 at comcast.net
Tue Aug 17 21:22:25 UTC 2010
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.
> 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.
More information about the freebsd-ports