LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-30-2005, 01:41 PM   #1
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Rep: Reputation: 30
Lightbulb KDE.SlackBuild


I was considering building KDE 3.4 from scratch. I downloaded the source out of the current folder, and the KDE.Slackbuild script didn't seem to work. I haven't taken a look at what the script really says, so I will take a look later. Is this the best way to build KDE? I did it once before, and it takes a minute or two, but seems to work faster. Is it worth it?
 
Old 03-30-2005, 02:16 PM   #2
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
Why would you want to rebuld KDE? The speed advantage is practically none existent and it takes hours to compile it.

Why the scipts wont work? Are you executing them as root. What does it say?
 
Old 03-30-2005, 02:19 PM   #3
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
Greater speed advantage comes from well written optimizied code. The gcc compiler can only do so much and is has a much lesser impact then the quality of the code has.
 
Old 03-30-2005, 02:26 PM   #4
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Original Poster
Rep: Reputation: 30
Well then why compile anything from source? I definitely have the time available, at night. I thought building everything from source was a good idea. Well, it can't hurt anything, can it?
 
Old 03-30-2005, 02:50 PM   #5
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
Quote:
Well then why compile anything from source?
Binaries may be linked agiant the wrong version libraries and my cause problems. You might want to patch the source first yourself. You may want to pass options to the configure script to enable or disable stuff. Maybe you want to specify the install directory. There are many reasons.

Anything outside of the slack base I always build from source and yes I use specific CFLAGS for my box. Why not since I'm compiling it for my computer. But to go back and recompile stuff that pat compiled already would just be wasting my time, unless there was something very specific I wanted to do... patch it or enable something. Kernel is one thing that I've patched and recompiled. I also patched and recompiled fvwm. Other then that I've pretty much never had a need to recompile anything else from the slack base.

If you want to compile stuff in the slack base to learn or experiment thats good, but don't excpect some big improvement in speed or something.
 
Old 03-31-2005, 04:32 AM   #6
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
One reason I compiled KDE 3.4 myself was that I wanted to use gcc-3.4.3 with the visibility patches applied. KDE 3.4 will use the symbol visibility options in gcc if they are present, presumably for optimisation purposes. There's been quite a bit of talk on the net about how much snappier KDE is when compiled this way. Perhaps it is, but I'm not really willing to compile KDE 3.4 all over again with a plain gcc in order to find out!

(KDE just seems to have been getting more and more responsive through the 3.x series to me anyway. 3.3 was good enough for me to switch from icewm and fluxbox. 3.4 marks another improvement.)
 
Old 03-31-2005, 12:53 PM   #7
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
Quote:
Originally posted by Nobber
One reason I compiled KDE 3.4 myself was that I wanted to use gcc-3.4.3 with the visibility patches applied. KDE 3.4 will use the symbol visibility options in gcc if they are present, presumably for optimisation purposes.
Any idea where to get the visibility patches from ?
 
Old 03-31-2005, 03:54 PM   #8
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
Quote:
Originally posted by slaxnoob
Any idea where to get the visibility patches from ?
I got them from a Gentoo mirror. Specifically:

http://www.mirror.ac.uk/mirror/distr...es-1.1.tar.bz2

Download and unpack that tarball. There are 26 patches inside. The three you want are:

20_all_gcc34-visibility1.patch
21_all_gcc34-visibility2-20041025.patch
22_all_gcc34-visibility3.patch

These can be applied in the gcc-3.4.3 source tree thus:

patch -p0 -i /path/to/20_all_gcc34-visibility1.patch
patch -p1 -i /path/to/21_all_gcc34-visibility2-20041025.patch
patch -p0 -i /path/to/22_all_gcc34-visibility3.patch
 
Old 04-01-2005, 08:42 AM   #9
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
Thanks for the link
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a generic SlackBuild shilo Slackware 46 06-19-2008 11:45 PM
GNOME.SlackBuild jmdlcar Slackware 1 06-03-2005 04:52 PM
GSB [Gnome Slackbuild] Xian Slackware 27 03-12-2005 07:53 PM
SlackBuild system thegeekster Slackware 7 06-01-2004 06:59 PM
.SlackBuild optimize compile, need help chemtraX Slackware 4 05-27-2004 04:09 PM


All times are GMT -5. The time now is 06:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration