LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-26-2014, 09:25 PM   #1
Holering
Member
 
Registered: Feb 2010
Distribution: Slackware - Gentoo - Debian
Posts: 197

Rep: Reputation: 22
Question Slackware from source... Would anyone care?


Would anyone use a slackbuild tree to bootstrap their system? How many people would actually use it? The slackbuilds would of course, have some fixes-edits to compile succesfully with optional multilib slackbuilds. It'd only be tested on a 64-bit multi-lib rig without KDE too (though kdelibs builds fine). Some packages would be left out too (ccache, libkarma, jadetex, and maybe a couple others).

Thoughts?

Regards
 
Old 02-26-2014, 09:33 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Kinda all depends. Unless you're building for a new architecture, it's kind of pointless.

Slackware has some trouble compiling against itself from what others have mentioned, and the last known attempt worked but required some patchwork to be successful, but mostly for the base system (/a and maybe /ap) I think.

The Slackware system was designed to be continually updated against itself, but not rebuilt against itself, from what I've gathered. This made it easier to maintain in the long run with the -Current and *64-Current trees.

I think the only distributions that are known to possibly rebuild against themselves are LFS and Gentoo.

Don't get me wrong. I'm not discouraging you from trying, but it will be some level of work you might not be ready for.
 
Old 02-26-2014, 09:42 PM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What is the goal of it ?

If you want a bit of extra performance you can just recompile the kernel, glibc, glib, glib2. That speeds it up plenty.
 
Old 02-26-2014, 11:27 PM   #4
Spect73
Member
 
Registered: Aug 2013
Distribution: Slackware 14.1
Posts: 128

Rep: Reputation: Disabled
Quote:
Originally Posted by Holering View Post
Would anyone use a slackbuild tree to bootstrap their system? How many people would actually use it? The slackbuilds would of course, have some fixes-edits to compile succesfully with optional multilib slackbuilds. It'd only be tested on a 64-bit multi-lib rig without KDE too (though kdelibs builds fine). Some packages would be left out too (ccache, libkarma, jadetex, and maybe a couple others).

Thoughts?

Regards
Well, I for one think it would be a great learning endeavour. If you decide to do so, please keep us posted. I would be interested.
 
Old 02-26-2014, 11:46 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Do be careful how you rebuild it. Most stuff is compiled at the GCC recommended mtune flags -O2 and -fPIC or -i486 depending on the architecture involved.

I've really never seen anyone build using an mtune native flag or -O3 successfully, or run stably.
 
Old 02-27-2014, 01:08 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,351

Rep: Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382
Quote:
Originally Posted by Holering View Post
Would anyone use a slackbuild tree to bootstrap their system? How many people would actually use it?
This isn't generally considered to be technically feasible. In fact, I've never heard of anyone making it work. If you can, though, then I know the number is more than zero.
 
Old 02-27-2014, 01:22 AM   #7
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by Holering View Post
Would anyone use a slackbuild tree to bootstrap their system? How many people would actually use it? The slackbuilds would of course, have some fixes-edits to compile succesfully with optional multilib slackbuilds. It'd only be tested on a 64-bit multi-lib rig without KDE too (though kdelibs builds fine). Some packages would be left out too (ccache, libkarma, jadetex, and maybe a couple others).

Thoughts?
Some of us (myself included) like to rebuild the odd package with different options to add - or strip - some extra functionality, so it's nice to have the source code and the build scripts around. I'm currently writing a long article on package management for the Slackware Documentation Project. It's not yet finished, but the section about rebuilding official packages is already online. Check it out here:

http://docs.slackware.com/slackware:...ement_hands_on

Cheers,

Niki
 
3 members found this post helpful.
Old 02-27-2014, 02:03 AM   #8
Holering
Member
 
Registered: Feb 2010
Distribution: Slackware - Gentoo - Debian
Posts: 197

Original Poster
Rep: Reputation: 22
It'd be odd releasing a tree that compiles against itself, considering many slackware users prefer to be simple (slackware is meant to be simple) without things like bootstrapping the entire installation. Things are more complicated with bootstrapping and think maybe Patrick might benefit more from it but who knows; maybe unless you get some scripts that do most of the work for you (I have my own). The tree is pretty much stock slackware, except "-O2 -fPIC" is $CFLAGS, multilib slackbuilds are there, has fixes so things actually build, and it doesn't mangle the original slackbuild-tree.

Would probably diff or something against the original slackbuilds and release that. Don't want to release my scripts since they really are basic, but I could include examples of how to do stuff (think it's a lot more cool to let people do it their way). Might have to write a curses program (like sbopkg), but that's really beyond my scope right now. Don't think many would like running bare scripts only (I personally prefer a curses based program)...

EDIT:
I'm personally shocked Slackware is stable as it is considering it's never cleanly built against itself; correct me if I'm wrong. Things are supposed to have integrity and be consistent. When you do things in the *NIX world, you do them well http://www.howtogeek.com/182649/htg-...-what-is-unix/.

