Trouble upgrading qt33 with portupgrade after package installation

Ross Gohlke ross at
Fri May 23 17:44:42 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
> <snip>
>> 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

Yes, but there were like, 50 packages affected. This is a tedious process,
having to manually cd into each directory.
Plus, how do you figure out which packages? I can't find a tool that tells
me whether an installed port is binary or source. That would be nice!
See my other post for my solution.

Anyway, my main fear was that I messed up my ports tree in a way that
would effect portupgrading essential software. Thankfully that doesn't
seem to be the case.

> X is big, I have not used X in years as all my
> systems are servers,

Why not run FreeBSD w/X on your desktop as well? I'm running KDE3 on a
Powerbook G4 with Mac OS 10.4. It took me a while to configure it, but I
really like Kate and Konsole. Firefox/Konqueror isn't a bad browser duo
(don't forget elinks!). I don't plan to go back.

> I generally use only ports if I don't install from
> source. Someone with more experience than me might have a better answer.

What is the relationship between ports and packages/binary and source? The
Handbook seems to use the terms interchangably. The port*/pkg* commands
handle both types.

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

I haven't had that happen in quite some time, and not ever from YOUR advice!

> DAve
> PS, Denise says HOWDY!

HOWDY back! Yay!

Ross Gohlke

More information about the freebsd-questions mailing list