LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-24-2016, 11:37 PM   #16
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

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


Rebuilt Slackware from Scratch, using Slackware-current,
downloaded February 8, 2016. I know there have been
upgrades since, but I like to keep my sources stable
for the duration of a build.

Problems found were:

1. I missed that libarchive had been moved to build list 2
and had to add "--without-archive" to the slackbuild
and rebuild in list 3.

2. Had to build eudev early. Wget would not compile. Disabled
introspection for the first build.

3. Had to rebuild libpng-1.6.20 before cmake would work.

4. The tix patch you gave would not work for me, Nobodino. Don't
know what I was doing wrong. Anyway I went in and removed those
two pesky exclamation marks by hand.

5. Had a hard time finding p2c-1.22. Finally found it on the
Madiera sight. p2-1.22-26.mga6.src.rpm.

6. Doxygen was okay after I wrote my own SlackBuild.

Anything else has been previously covered by myself or Nobodino.

There were a number of other problems, mostly pebkac's. The
biggest one though, was finding time to do this. It was fun however.

Nobodino, my scripts are attached. Also patches for all the
SlackBuilds we change. Enjoy!
Attached Files
File Type: txt build.txt (56.9 KB, 59 views)
File Type: txt list.txt (3.5 KB, 48 views)
File Type: txt patches.txt (47.3 KB, 48 views)
File Type: txt sfsbuild.txt (37.6 KB, 49 views)
 
2 members found this post helpful.
Old 02-24-2016, 11:44 PM   #17
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Goofed again. Forgot this thing can't tell
one file from another without a suffix.
Oh, Well. . . .
Attached Files
File Type: txt README.txt (5.5 KB, 70 views)
 
2 members found this post helpful.
Old 02-25-2016, 02:36 AM   #18
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
It looks good to me.
That's what I couldn't do myself: make "nice" scripts with my memos.
I do appreciate the job done.
 
Old 02-25-2016, 02:39 AM   #19
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
oups!

Last edited by nobodino; 02-25-2016 at 06:33 AM. Reason: double comment
 
Old 02-26-2016, 12:46 AM   #20
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Ran into two problems with SFS today.

1. Dialog somehow became linked to libncursessw-6.0. Had to recompile.

I think this happened because I did not delete the tools directory
in time. It probably should be deleted as soon as we build gcc.
Can't see that it should be used after that.

2. Xdm would boot me into root, but not user.

The error message was "XDM authorization key matches an existing
client![fvwm][main]: <<ERROR>> can't open display :0"

A search on the internet led me to a BSD message recommending
slim instead of gdm or kdm. I grabbed it from Slackbuilds.org,
installed it, and lo ... it worked!

On the other hand I got fvwm, firefox, and thunderbird working.
 
Old 02-27-2016, 08:15 AM   #21
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
a little improvement to your patches. Just rename the file.txt in file.sh (chmod +x file.sh) and ./file.sh and look at the result.
Attached Files
File Type: txt patches-nob.txt (49.0 KB, 42 views)
 
1 members found this post helpful.
Old 02-27-2016, 11:41 PM   #22
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Okay, I knew about that. Guess I got on a track and
forgot to get off.
 
Old 03-05-2016, 12:10 AM   #23
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Nobodino,

In your bbp20062015.txt, you indicated that both gstreamer and gstreamer0 needed their
SlackBuilds modified. I found the patch for gstreamers0 and blindly (I believe that is
a euphemism for stupidly) applied the patch to both SlackBuilds. If this was not the
intent, please advise.

TIA
 
Old 03-05-2016, 04:51 AM   #24
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
no, it was just gtreamer0 which was concerned by the patch.

Otherwise, I rebuild sfs with your scripts and simplify them for my purpose. You will see it.
 
Old 03-09-2016, 01:52 PM   #25
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Slackware from Scratch and X11

Rebuilt SFS using slackware64-current dated 2016-03-04.

The only new problem was net-tools. To compile it I had to
build libical and bluez just before net-tools.