Regards

Last edited by Holering; 02-27-2014 at 03:01 AM.
 
Old 02-27-2014, 02:12 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,257

Rep: Reputation: Disabled
On this topic, see this thread There are others, that I am not able to find at the moment.

Last edited by Didier Spaier; 02-27-2014 at 02:13 AM.
 
3 members found this post helpful.
Old 02-27-2014, 03:39 AM   #10
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Slackware is a lot of fun and yes building bootstrap could be a fun thing to. But I will say this if it aint broke why fix it has been around. Such as libmad has not been rebuilt since 13.37 you will find you need to edit it so it will build on the 4.7.1 and the 4.8.2. I needed to rebuild it static for an embedded program I was working on. there are more hurtles to jump then just bootstrap.
 
Old 02-27-2014, 04:12 AM   #11
solarfields
Senior Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware, CRUX
Posts: 1,492

Rep: Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038
I guess it would be very educational. However, I like how Slackware installation goes blazingly fast on a modern hardware
 
Old 02-27-2014, 08:38 AM   #12
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
It's certainly possible to build everything from scratch, and (except for a few specific packages that break due to toolchain updates) quite easy in fact, and Slackware gives you all the tools to do it.

But!

Consider what's different between an Official Slackware package, and a package I've built myself.

The Official Slackware package has been tested and used by tens of thousands of people, maybe even hundreds of thousands. Whatever toolchain was used at the time it was built, apparently it worked fine. Even if Patrick's build host suffered a random single bit memory error due to a passing cosmic ray, apparently it didn't break anything in the package, otherwise someone would have reported it.

My package hasn't had that kind of hammering. Even if it seems to work ok, it's on probation.
 
3 members found this post helpful.
Old 02-27-2014, 10:50 AM   #13
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by ReaperX7 View Post
Do be careful how you rebuild it. Most stuff is compiled at the GCC recommended mtune flags -O2 and -fPIC or -i486 depending on the architecture involved.

I've really never seen anyone build using an mtune native flag or -O3 successfully, or run stably.
I don't know if we are talking about the same thing here but on my gentoo I use march native and it builds fine
 
Old 02-27-2014, 11:32 AM   #14
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
I would care to rebuild slackware form sources. Actually, I don't care it, but rebuilding from source is the only way to get "proper binaries" for me. "Proper binaries" for me is such binaries which was generated from sources using -g option(for gcc, or corresponding for other compilers), and was not processed with "strip", e.g. binaries which contain/provide full debug info. If I could get debug info from others sources, I would be ok with binaries provide out-of-box of slackware.
 
Old 02-27-2014, 01:04 PM   #15
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Might be interesting to try. A long time ago (in a galaxy far, far away) I installed Unix from 9-track tape on a PDP-something (don't remember the model); "installed" means "build everything from source," lots of Makefiles. You read the instructions, get all the hardware specs, loaded up a platform compatible C compiler (maybe an assembler -- there was some minimum amount of assembly code -- and loader and a couple of other rudimentary tools while you're at it), mount the tape, type make and wait awhile. Well, a long while actually -- tape drive spinning, stopping, starting, backing up, messages printing on the console (yeah, console used to be a hard-copy terminal, anything from an ASR-33 up). Every so often maybe type something or other. Bell Labs did a really nice job of making it happen in one go with one make (one assumes that Dennis Ritchie had a lot to do with that). Some hours later I had a bootable file, unix, a way to make it boot and a bunch of utilities to do actual work with. You edited with ed (later ex still later with vi, which is just ex in visual mode thanks to Bill Joy and crew).

So, following that "work your way down the tree kind of rule," figure out what order to build and install what with, edit up a bunch of Makefiles with one to control all of them and viola! SlackBuilds are, pretty much, just configure - make - make install, after all.

Pat's gotta do it somehow, maybe he'll tell you the sequence (or maybe it's in the documents somewhere)?

I do think it would be an interesting and probably frustrating exercise, but like Kiki Novak I do rebuild one or two base system packages every so often to add or eliminate an option (I do that with PHP to add a DBMS that's not one of the defaults). That's not difficult but I suspect that the entire system would be a challenge.

Hope this helps some.
 
1 members found this post helpful.
  


Reply

Tags
init, slackware from scratch


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
LXer: Should Health Care Standards be Open Source? LXer Syndicated Linux News 0 05-16-2009 11:20 PM
Software to take care of source packages BlahBlah_X Linux - Software 7 04-14-2007 12:43 PM
LXer: Open Source: Tell Me Why I Care LXer Syndicated Linux News 0 03-12-2007 03:31 AM
LXer: Health Care Open Source Conference LXer Syndicated Linux News 0 07-18-2006 09:33 AM
LXer: Why should we care about open-source Java? LXer Syndicated Linux News 0 05-30-2006 02:24 AM

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

All times are GMT -5. The time now is 12:41 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