LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-14-2016, 03:42 AM   #31
hendrickxm
Member
 
Registered: Feb 2014
Posts: 215

Rep: Reputation: Disabled

Thanks, great stuff. I managed to use a livecd, added tar-1.13 and the installpkg script. Then used installpkg --root /mnt/chroot *.txz and chrooted into it.
Now I will rebuild in the chroot.
Do you have the packages and slackbuilds you have used and build and can you share them?

Compared to LFS, what packages are absolutely needed to have a system that is capable to rebuild itself. I see elflibs, aaa_base, pkgtools, etc, bin, net-tools, perhaps sudo, curl, openssl, ...?

Last edited by hendrickxm; 03-14-2016 at 04:01 AM.
 
Old 03-14-2016, 06:10 AM   #32
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Read the memos called *-first and *-second I already posted, the minimum is explained to be able to build sfs and remove 'tools'.I noticed you forgot 'which'. By the end of *-second memo, you should be able to remove 'tools',boot in your new sfs and build everything. I hope the answer is clear for you?

Last edited by nobodino; 03-14-2016 at 01:10 PM. Reason: typo
 
Old 03-15-2016, 02:56 PM   #33
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 204

Original Poster
Rep: Reputation: 35
Nobodino,

Just read over your latest. Looks good. The only questions I had
were minor nitpicks. Managed to answer them myself. Keep up the
good work.
 
Old 03-17-2016, 04:09 PM   #34
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 204

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

Nobodino,

An apology. . .In the last batch of scripts I inadvertently sent the original sfsinit.sh instead of the debugged one.
You seem to have accomodated it, but . . . .

Attached are a corrected sfsinit.sh, an new build5.list, and sfsbuild5.sh.

The sh is the beginning of collapsing all my sh's down to one or two.
Build5.list is the X system broken out to individual files. Hope I got them all
 
Old 03-18-2016, 02:27 AM   #35
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
"Attached are a corrected sfsinit.sh, an new build5.list, and sfsbuild5.sh?"
Sorry, I don't see any attached file.
 
Old 03-18-2016, 02:45 AM   #36
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 204

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

Huh, wonder what happened?
They were there when I hit the send button.

Oh, well, here they are. . .
Attached Files
File Type: txt build5.list.txt (5.4 KB, 32 views)
File Type: txt sfsbuild5.sh.txt (2.1 KB, 31 views)
File Type: txt sfsinit.sh.txt (9.2 KB, 31 views)
 
1 members found this post helpful.
Old 04-04-2016, 01:43 AM   #37
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Another update to Slackware From Scratch.
I simplified the process and merged the different steps (sfsbuild0 to sfsbuild4) and there's only one build.list to achieve the build process.
There's less tricks: a real kernel-header package, adjust, sfselflibs are treated as package.
It works on the last current slackware version 01/04/2016 and LFS version 13/03/2016.
Attached Files
File Type: txt sfs-v03042016-first.txt (21.7 KB, 43 views)
File Type: txt scripts-sfs.sh.txt (36.5 KB, 27 views)
File Type: txt patches-sfs.sh.txt (56.7 KB, 31 views)
File Type: txt myprofile.sh.txt (2.9 KB, 24 views)
File Type: txt README-sfs-v03042016.txt (21.5 KB, 46 views)

Last edited by nobodino; 04-04-2016 at 02:23 AM. Reason: typo
 
1 members found this post helpful.
Old 04-04-2016, 12:54 PM   #38
archfan
Member
 
Registered: Mar 2016
Location: /dev/hug
Distribution: Slackware 14.2 x64
Posts: 85

Rep: Reputation: 32
Thanks for putting this information out there. Really useful stuff. I'm gonna use this to finish my Slackbuild musl build in the near future.

+1
 
Old 04-04-2016, 06:02 PM   #39
bormant
Member
 
Registered: Jan 2008
Posts: 311

Rep: Reputation: 175Reputation: 175
@nobodino

don't use # in middle of multiline command as in patches-sfs.sh
Code:
@@ -70,7 +70,7 @@
 ../bootstrap \
   --prefix=/usr \
   --docdir=/doc/$PKGNAM-$VERSION \
-  --qt-gui \
+#  --qt-gui \
   --system-curl \
   --system-expat \
   --no-system-jsoncpp \
@@ -87,7 +87,7 @@
   ../configure \
   --prefix=/usr \
   --docdir=/doc/$PKGNAM-$VERSION \
-  --qt-gui \
+#  --qt-gui \
   --system-curl \
   --system-expat \
   --no-system-jsoncpp \
EOF
# breaks command. You can test:
Code:
#!/bin/sh
echo \
  --1 \
  --2 \
# --3 \
  --4 \
  --5
Code:
$ sh tst.sh
--1 --2
tst.sh: line 7: --4: command not found
The line after # is a new command.

Last edited by bormant; 04-04-2016 at 06:03 PM.
 
Old 04-04-2016, 09:03 PM   #40
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 204

Original Poster
Rep: Reputation: 35
Nobodino,

Please check scripts-sfs.sh.txt. When I run it, I don't get the same
results that you show in the README file. Otherwise looks great.
I've been slowly working on something like this, but have had limited
time for it. Keep up the good work!

Worsel
 
Old 04-07-2016, 01:15 PM   #41
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Test with these files.
Only 3 scripts remains: initsfs.sh (and not sfsinit.sh), ch6prep.sh and sfsbuild1.sh.
All other scripts are secondary scripts called by the 3 ones above.
Attached Files
File Type: txt myprofile.sh.txt (2.9 KB, 29 views)
File Type: txt patches-sfs.sh.txt (56.5 KB, 30 views)
File Type: txt scripts-sfs.sh.txt (37.1 KB, 28 views)
File Type: txt README-sfs-v03042016.txt (22.5 KB, 31 views)
File Type: txt sfs-v06042016-first.txt (21.8 KB, 27 views)
 
Old 04-10-2016, 02:46 AM   #42
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 204

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

Nobodino,

I haven't had much time recently for this, but I did review your latest.
Looks good. Haven't been able to try it yet.

The attachment is something I cooked up while waiting for my car to be
repaired. It goes back to LFS and builds a tools directory using only
Slackware64 current sources, except for check and dejagnu.
Attached Files
File Type: txt btools.sh.txt (62.9 KB, 36 views)
 
Old 04-17-2016, 10:06 AM   #43
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Another update to Slackware From Scratch.
It works on the lastet current slackware version 15/04/2016 and LFS version 12/04/2016.
The file for the patches has not changed.
This time , the process is a bit different, no more sub-scripts.
The 3 scripts are built with procedures: one to init, one to chroot, one to build, and that is all.
The differences are in the details, so look carefully.
Attached Files
File Type: txt sfs-v06042016-first.txt (22.6 KB, 26 views)
File Type: txt sfsbuild1.sh.txt (17.0 KB, 24 views)
File Type: txt scripts-sfs.sh.txt (5.8 KB, 24 views)
File Type: txt sfsinit.sh.txt (20.9 KB, 28 views)
File Type: txt README-sfs-v03042016.txt (22.2 KB, 24 views)
 
Old 04-19-2016, 02:46 AM   #44
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
error in README to build sfs:
time (./sfsbuild1.sh build1.list) # don't forget the build1.list
 
Old 04-21-2016, 05:49 PM   #45
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 204

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

In your script, sfsbuild1.sh, you question why the glibc tests don't work.

Quote:
test-glibc )
# doesn't work, doesn't wait for the answer??
test_1
answer
test_2
answer
test_3
answer
test_4
answer
test_5
answer
test_6
answer
test_7
answer ;;
It doesn't work because you are already redirecting stdin. Can't do it
again in the same loop. The attached patch contains one solution:
(amongst other things. I'm doing a 64 bit build where you are doing 32 bit.)

Look at the patch from "LISTFILE =" down. What I did was read the list into
an array, then processed the array instead of trying to reuse stdin. Got the
idea from the "Advanced Bash Scripting Guide", which I believe is available in french.
Attached Files
File Type: txt iopatch.patch.txt (3.4 KB, 20 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 01:36 AM
How do I get the /etc/X11/X file rebuilt from scratch rickh Debian 4 05-08-2006 12:06 AM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 06:11 AM

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

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