LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-02-2015, 12:24 AM   #1
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
Building Slackware from scratch


Has anyone ever tried and manage to rebuild Slackware from scratch as done with L.F.S.?

Last edited by michaelk; 06-28-2015 at 06:35 AM.
 
Old 06-02-2015, 12:47 AM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
at least 2 people did

http://alien.slackbook.org/blog/armport/

http://arm.slackware.com/

where is think AlienBob's documentation for the cross compile is available, even if this is also already some years ago.

I think rebuild from scratch is not the coolest job, (what in times of yokto and co is somehow sad)
 
Old 06-02-2015, 05:15 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
It can be done, but equally it's a pain in the ass to do so due to the amount of dependencies between release status packages.

Honestly, several of us considered it to perform audits of the sources at certain intervals, but after enough knowledge was shared, it was said to be implausible to do so.

Technically, all packages can be rebuilt against the system as-is, and many of us do so for private repos. However, for all intensive purposes, Slack from Scratch isn't advised or practical.
 
Old 06-03-2015, 07:45 PM   #4
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
I imagine it might possibly be practical to build from scratch on a small, embedded platform where the hardware and workload never changes, but for a PC there is just no functional advantage.
 
Old 06-03-2015, 08:11 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
For a new platform it's actually a must-have, but even then after enough time, packages will start pulling in more and more auto-detected dependencies and doing anything from scratch will become pointless.

Technically, a new platform is the ONLY time you should attempt a from scratch build of an existing OS.

LFS technically is a different beast of a distribution of Linux because it's geared more for research, education, and developmental purposes. You can use it as a functional distribution, but it does require, after enough time, that you learn package management techniques to some degree to be able to effectively manage the system and update packages.
 
Old 06-04-2015, 12:41 AM   #6
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by ReaperX7 View Post
Technically, a new platform is the ONLY time you should attempt a from scratch build of an existing OS.
not only
abi changes in the compiler or using a different compiler can be also a reason
does of course not happen very often (btw there is one abi change for g++ in the queue)

also it depends on the point of view
is a package that does not rebuild any more broken? some say yes (I for example), some say no.
to ensure that this is not the case you rebuild the world from time to time.

in embedded world if you just change the compiler for the same hardware is a full rebuild of everything for an existing platform is common (even if most fight changes but that's a different story). or add/change some libraries, you often change the config and build the full distribution to get a new image.

and I am pretty sure that there are more reasons

so the documented possibility to rebuild from scratch is a good one (and would spare sometimes a lot of work, arm port...)
 
1 members found this post helpful.
Old 06-10-2015, 03:39 PM   #7
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
Well, when I asked if anyone had tried and managed to build it from scratch, I thought there would be positive answers.
At that time, I had already built it twice. The first time I had written hand notes and it wasn't very clean, but I knew it was achievable.
By now I have tested it two more times and polished it a little bit.
The system you will get through this howto is not a complete slackware system, but a bootable slackware system with all the development tools you'll find in a LFS-7.7 system,and minimum network packages to access internet, but no X11 by now.

Feel free to test it and enjoy as I did.
Attached Files
File Type: pdf slfs.pdf (39.8 KB, 621 views)
 
17 members found this post helpful.
Old 06-10-2015, 06:22 PM   #8
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by nobodino View Post
Well, when I asked if anyone had tried and managed to build it from scratch, I thought there would be positive answers.
At that time, I had already built it twice. The first time I had written hand notes and it wasn't very clean, but I knew it was achievable.
By now I have tested it two more times and polished it a little bit.
The system you will get through this howto is not a complete slackware system, but a bootable slackware system with all the development tools you'll find in a LFS-7.7 system,and minimum network packages to access internet, but no X11 by now.

Feel free to test it and enjoy as I did.
I just overview your doc, so I can't have an in depth "review", anyway, nice job !
 
Old 06-10-2015, 06:59 PM   #9
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
@nobodino
Nice work.
 
Old 06-10-2015, 07:12 PM   #10
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
That is pretty cool.
 
Old 06-10-2015, 07:55 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Pretty good and well documented.
 
Old 06-11-2015, 12:53 PM   #12
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Very nice work, sir!
 
Old 06-26-2015, 10:53 AM   #13
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I've finished to build the entire Slackware from scratch (except kde).
And it seems to work properly.
 
10 members found this post helpful.
Old 06-27-2015, 10:32 AM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Maybe an audit of the code was warranted after all. At least now we know several packages did need some fixes.
 
Old 06-27-2015, 10:46 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by ReaperX7 View Post
Maybe an audit of the code was warranted after all. At least now we know several packages did need some fixes.
You still look at Slackware as a different kind of LFS. No package needs fixes - they all work. Slackware packages are not recompiled randomly: only when needed. And the mere fact that the current source does not compile any longer does not make it mandatory to recompile the package which works OK.

Do you actually know what a code audit means?
 
  


Reply



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
[SOLVED] Building SQLite-3.8.8 on Slackware-14.1 rshepard Slackware 6 01-20-2015 06:12 PM
Building xbmc on Slackware 14 Woodsman Slackware 1 09-10-2012 10:10 PM
android building and Slackware {davros} Slackware 6 07-21-2011 01:46 AM
Cross-Building Slackware as a whole? gargamel Slackware - Installation 2 05-09-2004 06:31 PM
Building a Slackware PC Odin_of_Asgard Linux - Hardware 1 03-13-2004 11:01 AM

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

All times are GMT -5. The time now is 01:16 PM.

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