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 02-16-2005, 08:56 PM   #1
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
Stage 1 Slack Install


Would it be at all sensible to recompile recreate every single package I want installed so that it's optimized for the Athlon XP architecture and make my own Slackware install CD? I've never tried Gentoo, but I know I love Slackware and I wanted to try out the optimized software thing. Should I just do a stage 1 Gentoo install instead? If I wanted to, could I replace Gentoo's package management system with Slackware's? Besides the package management system and initialization scripts, are there any major differences between the two distributions?
 
Old 02-16-2005, 09:09 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Just use Gentoo, if you are into this whole compile from source and optimisation thing coz I don't think this will work with Slack in it's current state. Slackwares package management is nothing like Gentoo and doesn't necessarily resolve dependencies unless you use third party tools such as slapt-get or swaret.
 
Old 02-16-2005, 09:15 PM   #3
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Original Poster
Rep: Reputation: 40
Why wouldn't it work? I don't need to have dependencies resolved for me, this is not a problem.
 
Old 02-16-2005, 09:18 PM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
You wouldn't notice the optimization, really. I've used Gentoo a ton in the past, and default Slackware installations feel just as fast.
 
Old 02-16-2005, 09:31 PM   #5
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Original Poster
Rep: Reputation: 40
Oh really? Well I guess what I'll do is do a stage 1 Gentoo install and run some tests, and if I think the speed increase is big enough to go through the trouble, I'll try optimizing Slackware. That kind of optimization would be a LOT of work....
 
Old 02-17-2005, 02:19 PM   #6
Worstje
Member
 
Registered: Mar 2004
Distribution: Slackware-current
Posts: 93

Rep: Reputation: 15
Alot? I have to disagree... I recompiled quite a few packages on Slackware, never with any problems. It basically comes down to:

1) Download the source of the package you need from ftp://MIRROR/slackware-VERSION/source/, make sure you have a proper directory structure. I usually use wget for this.

2) Edit the <packagename>.Slackbuild, and adjust things as necessary (architecture, version, etc). Depending on the package, you might see more or less of an explanation.

3) If you see you are lacking some dependancies needed for the build, see step 1

4) Now sit back, and relax: <packagename>.Slackbuild is all you have to execute. Any dependancies will join the ride.

5) You'll find your newly made package in /tmp.
installpkg/upgradepkg away!

Which reminds me, make sure you have enough space on your /tmp or you might get some weird errors

Last edited by Worstje; 02-17-2005 at 02:22 PM.
 
Old 02-17-2005, 04:10 PM   #7
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Original Poster
Rep: Reputation: 40
I know how to go about it, Worstje, but it would still be time consuming. I'd need to copy all the information from the source CDs to my hard drive, and edit the slackbuild script for every package, and there are lots of them. Plus, compiling the larger ones like X will take forever.
 
Old 02-17-2005, 04:15 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Re: Stage 1 Slack Install

Quote:
Originally posted by Aborted Fetus
Would it be at all sensible to recompile recreate every single package I want installed so that it's optimized for the Athlon XP architecture and make my own Slackware install CD? I've never tried Gentoo, but I know I love Slackware and I wanted to try out the optimized software thing. Should I just do a stage 1 Gentoo install instead? If I wanted to, could I replace Gentoo's package management system with Slackware's? Besides the package management system and initialization scripts, are there any major differences between the two distributions?
keyword there being sensible. uhh...no ( this is my opinion only though). lets say you spend 20 hrs doing this ( assuming you want everything ). lets also say that it speeds up your system by 2% ( just a random number I'm throwing in there). how many years would you have to use the system to get back the time it took to do this install?

if you do it, keep in mind some packages when too many optimizations are thrown in behave erratically, so you might want to leave those alone ( I would leave the development environment and glibc alone personally).
 
Old 02-17-2005, 05:10 PM   #9
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Original Poster
Rep: Reputation: 40
Well yeah, if it only speeds things up by about 2%, then it would be a complete waste of time. I hear different things though; some people say that the speed's not noticable, and others say there are dramatic differences, so I'm kinda confused.
 
Old 02-17-2005, 05:19 PM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
again my opinion, I've done several gentoo installs, LFS's, been compiling for years, and personally I've never noticed a dramatic difference.
 
Old 02-20-2005, 12:39 PM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Somehow I think that most ancilliary software doesn't usually take advantage of any arch-specific features. Most of whatever improvement you get will come from recompiling just the kernel. Advanced server applications might be a common exception.
 
Old 02-20-2005, 05:09 PM   #12
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Original Poster
Rep: Reputation: 40
Even more discouraging, I noticed that just editing the slackbuild scripts WILL NOT work. The arch, etc. variables are just for file naming, and won't optimize anything. Furthermore, some of the programs override the CFLAGS variable in their Makefile, so using the slackbuild scripts is not an option. I'll have to manually create every package to make sure things are going right, and use the slackbuild script as a guide. This obviously isn't very appealing, so it's less likely now that I'll try this.
 
  


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
Half of my applications are broken. I am using Gentoo stage 1 on 3 nptl (stage 1.5) dragonslay Linux - Games 3 04-01-2005 05:23 PM
Gentoo: Stage 1, Stage 2, or Stage 3 skorpi0wn Linux - Distributions 3 03-01-2005 07:47 PM
second stage install? nlghtcrawler Linux - Software 1 12-12-2003 02:36 PM
Gentoo Install...What Stage Do You Use? Crashed_Again Linux - Distributions 5 05-21-2003 10:59 AM
Frustrated at the install stage Gev Linux - General 1 12-17-2002 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration