LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-28-2015, 09:53 PM   #1
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Rep: Reputation: 45
Slackware from Scratch again


I have successfully compiled Slackware from Scratch for Slack64.
(My previous build was for 32 bit)

I used Slackware-current sources from the tree downloaded 2015-11-18.
The only exceptions were the kernel (I used 4.2) and libgpg-error-1.20
(libgpg-1.18 would not compile).

Problems encountered (and comments):
1) Had to pass LD_LIBRARY_PATH to ghostscript to get it to find
/usr/lib64.

2) Had to restrict bin.SlackBuild to '-j 1' to get it to run successfully.

3) Had to add the following sed to jadetex.build, just before make:
sed -ie "s?tex jadetex\.in?latex jadetex.in?" Makefile

4) Added hwdata to build2.list just before libffi. Otherwise,
libffi bombed.

5) Added libtasn1 and p11-kit to build3.list to get gnutls to compile.

6) Kmod, usbutils, fuse, and iptools all built okay. (They gave
problems in the previous -32 bit- build.)

7) svgalib gave problems. . .again. In threeDKit/quickmath.h, lines
63 through 147 were deleted. The definitions there are now
provided in /usr/include/math.h or one of it's include files.

8) Had to get a new computer right in the middle of all this.
May the old one rest in peace! (pieces?)

9) The version of Slackware-current used still uses udev. Conversion
to eudev should be fairly straight forward. ( If Pat reads this
last sentence, he will probably start tearing his hair out )

The scripts and lists I used for this project are in the attached .bz2 file
for those who are interested. They should work with 32 bit Slackware also,
but there might be problems.

Nobidino, you will notice that I used a lot of your ideas in these scripts.
Again, Thanks.

Worsel

Last edited by worsel; 11-28-2015 at 09:57 PM. Reason: oops. Here is the attachment
 
Old 11-28-2015, 10:02 PM   #2
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
re: Slackware from Scratch again

Okay, I didn't read the rules. I'll have to reorganize to
send the files. I tried to tar and bzip2 them, but that
doesn't seem to be allowed.

Worsel
 
Old 11-29-2015, 12:38 AM   #3
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
Build lists for SFS

Here are the build lists used for building SFS64.
Attached Files
File Type: txt build1.list.txt (479 Bytes, 76 views)
File Type: txt build2.list.txt (427 Bytes, 48 views)
File Type: txt build3.list.txt (536 Bytes, 39 views)
File Type: txt build4.list.txt (191 Bytes, 29 views)
 
1 members found this post helpful.
Old 11-29-2015, 02:07 AM   #4
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
I remember that when trying to compile gcc there were several stages, the first using the resident compiler to obtain the first binary gcc, and then gcc was compiled using itself, and maybe one time again, to get a stable result.
Is this method used to get a slackware distribution ?
 
Old 11-29-2015, 02:18 PM   #5
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
re: Slackware from Scratch again

Toutatis,

Not really. Go to http://www.linuxfromscratch.org/lfs/view/stable/ and read chapter 1.1.
It provides a good overview of what we're doing. The only difference is, after building the
basic tool chain we build from Slackware sources.

Worsel
 
1 members found this post helpful.
Old 11-29-2015, 02:53 PM   #6
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
Build lists for SFS

Here are the remainder of the build programs.
Attached Files
File Type: txt sfsbuild1.sh.txt (1.5 KB, 40 views)
File Type: txt sfsbuild2.sh.txt (1.2 KB, 23 views)
File Type: txt sfsbuild3.sh.txt (2.0 KB, 27 views)
File Type: txt sfsbuild4.sh.txt (718 Bytes, 21 views)
File Type: txt build.sh.txt (1.6 KB, 29 views)
 
1 members found this post helpful.
Old 11-29-2015, 02:54 PM   #7
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
re: Slackware from Scratch again

Okay, the last one.
Attached Files
File Type: txt kernel.sh.txt (1.3 KB, 29 views)
 
1 members found this post helpful.
Old 11-30-2015, 12:38 AM   #8
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
Much cleaner job than I did.
A question concerning gcc package: I couldn't get it compiling without modifying to "SlackBuild" only gcc and g++? Did you keep the original SlackBuild or not?
Building X11 in one step will be something interesting, particularly "mesa is a mess" among others.

Congratulations.
 
Old 12-01-2015, 10:30 AM   #9
nolretou
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 98

Rep: Reputation: Disabled
Congrats and thanks for sharing !!!
 
Old 12-01-2015, 03:24 PM   #10
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
gcc build

To nobodino:

Yes, I modified the gcc build. Forgot I'd done that. I used Pat's SlackBuild, but commented out everything except c, c++, and fortran
which I use occasionally.

As for a "cleaner job", credit where credit is due. My original attempt was a lot longer and much more messy.
After reading your scripts, I combined your ideas and mine.

I'm going to try to do X11 in one step. We'll see how that goes.

Worsel
 
  


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
Slackware from Scratch(?) ReaperX7 Slackware 40 12-30-2015 12:32 AM
Slackware from Scratch build worsel Slackware 5 09-20-2015 04:40 AM
Slackware from Scratch? dhave Slackware 10 02-07-2005 04:04 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

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

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