Trouble upgrading qt33 with portupgrade after package installation

DAve dave.list at
Fri May 23 16:59:06 UTC 2008

Ross Gohlke wrote:
> I have been running FreeBSD 6 successfully for over a year without
> installing any ports from packages. I have had great success using ports
> but sticking with make install clean/portupgrade.
> I recently decided to try running X11/KDE. I thought I would save some
> time and learn a new trick with pkg_add kde.
> Mixing the two confuses me because portversion does not report whether an
> installed port was compiled from source or copied from a package, and
> portupgrade hasn't worked on some packages.
> Here's the latest:
> portupgrade -vr qt


> Stop in /usr/ports/x11-toolkits/qt33.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portupgrade.12485.0 env UPGRADE_TOOL=portupgrade
> UPGRADE_PORT=qt-3.3.8_6 UPGRADE_PORT_VER=3.3.8_6 make
> ** Fix the problem and try again.
> --->  Build of x11-toolkits/qt33 ended at: Thu, 22 May 2008 16:53:59 -0500
> (consumed 00:51:34)
> --->  Upgrade of x11-toolkits/qt33 ended at: Thu, 22 May 2008 16:53:59
> -0500 (consumed 00:51:34)
> --->  ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed
> --->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
>         ! x11-toolkits/qt33 (qt-3.3.8_6)        (linker error)
> --->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
> --->  Session ended at: Thu, 22 May 2008 16:53:59 -0500 (consumed 00:51:47)
> ----------------
> Is there a particular port I need to reinstall from source to fix this, or
> another solution?
> Thanks.
> Ross Gohlke

I've had that happen, no explanation why. I have had luck switching from 
a pkg to a port by doing the following within the port you are upgrading.

make deinstall
make clean
make reinstall

Then portupgrade will work with the port fine. There is the possibility 
that you may need to remove the pkg using pkg delete and then do a fresh 
install from ports. X is big, I have not used X in years as all my 
systems are servers, I generally use only ports if I don't install from 
source. Someone with more experience than me might have a better answer.

Of course, if you follow my advice blindly your system may explode, or 
worse ;^)


PS, Denise says HOWDY!

In 50 years, our descendants will look back on the early years
of the internet, and much like we now look back on men with
rockets on their back and feathers glued to their arms, marvel
that we had the intelligence to wipe the drool from our chins.

More information about the freebsd-questions mailing list