LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-12-2006, 01:19 PM   #1
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Rep: Reputation: 16
How I can Build Slackware From Scratch (by source CDs)?


How I can build Slackware from source like LinuxFromScratch ?

I have all 4 CDs (Source included).
 
Old 04-12-2006, 01:41 PM   #2
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Rep: Reputation: 30
well i compile the stuff that i use alot and that are big. such as X, kde, my kernel(no big deal) and a few libs. Im sure that you can build all the packages that have a slackbuild. but there are some that are noarch so it would be pointless, such as aaa_base
 
Old 04-12-2006, 01:54 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
And, just out of curiosity, why would you want to?

An easier way to accomplish what you want is to pick and chose the packages you want installed at install time. Or after the install, run 'pkgtool' and remove what you don't want.

You CAN do what you want, but you will more than likely run into what the RH/FC users call "Dependency Hell"...Missing libraies,programs, etc.
 
Old 04-12-2006, 08:53 PM   #4
drumz
Member
 
Registered: Apr 2005
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 188

Rep: Reputation: 33
I would guess that you want to follow the basic guidlines given in the LFS book, substituting in the sources from your Slack 3-4 CDs. For your initial build chain (or whatever it's called), just installpkg the stuff you need (aaa_base, binutils, gcc, etc.). Be sure to read through the whole LFS book (I know, it's long) before you start. This way you'll have an understanding of what's going on.
 
Old 04-12-2006, 09:37 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,807

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by cwwilson721
And, just out of curiosity, why would you want to?
Exactly. Apart from the kernel (and stuff which is not included in Slackware), I use all Pat's binaries. No point re-compiling X, KDE or anything else because in my experience, the benefits of doing so aren't worth the pain.
 
Old 04-13-2006, 12:50 AM   #6
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Rep: Reputation: 30
Quote:
Originally Posted by rkelsen
Exactly. Apart from the kernel (and stuff which is not included in Slackware), I use all Pat's binaries. No point re-compiling X, KDE or anything else because in my experience, the benefits of doing so aren't worth the pain.
Well its not that painful for me. My computer is fast enough that i run the script go out party and then wale up the next morning (read afternoon) and its done.
 
Old 04-13-2006, 03:07 PM   #7
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Optimize Slackbuild scripts which are provided with source and use them. They will do all the job for you.

Last edited by Alien_Hominid; 04-13-2006 at 03:09 PM.
 
Old 04-14-2006, 07:42 AM   #8
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Original Poster
Rep: Reputation: 16
ok, is there a build utility?
 
Old 04-14-2006, 07:29 PM   #9
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by alMubarmij
ok, is there a build utility?
you don't need one... just use the *.SlackBuild scripts which are provided along with the sources... they are the same scripts that patrick uses to build the official packages...
 
Old 04-14-2006, 08:09 PM   #10
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
I'm actually going through something like this now. I installed the base system, development tools, and networking support from my Slackware 8 CD. I've manually upgraded to glibc-2.4 and to a 2.6.16.5 kernel as well as to gcc-4.1-20060407 (since gcc-4.1.0 doesn't adequately support glibc-2.4). I recompiled a BUNCH of stuff (autoconf, and similar, coreutils, findutils, diffutils, etc) and I started building X this morning.

Once I get X up, I'll build enlightenment DR17 and then start building the GTK libraries, etc.

I guess my deviation is I'm upgrading to newer versions of what I'm building when I build them. My machine is slow, so this is a long running process but in the end I should have a very current machine.

Peace...
 
Old 04-15-2006, 01:37 AM   #11
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Wouldn't you get rather current packages if you upgrade in normal way from Slackware Current?
One good thing in building from source is optimizing possibility. But you said that you have a rather slow machine, so optimizing won't give you significant increase in performance. So why don't you take the easier way?
 
Old 04-15-2006, 02:52 AM   #12
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by Alien_Hominid
Wouldn't you get rather current packages if you upgrade in normal way from Slackware Current?
One good thing in building from source is optimizing possibility. But you said that you have a rather slow machine, so optimizing won't give you significant increase in performance. So why don't you take the easier way?
Because I tend to stay far more current than any of the distros. For example, when I get X up and running, I'll install the latest GTK+ toolkit, which is currently 2.8.17. That came out last week. I'll upgrade to 2.6.17 when that comes out and I'm already on 2.6.16.5.

I guess I'm more of a "bleeding edge" kind of guy.

What is the latest version of glibc available in Slackware packages? I'm no glibc-2.4 right now.

I don't build from source for optimization reasons as much as being able to keep my system organized the way I want and being able to more readily and easily keep it current. I don't have any of the annoying dependency issues others tend to have when using pre-built binaries and I keep my system up to date with so much stuff, things build and install easily.

Peace...
 
Old 04-15-2006, 11:30 AM   #13
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
That's pretty much what I do. I'm on glibc-2.4, gcc-4.1.0, binutils-2.16.1, gnome-2.14.0, et. all... I can't stand waiting on packages so I rebuilt the entire thing including an up-to-date toolchain to build from. I've been implementing -fstack-protector in alot of packages as well. Can't play with all the latest and greatest glibc/gcc has to offer on slack-current right now. Actually, you can't do that with any distro except Fedora or one you build yourself.
 
Old 04-15-2006, 06:37 PM   #14
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
do you guys do this on your live systems or do you chroot to a partition (LFS style)??

or do you have a separate install you boot into for building packages??

just curious...

Last edited by win32sux; 04-15-2006 at 08:26 PM.
 
Old 04-15-2006, 11:13 PM   #15
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Well, that is my 'live' running system. A heavily bastardized bleeding edge Slackware I suppose... I dual boot with vanilla Slack as well. Just have some problems here and there compiling older packages with the latest GCC. Fedora CVS has patches to fix all that tho.

LFS/DIY is a great thing to get into. After 3 or 4 times you get bored with it and start mashing distro's together and eventually end up making it your own unique creation. That's where it get's interesting instead of a giant copy/pasting exercise which is basically what LFS becomes after a couple times....
 
  


Reply

Tags
dev


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
How I can Build RedHat Enterprise From Scratch (by source CDs)? alMubarmij Red Hat 6 04-17-2006 02:48 AM
hplip on a linux from scratch build? behmjoe Linux - Hardware 0 12-19-2005 08:57 PM
mod_jk build from scratch dunamin Linux From Scratch 3 08-27-2005 01:05 AM
Build Slackware from source? hrp2171 Slackware 1 09-07-2004 01:31 PM
Build from scratch JROCK1980 Linux - Distributions 2 09-09-2003 08:28 PM


All times are GMT -5. The time now is 04:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration