LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   howto update KDE by freeBSD 5.2.1 without errors ? (https://www.linuxquestions.org/questions/%2Absd-17/howto-update-kde-by-freebsd-5-2-1-without-errors-209060/)

cccc 07-24-2004 06:32 AM

howto update KDE by freeBSD 5.2.1 without errors ?
 
hi

knows someone howto update KDE 3.1 to 3.2 by freeBSD 5.2.1 without any errors ?

I did ports tree update and have tried to update:

# cd /us/ports/x11/kde3
# make deinstall clean && make reinstall

but get following errors:

/usr/ports/x11/kdelibs3
Error Code 1

/usr/ports/x11/kdebase3
Error Code 1

KDE isn't working now.

greetings
cccc

frob23 07-24-2004 06:47 AM

You are going to want to use portupgrade to do this. I believe it is under ports/sysutils.

But either way, install it and read the man page (seriously it will help you understand exactly what you need to be doing).

Then it will upgrade kde and all the libraries and everything for you.

The standard ports tree is not the best for upgrading programs that are heavily dependant on other things. It does a wonderful job installing them but it won't deinstall dependancies.

rehab junkie 07-25-2004 08:40 AM

Have a read of http://freebsd.kde.org/ and of /usr/ports/UPDATING. There are issues with upgrading from kde 3.1.x to 3.2.x - simply portupgrading will break your installation.

frob23 07-25-2004 08:53 AM

Well, simply port upgrading won't work.

But there are fixes which can be done to make portupgrade work (which is still the recommended way of doing it). Thanks for the directions... I don't use KDE but they will be a huge help to the original poster as it describes exactly what needs to be done to make his upgrade work.

:D

partom 07-27-2004 04:31 AM

i have the same error
 
I was folowing the instructions on:
http://www.bsdnews.org/03/bsd_update.php
and crashed my server twice.
Is there a nother way to update FreeBSD insted of CVSup?
Can someone post here another guide for me, please?
i cant use any new software last version because of that!
*GGGGGRRRRR*

partom 08-01-2004 01:33 PM

Well my update was okay when i followed the handbook instructions.
I was trying to upgrade kde 3.1.4 to kde 3.2.3
with #portupgrade -rR kde
I get this errors and i don't know what to do in order to resolve them:

** The following packages were not installed or upgraded (*:skipped / !:failed)
! audio/lame (lame-3.93.1) (unknown build error)
! audio/arts (arts-1.1.4,1) (linker error)
* x11/kdelibs3 (kdelibs-3.1.4_1)
* misc/kdeedu3 (kdeedu-3.1.4)
* editors/koffice-kde3 (koffice-1.2.1_1,1)
* x11-clocks/kdetoys3 (kdetoys-3.1.4)
* deskutils/kdepim3 (kdepim-3.1.4)
* multimedia/kdemultimedia3 (kdemultimedia-3.1.4)
* graphics/kdegraphics3 (kdegraphics-3.1.4)
* www/quanta (quanta-3.1.4,2)
* sysutils/kdeadmin3 (kdeadmin-3.1.4_1)
* net/kdenetwork3 (kdenetwork-3.1.4)
* games/kdegames3 (kdegames-3.1.4)
* x11/kdebase3 (kdebase-3.1.4)
* misc/kdeaddons3 (kdeaddons-3.1.4)
* x11-wm/kdeartwork3 (kdeartwork-3.1.4_1)
* devel/kdesdk3 (kdesdk-3.1.4)
* devel/kdevelop (kdevelop-2.1.5)
* misc/kdeutils3 (kdeutils-3.1.4)
* x11/kde3 (kde-3.1.4)

any help will be appreciated.

gorilla 08-19-2004 12:06 PM

I found these instructions on the freebsd.kde.org website.

portupgrade -rR kde will upgrade all of KDE, its dependencies (including XFree86 and qt) and those ports depending on KDE by fetching and compiling from source.
portupgrade -PR kde will upgrade from KDE packages if available, and will compile from source for those applications and dependencies that have no packages available.
portupgrade -PPR kde will install from KDE packages only, and will cease upgrading at the point it finds an application or dependency that has no package available, so use this command only if you are sure that the package site contains all packages required.
portupgrade -FR kde will only fetch the port(s) tarballs or packages (depending on the other flags chosen, see above) for a later upgrade.

Maybe they will help.

partom 08-19-2004 03:06 PM

I am stummped (Gggrrrrrr)
 
I have tried all of these options an still i get this error.
I need a painless way to update KDE
Does someone knows?

TJandE 08-24-2004 12:10 AM

If I remember correctly I had similar errors when portupgrading KDE from whatever version ships with FreeBSD 5.2.1 to KDE 3.2.3. I think I went to the ports that had errors and did a make deinstall reinstall on them, and then did the portupgrade -rR on KDE. And then I repeated this process several times (portupgrade would get farther and then run into another problem). Also, and you've probably already done this, make sure your ports collection is up to date.

Micah

partom 08-24-2004 01:47 AM

my ports are uptodate
 
and i have tried this several times and still nothing.
I get the errors.
What else can i do?

TJandE 08-24-2004 11:48 AM

If you scroll back through the compiler messages (use the scroll lock button + cursor keys to do that) you should be able to see what the specific error message is for the audio/lame port (the unknown build error is a generic messge) Post that message and maybe we can figure out what's broken.

Micah

Stack 08-24-2004 12:45 PM

I just did this last night flawlessly... Really folks it is rather simple and a question of having an up-to-date ports tree and an up-to-date pkgdb.

Step-by-Step guide to sucessfully updating your system with ports...
Quote:

enter the following line at a command prompt as root

# pkg_add -r cvsup-without-gui
# pkg_add -r portupgrade

OR

# cd /usr/ports/net/cvsup-without-gui && make install clean
# cd /usr/ports/sysutils/portupgrade && make install clean

# mkdir -p /usr/local/etc/cvsup/sup

# vi /usr/local/etc/cvsup/supfile.ports
-- copy below --
*default host=cvsup4.freebsd.org compress
*default release=cvs tag=.
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default delete use-rel-suffix
ports-all
-- copy above --

# vi /usr/local/etc/cvsup/supfile.os
-- copy below --
*default host=cvsup4.freebsd.org compress
*default release=cvs
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default delete use-rel-suffix
*default tag=RELENG_5_2
src-all
-- copy above --

# vi /usr/local/etc/cvsup/sup/refuse
-- copy below --
ports/arabic
ports/chinese
ports/french
ports/german
ports/hebrew
ports/hungarian
ports/japanese
ports/korean
ports/portuguese
ports/russian
ports/ukrainian
ports/vietnamese
doc/da*
doc/de*
doc/el*
doc/es*
doc/fr*
doc/it*
doc/ja*
doc/nl*
doc/no*
doc/pl*
doc/pt*
doc/ru*
doc/sr*
doc/zh*
-- copy above --

# mkdir /root/scripts
# vi /root/scripts/update-os
-- copy below --
#!/bin/sh
echo "Updating OS sources with cvsup..."
/usr/local/bin/cvsup /usr/local/etc/cvsup/supfile.os
-- copy above --
# chmod +x /root/scripts/update-os

# vi /root/scripts/update-ports
-- copy below --
#!/bin/sh
echo "Cleaning ports tree..."
/usr/local/sbin/portsclean -CD
echo "Updating ports tree with cvsup..."
/usr/local/bin/cvsup /usr/local/etc/cvsup/supfile.ports
echo "Updating INDEX and databases..."
/usr/local/sbin/portsdb -Uu
-- copy above --
# chmod +x /root/scripts/update-ports

Now that we have this done...

# cd /root/scripts
# ./update-ports

Grab a drink this might take a LONG time...

When this is done it is time to fix the pkgdb.

# pkgdb -F

Fix any problems before you portupgrade...

Following this you really should update all your installed ports if you have not updated in a long time.

# portupgrade -aRr

If your ports are fairly recent a simple

# portupgrade -Rr kde3

will do just fine...

Now once again grab a drink this is going to take a while.

Now if you have any errors when portupgrade finishes do the following.(You only need to care about the ones with a "!" in front)

# portupgrade <port name that has the !>

Read the errors that are spewed out and deal with them. Sometimes if it just a problem about an older version being installed cd to the directory and "make deinstall clean" then "make install clean".
Questions? The scripts and files pasted above are from bsdforums.org the comments and most commands are mine.

PS: http://www.bsdnews.org/03/bsd_update.php is insanely out of date and will cause you nothing but grief.

B3D_Sage 10-01-2004 09:23 AM

help! I tried this exactly as you said and it DOWNGRADED me to KDE version 3.1! I tried both all ports and just kde. i dont know what's been buggared up but i really want it to work :cry:

-X- 10-01-2004 01:13 PM

First, you should start another thread.
Second, your ports are not up to date.
Drill down to the kde3 folder and read the pkg_desc.
It works like Stack said.

B3D_Sage 10-01-2004 01:45 PM

first, I assumed the logical place to post a problem with someones advice would be the same place they gave the advice.

second, yes I know my ports are out of date. I'm trying to update them... that's the whole reason I'm posting. and, I've read the pkg-desc and it is useless- basically says "this is a 'metaport'. this package is merely a list of dependencies so that you only have to install once package to get kde-everything." And, obviously *for me* it did not work exactly like Stack said. Otherwise, I wouldnt be here in the first place. (and yes, I have gone through and followed his instructions to the letter.)

but, it *may* be fixed now. it's currently trying to install KDE again.... which will take until tomorrow most likely and I don't work weekends so i won't get to find out if it worked or not until monday (cant telnet in 'cause the bloody bastard that used to be the netadmin STILL hasn't given me the pword to the firewall!)



oh yeah and it wasnt actually downgraded to 3.1, it's still 3.1.4 just that some things got twisted wierdly and i thought it was 3.1... and it was giving me some problem with openldap-client not liking something about my OpenSSL config so i pkg_add'd openssl and then went to portupgrad'd openldap-client but portupgrad started griping about openldap22-client trying to install to the same dir as openldap-client so i had to pkd_delete openldap-client and pkg_add'd openldap22-client. tried portupgrade portupgrade and that didnt work, so i had to pkg_delete portupgrade and the make install clean portupgrade so got the new version of that, then had to pkgdb -F a lot of other things that got buggard somehow (like ruby... had two entries for ruby) and now I'm back to chunking away at portupgrade -rR kde. I read on anotehr forum someone had this same exact problem about OpenSSL (but not ldap) and mentioned he fixed it but keenly forgot to mention HOW he fixed it. Google won't work unless someone posts a fix!


oh did I mention that, aside from reading a big fat unix book 3 years ago and a few failed attempts at installing FBSD 4.2 and using (not configuring, just used it) Red Hat Linux 5.1 like 6 or 7 years ago I really have not had any UNIX contact until last week? at least I'm a fast learner....


All times are GMT -5. The time now is 08:42 AM.