I noticed that several X programs complain that doxygen does
not exist. Might it not be a good idea to build doxygen before
building X? I'll test this with my next build.
 
Old 03-10-2016, 12:53 AM   #26
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
Concerning net-tools see the new patch file enclosed. You'll know how to use it.
Attached Files
File Type: txt patches-sfs.txt (58.1 KB, 41 views)
 
Old 03-11-2016, 01:56 AM   #27
hendrickxm
Member
 
Registered: Feb 2014
Posts: 215

Rep: Reputation: Disabled
I already succesfully rebuild a fairly minimal slackware install before and the instructions here are very nice.
There is something I would like to try but cannot seem to find out how. I want to install a minimal slackware build and chroot into it and continue building. Meaning to installpkg from a non-slackware host and add all needed packages to rebuild themself.
You could get the same by doing a minimal install, boot a livecd and chroot from there.
Firstly, could someone provide me a list of packages needed for slackware such that the resulting system is able to rebuild itself? Containing enough to have a lfs-like system.
Next question, what would be the easiest way to get pkgtools installed on a non-slackware distro, without untarring slackware packages.

My guess would be to install tar-1.13 and copy the installpkg (and makepkg) script(s) on the host/livecd system.
Minimal list is kinda available in the notes provided by nobodino.

Last edited by hendrickxm; 03-11-2016 at 07:01 AM.
 
Old 03-11-2016, 04:56 PM   #28
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
hendrickxm,

Thank you!

For your first question, I don't know that continuing in chroot after my sfsbuild4.sh script (see previous posts in this thread for scripts)j
is wise. (This is equivalent to finishing nobodino's "slackware from scratch -v03022016-first.txt" listing. (also available earlier in this thread).
At this point I reboot into the newly built system. It is fully capable of rebuilding itself at this point.

To continue after this point without rebooting probably requires some sort of virtual machine software. I've no experience with such. For more
info see my post in the bedrock linux forum.

For your second question, I believe your guess is correct. Take care though, programs don't always install smoothly on alien systems!
 
Old 03-12-2016, 01:44 PM   #29
hendrickxm
Member
 
Registered: Feb 2014
Posts: 215

Rep: Reputation: Disabled
Thanks for your reply.
My idea is to get pkgtools on a host distro (livecd), install a list of packages (original slackware-current packages), similar as the one nobodino to build the chrooted environment, chroot into the system and rebuild the system, then add up to whatever I need.
And to get pkgtools (actually installpkg is enough) I guess adding tar-1.13 and the installpkg script should do it. If not, I can try with a livecd from zenwalk, slax, salix, ... that has pkgtools.
 
Old 03-14-2016, 01:44 AM   #30
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
Red face

A new update for "Slackware From Scratch", now the process is rather "automatic". I used Worsel's scripts and adpated them to an x86 system and simplified a little bit. There's no more tricks in the beginning of the process of building, it is clean.
Glibc is built from the beginning.
Tar-1.13 and which are included in "tools" to able to build cleanly the first seeds of slackware: makepkg, etc, aaa_base and glibc.

From now I've just done it for the first part.
You can try it, and if you're as lazy as I am, you just need a "resynced slackware repository", build LFS up to chapter 5 and execute about 10 scripts.
Attached Files
File Type: txt README-sfs-v12032016.txt (12.2 KB, 47 views)
File Type: txt etcfiles.txt (2.8 KB, 33 views)
File Type: txt scripts-sfs.txt (39.4 KB, 32 views)
File Type: txt patches-sfs.txt (58.1 KB, 34 views)
File Type: txt sfs-v08032016-first.txt (23.1 KB, 41 views)
 
  


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
[SOLVED] /usr/bin/X11/X11/....... 10 X11 subsets & counting walter74 Linux - General 2 06-07-2015 12:36 AM
How do I get the /etc/X11/X file rebuilt from scratch rickh Debian 4 05-07-2006 11:06 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 02:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration