LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware from Scratch and X11 (https://www.linuxquestions.org/questions/slackware-14/slackware-from-scratch-and-x11-4175560702/)

nobodino 04-24-2016 11:55 AM

2 Attachment(s)
Worsel:

1: maybe could you try these new files included: just put them in an empty $LFS directory and execute: ./sfsinit.sh (it should be compatible with x86_64, to be tested)
2: no patch needed
3: didn't hit "^C" to complete the boot
4: no more errors with ifconfig.

Nota:
The sfsinit contains also the patches.
No more ch6prep: included in sfsbuild1.sh
You may have soon two options: slackware and dlackware (not complete for the time being)

nobodino 04-26-2016 02:42 PM

3 Attachment(s)
new update.
Should be compatible with slackware and dlackware.
Should build on x86 and x86_64.

worsel 04-27-2016 12:30 AM

Nobodino,

I just tried your new scripts. Sfsbuild1.sh quits when it tries to build jadetex.
The following error message appears:

Quote:

jadetex-3.13/ut1omlgc.fd
tex jadetex.ins
This is TeX, Version 3.141592 (Web2C 7.5.4)
Makefile:4: recipe for target 'basic' failed
make: *** [basic] Segmentation fault
tex jadetex.ins
This is TeX, Version 3.141592 (Web2C 7.5.4)
Makefile:4: recipe for target 'basic' failed
make: *** [basic] Segmentation fault
It's too late to try again tonight, but in the two previous versions, applying the
"jadetexbuild.patch" allowed it to continue. I still don't understand why you are
not having the same problem, but that's life. . . .

Worsel

nobodino 04-27-2016 12:49 AM

could you provide the patch for jadetex, I could include it in case x86_64?

tetex is a two pass building,
insert : "source /etc/profile/tetex.sh" just before ". $CWD/jadetex.build" in the tetex.SlackBuild

worsel 04-27-2016 02:32 PM

Slackware from Scratch and X11
 
1 Attachment(s)
Quote:

could you provide the patch for jadetex, I could include it in case x86_64?
Thought I had already sent a copy, but can't find it. So much for my memory. . .:cry:
The patch is attached.

nobodino 04-27-2016 03:10 PM

Redownload sfsbuild1.txt there was a bug in.

Haven't you tried modifying tetex.SlackBuild as I suggested (add 'source /etc/profile.d/tetex.sh' before the line '$CWD/jadetex.build ? tetex builds in two pass.

worsel 04-27-2016 04:44 PM

1 Attachment(s)
Okay, I'll try again. Here it is.

Quote:

Haven't you tried modifying tetex.SlackBuild as I suggested (add 'source /etc/profile.d/tetex.sh' before the line '$CWD/jadetex.build ? tetex builds in two pass.
No, I haven't tried that. The patch worked, so I just used it. Will look into your suggestion.

nobodino 04-29-2016 12:49 AM

Worsel:
ok, your patch works, my suggestion doesn't. I just this morning in a x86_64 slackware system.

worsel 04-30-2016 10:03 PM

1 Attachment(s)
Nobodino,

I had some problems with booting the kernel after building with your scripts.
The problem seemed to be resolved when I patched sfsinit.sh.

The attached patchfile shows what I did. Look at lines 317 through 367.

worsel 05-02-2016 02:21 AM

Carrying on further, I attempted to build X.

Problem 1: The documentation is missing from the source. I scanned the ChangeLogs but
found no mention of this. Is it really gone, Pat, or is it mishap?

Problem 2: The patch, llvmSB.patch did not take and I built 1 1/2 llvm's before I noticed
the second one was being built with gcc also. It's after midnight here so I will look into
it tomorrow or tuesday.

Advice for the day: Do not, repeat Do not start tarring a large directory while building llvm :)

worsel 05-04-2016 01:18 AM

1 Attachment(s)
Nobodino,

Disregard the patch for sfsinit.sh that I sent on 4-30. I was, apparently, not careful enough when
cleaning up after trouble-shooting and got an erroneous result.

The reasons it wouldn't boot was because "make oldconfig" went through without a hitch, instead of asking
if I wanted various things. This meant that the local version value was "" instead of "-smp". The kernel
couldn't find the modules. :(

Lines 35-42 in the attached file are what I did to correct it. Don't know why the configure process didn't
work right the first time, but the configure files are different for 32 and 64 bit.

Worsel

nobodino 05-04-2016 01:29 AM

2 Attachment(s)
Worsel:

could you test these new versions:
- change $LFS to $SFS as in your scripts
- just adapt to your $PATH
- remove all personal settings
- created the kernel.SlackBuild64 for x86_64
- builds cleanly on x86
- nota : 2 tools directories : tools and tools_64

nota2: I'll adapt sfsinit.sh with your new patch for kernel.SlackBuild, and see if works ok.

worsel 05-04-2016 11:48 PM

Nobodino,

Have you been having any trouble with autoconf, automake, m4, and libtool?

When I finish your previous script, these still refer to /tools/bin, which has been
deleted. When I recompile them, they work properly. I have been unable to
find a reason for this behavior. It could be in your script or in the ch5 build,
or something off in my computer. That really narrows it down :confused:

Worsel

nobodino 05-05-2016 01:04 AM

make a short build list which stops after gettext building, and build "at hand" the first culprit "libtool" and compare its building with the script with only libtool, and progress until you find or not the culprit?

nobodino 05-05-2016 03:04 AM

1 Attachment(s)
this time this kernel.SlackBuild works on both environment x86 and x86_64 (just tested this morning), and even in non chroot environment:test it outside $SFS to see the result.

worsel 05-08-2016 01:48 AM

Nobodino,

Your latest sfsinit.sh and sfsbuild1.sh seem to work as advertised. I didn't try the
dlackware part. Except for the problem outlined below, everything seemed to be ok.

Still having trouble with autoconf, etc. Most of the ones giving me trouble (perhaps all of them)
are scripts. Instead of the first line in the script being "#! /bin/whatever" it is "#! /tools/bin/whatever".
Doesn't matter if it's a perl, python, or sh script.

It doesn't show up until I try to compile X. The only way I can cure it is to run sfsbuild1.sh, the rebuild the
offending packages.

Guess I'll work on it tomorrow. It's almost midnight here and I need my beauty sleep.

Worsel

worsel 05-09-2016 01:24 AM

Nobodino,

I did notice one thing on your scripts. The kernel build place the modules in /lib/modules but also
puts a duplicate directory in /lib. I couldn't see where your script was the cause, so maybe the
problem is in the SlackBuild.

I've narrowed down my problem. Don't know why yet, but I know what is affected. The following packages
are built with "/lib/tools/bin/whatever" built in:

Quote:

d libtool
d bison
d flex
d autoconf
d automake
a grep
ap groff
a gzip
ap texinfo
n openssl
ap man-pages
l glibc
I can cure them by deleting the tools directory and recompiling the packages
in the order shown. Since we're using nearly identical scripts, (My last build
was with your latest using slackware-current dated 2016-05-05), I'm curious as
to why you aren't having the same problem. By the way, it doesn't show up
until one tries to build X.

Worsel

nobodino 05-10-2016 01:00 AM

1 Attachment(s)
Could you test the building of x86_64 with this build1_s.list.

If your LFS is too new (gzip >1.6, makepkg doesn't like very much: weird messages, same thing for findutils if >4.4.2).

To build a x86_64 system, I had to modify slightly the order of packages, and to build twice some packages to be able to boot.
Concerning the kernel, I've not solved the problem for the time being, but I've two ideas to solve it.

worsel 05-11-2016 12:39 AM

Your latest build1_s.list built ok, or, maybe better stated, ran to completion.

Actually, glibc built this time without "/tools/bin/" imbedded in xtrace, but
now find (from findutils) and binutils had to be recompiled at the beginning of
the list from my last sending.

I haven't tried compiling X yet. Will try it tomorrow.

worsel 05-14-2016 05:41 PM

Was able to build X all the way through xfce in Nobodino's lists.
The base system was built by Nobodino's sfsbuild1.sh on a 64 bit system.
The sources where slackware64-current, synced 20160505.

Some problems encountered:

1. Had to move xtrans up before xpby and libFS in the build list

2. libva-intel-driver needs "--without-wayland" added to the configure
parameters. Haven't made a patch for this yet.

3. p2c was not changed to p2c-1.22 in Nobodino's script.

4. Tix failed to build. Complained it couldn't find /usr/include/tclInt.h
which was there in plain sight.

5. The rcsSB patch failed to apply, even though it was in Nobodino's script.
Haven't looked into this one yet.

6. A full gcc build (ada, c, c++, fortran, go, java, lto, objc) failed.
The #@$%& thing worked last time I tried it.

Anyway, both blackbox and xfce seemed to work normally. Going to take a
few days off of this now. Got things to do. You know : balance the checkbook,
play with the grandkids, woo the girlfriend, etc.

nobodino 05-16-2016 01:46 AM

2 Attachment(s)
a new update to the scripts for building "slackware from scratch", the four configurations have been tested on x86/x86_64 with slackware/dlackware, they build and boot correctly.
The kernels are now real packages.
Everything about kernels (headers, modules and kernel) has been moved from sfsinit.sh to sfsbuild1.sh, it's cleaner.
Worsel: concerning the rcs patch, a typo changed the "rcs" in "rsc", that's why it didn't work I looked forward a long time before I found it.

Now I can go on for the second part, build x11/xfce...

nobodino 05-17-2016 02:56 PM

1 Attachment(s)
sfsinit updated with the patch for libva-intel-driver.

nobodino 05-18-2016 05:27 AM

1 Attachment(s)
by changing the destination of "others" directory, it got wiped before being used.
This version has the new patch, and "others" is usable for building x11.

nobodino 05-19-2016 01:08 AM

4 Attachment(s)
Worsel: one step forward

Your problems 1/, 2/, 4/ and 5/ should be solved with this.
It builds up to blackbox with the build2_s.list. Only tested on x86 and slackware, not for dlackware.
Don't forget to exit chroot environment and run ./chroot1.sh to have plain $PATH before building x11.

You can delete /tools directory before building X11, it' not necessary anymore.

error: in chroot1.sh: change the first line to '#!/bin/sh' and not '#!/bin.sh' :)

nobodino 05-24-2016 01:35 AM

3 Attachment(s)
new updates:
- builds up to xfce on slackware and dlackware and both architectures x86 and x86_64.

To be tested by someone else.

nobodino 05-24-2016 03:00 PM

2 Attachment(s)
the build3_s.list and build3_d.list are not the latest working ones (several errors)
Replace with the enclosed ones.

worsel 05-24-2016 11:07 PM

2 Attachment(s)
Nobodino,

You might want to check the last entry to the attached diff file.
I haven't actually tested it yet. Haven't had enough time. Will get
to it in a day or three.

Also attached is the latest version of the LFS ch5 build for Slackware.
Eliminated the programs "dejagnu" and "check". It seems to work here.

worsel 05-27-2016 05:12 PM

Nobodino,

Question: Are the pre_elflibs and post_elflib routines in sfsbuild1.sh necessary
for building on x86_64? I can't seem to find any reference to them in the source
files, but admit I may have missed something.

If they are needed, then the packages in /home need to be different:
installpkg cxxlibs-6.0.18-x86_64-1.txz vs installpkg cxxlibs-6.0.18-i486-1.txz, etc.

Keep up the good work,

Worsel

nobodino 05-28-2016 12:56 AM

you're right, I forgot to manage the case of x86_64 for pre_elf and post_elf.
For the time being, I'm trying to solve the new dep. for ghostscript which are not stabilized.

nobodino 05-30-2016 01:15 PM

2 Attachment(s)
A new update:
- pre_elflibs and post_elflibs are ok for x86_64 now
- gcc can now be built completely
- builds without any hiccup.

worsel 05-31-2016 01:36 PM

Nobodino,

In sfsbuild1.sh, under "# BUILD package treatment", shouldn't the xfce entry be
"cd /slacksrc/$SRCDIR/$PACKNAME && chmod +x xfce-build-all.sh && ./xfce-build-all.sh" instead of
"cd /slacksrc/$SRCDIR/$DIRNAME && chmod +x xfce-build-all.sh && ./xfce-build-all.sh"?

Haven't run it that far yet. It builds build1_s.list stuff just fine, except I still have the
problem of "/tools/bin/{perl,sh,bash}" being hard coded into some of the programs, forcing me to
recompile them after deleting the tools directory. Well, I'll find the answer eventually.

nobodino 05-31-2016 02:04 PM

for xfce: $PACKNAME=$DIRNAME

for the rest? No answer for now:
- could you describe what's wrong exactly?
- which programs are involved?

worsel 06-01-2016 08:06 PM

3 Attachment(s)
Ran the latest sfsinit.sh and sfsbuild1.sh.

Added a new gcc.SlackBuild. A patch to create it is attached. It differs from the old
SlackBuild in that it is complete in itself. Give it an argument and it only compiles
c, c++, and fortran. Run without an argument and it tries to compile everything.

Aside from my usual problems (see next reply), the following things went wrong:

1) The llvm patch seems wrong. It leaves us compiling llvm with gcc twice, instead of
compiling with clang the second time. Attached is a copy of the original patch.

2) Xfce looks for the build script in xfce/xfce. Removed the extra xfce.

A patch for these is attached.

worsel 06-01-2016 08:17 PM

The problems I've been having are mostly related to references to /tools/bin are
hardcoded into the files after build1_s.list is run.

In addition, on the last build, find would not work. No matter what I looked for
it returned "File not found." When I recompiled it I also had to recompile bash,
can't remember why. Memo to self: Keep better notes.

After the compile, if I go to /usr/bin and 'grep "tools/bin", this is what I get:

Quote:

root:/usr/bin# grep "tools/bin" *
grep: X11: Is a directory
aclocal:#!/tools/bin/perl -w
aclocal:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
aclocal-1.15:#!/tools/bin/perl -w
aclocal-1.15:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
afmtodit:#! /tools/bin/perl -w
autoheader:#! /tools/bin/perl
autoheader:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
autom4te:#! /tools/bin/perl -w
autom4te:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
autom4te:my $m4 = $ENV{"M4"} || '/tools/bin/m4';
automake:#!/tools/bin/perl -w
automake:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
automake-1.15:#!/tools/bin/perl -w
automake-1.15:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
autoreconf:#! /tools/bin/perl -w
autoreconf:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
autoscan:#! /tools/bin/perl -w
autoscan:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
autoupdate:#! /tools/bin/perl -w
autoupdate:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
autoupdate:my $m4 = $ENV{"M4"} || '/tools/bin/m4';
Binary file bison matches
c_rehash:#!/tools/bin/perl
Binary file flex matches
Binary file flex++ matches
grog:#! /tools/bin/perl
gropdf:#!/tools/bin/perl -w
ifnames:#! /tools/bin/perl -w
ifnames:eval 'case $# in 0) exec /tools/bin/perl -S "$0";; *) exec /tools/bin/perl -S "$0" "$@";; esac'
Binary file lex matches
libtool:SED="/tools/bin/sed"
libtool:GREP="/tools/bin/grep"
libtool:EGREP="/tools/bin/grep -E"
libtool:FGREP="/tools/bin/grep -F"
libtool:NM="/tools/bin/nm -B"
libtool:lt_truncate_bin="/tools/bin/dd bs=4096 count=1"
libtool:LD="/tools/bin/ld -m elf_x86_64"
libtool:LD="/tools/bin/ld -m elf_x86_64"
libtool:LD="/tools/bin/ld -m elf_x86_64"
libtool:LD="/tools/bin/ld -m elf_x86_64"
libtoolize:: ${EGREP="/tools/bin/grep -E"}
libtoolize:: ${FGREP="/tools/bin/grep -F"}
libtoolize:: ${GREP="/tools/bin/grep"}
libtoolize:: ${SED="/tools/bin/sed"}
makeinfo:#! /tools/bin/perl
mmroff:#! /tools/bin/perl
mtrace:#! /tools/bin/perl
mtrace:eval "exec /tools/bin/perl -S $0 $@"
pdfmom:#!/tools/bin/perl -w
pod2texi:#! /tools/bin/perl
texi2any:#! /tools/bin/perl
grep: x86_64-slackware-linux-gcj: No such file or directory
grep: x86_64-slackware-linux-gcjh: No such file or directory
zgrep:grep='${GREP-'\''/tools/bin/grep'\''}'
These can be corrected by recompiling the following programs:
Quote:

d libtool
a gzip
a bzip2
d bison
d flex
d autoconf
d automake
a grep
ap groff
ap texinfo
n openssl
ap man-pages
l glibc
Since you don't seem to be having this problem, I assume it is coming from
the ch5 build, but I can't seem to find anything wrong there.

Any ideas would be appreciated.

nobodino 06-02-2016 01:18 AM

The messages with grep "tools/bin *" are the same here. I'll look into it.
Don't bother with chapter 5.

1/ llvm builds fine , on the second pass, it's "build1" which is used (so llvm.SlackBuild.old)

nobodino 06-03-2016 11:14 AM

2 Attachment(s)
Here is something solving your problems with (grep 'tools/bin' *) not empty.
Not the smartest manner, but it works.
The remaining message should go with the gcc-all build.

worsel 06-05-2016 01:31 AM

Quote:

Not the smartest manner, but it works.
I'll keep looking for a more elegant solution.
However, it is possible there is none.

Just finished running sfsbuild1_s.list. Everything
looks good right now.

Thanks.

nobodino 06-05-2016 04:08 AM

1 Attachment(s)
gcc_build and gcc_build64 have to be modified due to your new gccSB.patch.
See the enclosed file.

worsel 06-09-2016 12:31 AM

3 Attachment(s)
Okay, just finished building xfce using the latest sfsbuild1.sh & sfsinit.sh

Had to rebuild findutils and bash again. Findutils to continue after build1_s.list,
because it gave error messages instead of finding files. Bash worked all the way
until building gcc-all, then the program couldn't find gnat.

Must apologize again. The last gcc.SlackBuild patch I sent was the wrong one. The correct one
is attached, along with diff files for sfsbuild1 & sfsinit. As usual, ignore pathnames.

hendrickxm 06-09-2016 01:41 AM

I am following this thread with a lot of interest.
I read through most scripts and I wonder why some packages are installed/build. It seems to me a few are not needed.
Some examples: rpm and rp2tgz might be usefull but I don't think these are needed to build other packages.
bin (probably needed)
help2man (probably for docs/man)
slacktrack (needed for linuxdoc-tools which is needed for docs)
tetex and tetex-doc and ed (probably to build some docs)
mc and thus slang/slang1 (I do not need mc)
some internationalization and libs like dmapi, libidn
mm
svgalib
lvm2 for a desktop install?
ncftp and lftp
dhcp and dhcpcd

Probably a few more and they could probably be removed if you do not install all docs and thus edit a lot of slackbuilds.
libpthread-stubs can be removed if you add a sed
Code:

sed -i "s/pthread-stubs//" configure &&
to some configure files.

nobodino 06-09-2016 11:57 AM

ap: linuxdoc-tools: need slacktrack, itstool, unzip, libxml2, libxslt, python, tetex, rpm2tgz, rpm, diffutils, cpio, intltool

If one of these packages is missing, linudoc-tools won't build.
I made the lists by compiling by hand each package, searching for the dependancies by trying and trying again until I had something working.
The initial aim of this was to build Slackware from scratch with the minimum modifications to the slackbuilds, unless circular dependancy or bugs.
It's possible to build a "working system" by pass-passing a lot of docs by modifying the slackbuilds, that's what I'd done first, but I didn't like that way of working.
So it's why it is as it is now.

hendrickxm 06-09-2016 12:18 PM

Quote:

Originally Posted by nobodino (Post 5558468)
ap: linuxdoc-tools: need slacktrack, itstool, unzip, libxml2, libxslt, python, tetex, rpm2tgz, rpm, diffutils, cpio, intltool

If one of these packages is missing, linudoc-tools won't build.
I made the lists by compiling by hand each package, searching for the dependancies by trying and trying again until I had something working.
The initial aim of this was to build Slackware from scratch with the minimum modifications to the slackbuilds, unless circular dependancy or bugs.
It's possible to build a "working system" by pass-passing a lot of docs by modifying the slackbuilds, that's what I'd done first, but I didn't like that way of working.
So it's why it is as it is now.

Thanks, very clear! Using stock slackbuild feels better.
What about dhcp AND dhcpcd, lftp AND ncftp?

Have you tested the obscure X packages like lndir, ggcmakedep, ... none are listed in BLFS for example.
BLFS removes the libpthreadstubs dependency and what other packages need llvm apart from mesa (and that is optional).

nobodino 06-09-2016 01:31 PM

1 Attachment(s)
read the memo enclosed. You will better understand how it was built.
At the very beginning (two years from now), everything was built at hand, one package after one, until I got something close an equivalent "LFS" able to build everything, and able to access internet (the reason for the last packages).
Then I tried to automatize it with the help of JEG, until you see as it is now

nobodino 06-13-2016 06:03 AM

2 Attachment(s)
I've managed to shrink drastically the first part of sfs building, the functionality is not the same: 67 packages instead of more than 180.
It can boot, but need 'tools' to go on building sfs.
Hendrickxm: you can test it with build0_s.list instead of build1_s.list and patch kmod.SlackBuild with what is enclosed in the new memo.

hendrickxm 06-13-2016 06:47 AM

Thanks, excellent documentation. Your work is greatly appreciated.

hendrickxm 06-15-2016 11:03 AM

Slackware from Scratch 14.1
 
As an experiment I am trying to recompile slackware 14.1 instead.
Using a very minimal chroot I tried to rebuild almost all packages, excluding specific/exotic stuff and the toolchain.
Why is this useful? Not really sure, but I was intrigued with stripslack and LFS. So the idea was to have a LFS-like system, capable of recompiling itself. My goal is to have a very minimal slackware-based system. Using unmodified slackbuilds where possible. So this is the list:
Code:

aaa_base-14.1-i486-1
aaa_elflibs-14.1-i486-3
aaa_terminfo-5.8-i486-1
autoconf-2.69-noarch-1
automake-1.11.5-noarch-1
bash-4.2.053-i486-1_slack14.1
bc-1.06.95-i486-1
bin-11.1-i486-1
binutils-2.23.52.0.1-i486-2
bison-2.7-i486-1
bzip2-1.0.6-i486-1
ca-certificates-20160104-noarch-1_slack14.1
coreutils-8.21-i486-1
cxxlibs-6.0.18-i486-1
devs-2.3.1-noarch-25
diffutils-3.3-i486-1
e2fsprogs-1.42.8-i486-2
etc-14.1-i486-2
file-5.14-i486-1
findutils-4.4.2-i486-1
flex-2.5.37-i486-1
gawk-4.1.0-i486-2
gcc-4.8.2-i486-1
gcc-g++-4.8.2-i486-1
gdbm-1.8.3-i486-4
gettext-0.18.2.1-i486-2
gettext-tools-0.18.2.1-i486-2
glibc-2.17-i486-11_slack14.1
glibc-zoneinfo-2016d-noarch-1_slack14.1
gmp-5.1.3-i486-1
grep-2.14-i486-1a REMOVED pcre dependency
groff-1.22.2-i486-1
gzip-1.6-i486-1
kbd-1.15.3-i486-2a ADDED --disable-nls
kernel-headers-3.10.17_smp-x86-3
kmod-15-i486-1a ADDED --disable-manpages
libmpc-0.8.2-i486-2
libtool-2.4.2-i486-2
linuxdoc-tools-0.9.68-i486-4
m4-1.4.17-i486-1
make-3.82-i486-4
man-1.6g-i486-1
man-pages-3.53-noarch-1
mpfr-3.1.2-i486-1
nano-2.3.2-i486-1
ncurses-5.9-i486-2
patch-2.7.4-i486-1_slack14.1
perl-5.18.1-i486-1a REMOVED all modules except XML-Parser
pkg-config-0.25-i486-1
pkgtools-14.1-noarch-2
procps-3.2.8-i486-4
python-2.7.5-i486-1
readline-5.2-i486-4
sed-4.2.2-i486-1
shadow-4.1.5.1-i486-3_slack14.1
tar-1.26-i486-1a ADDED sed from LFS 7.4
texinfo-4.13a-i486-4
util-linux-2.21.2-i486-6
which-2.20-i486-1
xz-5.0.5-i486-1
zlib-1.2.8-i486-1

The packages I did not compile:
Code:

aaa_*
bin
binutils
ca-certificates
cxxlibs
devs
etc
gcc, gcc++
glibc-*
gmp
libmpc
libmpfr
libtool
linuxdoc-tools
man
man-pages
pkgtools
zlib

I added openssl-solibs and wget to be able to download some stuff inside my chroot.
I was able to compile openssl and wget as well. Openssl needed a modified patch from BLFS.
Some other stuff I tried to add and succeeded:
Code:

net-tools with suggested patch
iproute2 with sed from LFS 7.4
udev using LFS configure options
grub
sysvinit

Sysvinit-scripts and functions I am not gonna try to compile.

The next step is trying to build X and a bootable system, all will still be done inside the chroot.

It would be interesting to see if I can rebuild all these packages with the slackware-current toolchain, but I am in no hurry.

worsel 06-16-2016 04:13 PM

2 Attachment(s)
Kept on building after gcc-all, using the attached build7.list.

Ran into some problems:

> efibootmgr would not compile
> elilo would not compile -- needs efibootmgr.
> mkinitrd would not compile -- error: busybox_unstripped failed
> reiserfs progs did not build.
> ispell failed to build
> libmad failed to build.
> madplay, normalize did not build -- reason: need libmad
> mpg123 build failed -- reason: missing audio modules

I'm still working on the first four, but have attached patches for
libmad and mpg123. Would appreciate any patches for the first four.

I'll uncomment the failed items in the list when I find solutions.
gvim is not a problem. The build script I'm using builds both vim
and gvim when it encounters vim.

isapnptools is not used on x86_64.

hendrickxm 06-21-2016 05:20 PM

Slackware-current from binaries rebuild
 
I tried to install a small chroot with slackware-current binaries that could compile itself.
Here is what I came up with:
Code:

aaa_base-14.2-i586-2
aaa_terminfo-5.9-i486-1
acl-2.2.52-i486-1
attr-2.4.47-i486-1
autoconf-2.69-noarch-1
automake-1.15-noarch-1
bash-4.3.042-i586-1
bin-11.1-i486-1
binutils-2.26-i586-3
bison-3.0.4-i486-1
bzip2-1.0.6-i486-1
ca-certificates-20160104-noarch-1
coreutils-8.25-i586-2
cxxlibs-6.0.18-i486-1
db48-4.8.30-i486-2
devs-2.3.1-noarch-25
diffutils-3.3-i486-1
e2fsprogs-1.43.1-i586-1s0
etc-14.2-i586-6
expat-2.1.0-i486-1
file-5.25-i586-1s0
findutils-4.4.2-i486-1
flex-2.6.0-i586-1
gawk-4.1.3-i586-1s0
gc-7.4.2-i586-3
gcc-5.3.0-i586-3
gcc-g++-5.3.0-i586-3
gdbm-1.12-i586-1
gettext-0.19.8.1-i586-1
gettext-tools-0.19.8.1-i586-1s0
glibc-2.23-i586-1s0
glibc-zoneinfo-2016e-noarch-1
gmp-6.1.0-i586-1
grep-2.25-i586-1s0
groff-1.22.3-i586-2s0
guile-2.0.11-i486-2
gzip-1.8-i586-1
kernel-headers-4.4.13_smp-x86-1
less-481-i586-1
libcap-2.22-i486-1
libffi-3.2.1-i486-1
libmpc-1.0.3-i486-1
libsigsegv-2.10-i486-1
libtermcap-1.2.3-i486-7
libtool-2.4.6-i586-4
libunistring-0.9.3-i486-1
m4-1.4.17-i486-1
make-4.1-i586-2
man-1.6g-i586-3
man-pages-4.06-noarch-1
mpfr-3.1.4-i586-1
nano-2.5.3-i586-1
ncurses-5.9-i486-4
net-tools-1.60.20120726git-i486-1
network-scripts-14.2-noarch-1
openssl-1.0.2h-i586-1
patch-2.7.5-i586-1
perl-5.22.2-i586-1s0
pkg-config-0.29.1-i586-2s0
pkgtools-14.2-noarch-10
procps-ng-3.3.11-i586-1
readline-6.3-i586-2
sed-4.2.2-i486-1
shadow-4.2.1-i486-1
tar-1.29-i586-1
texinfo-6.1-i586-1
util-linux-2.27.1-i586-1s0
wget-1.18-i586-1s0
which-2.21-i586-1
xz-5.2.2-i586-1
zlib-1.2.8-i486-1

I did rebuild a few packages to remove a few linked libraries.
glibc was linked against libpng and something else
e2fsprogs against fuse
grep against pcre
perl is built with only XML-Parser
gettext-tools and pkg-config was linked with glib2
groff was linked against Xorg-libs
util-linux against eudev and python
wget with libidn

I would love to remove links against libsigsegv, gc, libffi, libunistring, libtermcap. Most of all removing guile would be awesome, what a slow build.
There is no eudev, sysV, kbd, kmod, bc, kernel, so booting is not possible. But I thought it would be nice to see if a small chroot could rebuild itself. Basically it is a LFS ch6 without bootstuff and extras needed to rebuild itself using mostly slackware buildscripts.
I did not rebuild gcc-*, binutils, bin, etc, devs, libtool, zlib, kernel-headers, linuxdoc-tools, aaa-*, mpfr, mpc, gmp, pkgtools because either part of toolchain, slackware related or too exotic.
packages with s0 are rebuilds with possibly modded buildscript.

I wanted to stay with 14.1 but my touchscreen/touchpad does not work on my laptop on 14.1 and current does.

EDIT: I managed to remove the guile and gc dependencies by going back to make-4.0. I also removed libunistring by compiling gettext-tools with --with-included-libunistring.
I am using cruxports4slack to build a few specific packages with Pkgfiles from Nutyx/LFS. Kbd with the slackware buildscript fails because of exotic translations.
Gperf, eudev --disable-introspection, sysV, sysklogd, man, man-pages, binutils, libtool (through specific buildscript so no need for help2man), kbd (specific buildscript), binutils, zlib, gmp, mpfr, mpc, they all compile. I will rebuild further and try to trim it down some more. A lot of stuff has been added compared to 14.1.

nobodino 06-29-2016 05:55 AM

2 Attachment(s)
new version:
- introduced a bare version with build0_s.list (no need of 'tools' to go on, but no internet): self sufficient to build slackware (81 packages to build)
- introduced build4_s.list to build almost everything except kde: some packages resist (qt-gstreamer, akonadi, gv,..)
- solved the problem for: efibootmgr (add efivar 0.23+patch and bump version 0.12), reiserfprogs (bump version 3.6.25), isapnptools (bump version 1.27), ispell (bump version 3.4..00), mkinitrd, libmad (patch), madplay, mpg123...
- add a lot of patches to build broken packages
- no more weird message when : grep 'tools/bin' * in /usr/bin, even with build0_s.list

That's all folks!

worsel 07-08-2016 09:18 PM

Nobodino,

Sorry to take so long, but I've been busy. Just finished testing your last scripts.
Initial build with build1_s.list went fine, except "bin/tools" showed up in bison
and flex binaries. Rebuilt them and everything appears to be fine.

Keep up the good work!

Worsel aka J. E. Garrott Sr


All times are GMT -5. The time now is 05:28 AM.