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/)

hendrickxm 04-18-2021 08:14 AM

Since LFS is using a new way to build since LFS-10.0 I tried to use this. I added porg, which, tar-1.13, pkgtools and cruxports4slack to LFS-10.X at the end of chapter 7 and used SlackBuilds. It actually builds almost everything without a lot of issues. I used LFS order unless mentioned.
I created a directory for each slackware package containing the sources and SlackBuild.
I did not add anything else like aaa-packages, just standard/regular LFS up to chapter 7.
Some things I added/changed compared to regular LFS:
Code:

added lzip to use tar.lz sources
file after automake/autoconf
readline after ncurses
bc-3.3.0 using Pkgfile
shadow as per LFS using Pkgfile from emmett1/lfs-scripts
gcc as per LFS using Pkgfile
pkg-config --with-internal-glib
procps-ng without --enable-elogind
help2man before libtool
perl and XML-Parser using Pkgfile
kmod using Pkgfile
elfutils --enable-libdebuginfod-=dummy
python2
pyhton3 first using Pkgfile
python-setuptoos
python3 SlackBuild
texinfo before coreutils
eudev without --enable-introspection

Continuing using your order and using only SlackBuilds. Perl builds fine later on. I needed to build llvm using a Pkgfile and again using Slackbuild. Same with rust.
The only package not building as per SlackBuild is gcc and linuxdoc-tools builds but is missing stuff (so I used the binary).

nobodino 04-18-2021 10:36 AM

- concerning llvm, you won't be able to build it unless you change in the SlackBuild "clang" by "gcc", and "clang+" by "g++" on the first build. Once this package installed, you may be able to build llvm with the original SlackBuild.
- concerning the complete ggc, you won't be able to build the gnat part, unless you use the gnat-gpl binary package. gnat can't be build without a gnat "seed".
- concerning rust, you won't be able to built it with only the source package enclosed in the source tree, you'll need to download the packages listed in file.url.

I haven't tested the post LFS-10.x way to build LFS, it's difficult for me to follow what's going on.

I may not be the only one to be not convinced by the way it turned: read the following thread

https://www.linuxquestions.org/quest...em-4175681343/

hendrickxm 04-18-2021 12:39 PM

Thanks for the info. The new way of building LFS makes adding pkgtools (tar-1.13 and which are also needed) a lot easier and with less hassle.
You need to be a bit more careful with chrooting and after backing up the "tools" at the end of ch7 and make sure you chroot again.

hendrickxm 04-20-2021 02:14 PM

I am going through sfs by hand. Some things I discovered.
Eudev first build without --enable-introspection.
rsync --disable-xxhash --without-included-zlib.
cmake without --qt-gui OR without --system-curl to skip curl and c-ares.
libtirpc --disable-gssapi.
openldap --disable-sql before you install mariadb.
glib2 --gtk-doc=false.
gobject-introspection --gtk-doc=false and then rebuild eudev as default.
Standard perl slackbuild retested after mariadb too and was ok, did not test in between after every package.
I also needed network for rust, I am using a chroot and a seperate terminal to download to files to the chroot.
libgudev --vapi=disabled.
First build of dbus without --enable-x11-autolaunch.
fontconfig --disable-docs as it seems to need texlive, ok later.
Why does dhcp build bind? I used an older version (14.2 with slackbuild) as this seems to build cleaner. I did not see that when I did a build as per LFS.
libxkbcommon needs valgrind, doxygen for docs OR as I did -Denable-docs=false.
gpgme --enable-languages="cl cpp python" so remove qt there.
samba needs python-markdown and python-dnspython.
For ffmpeg to build without modifications I add frei0r from SBo, vid.stab and libsrvg.
Almost at the end of sfsbuild3 by hand.

nobodino 04-20-2021 02:54 PM

the better understanding of SFS you will have, is to build it by hand. That's what I did some time ago.
Good luck.

nobodino 04-25-2021 08:05 AM

regression test up to "Fri Apr 23 00:44:22 UTC 2021" (x86_64 version)

no regression at all.

nobodino 05-02-2021 04:04 AM

regression test up to "Fri Apr 30 18:09:21 UTC 2021" (x86_64 version) with kernel-5.12.0

no regression at all.

Just a difference in package name:
x/xorg-server-xwayland-21.1.1-x86_64-1.txz (Slackware)
x/xorg-server-xwayland-1.20.11-x86_64-1.txz (SFS)

nobodino 05-09-2021 02:02 PM

regression test up to "Sat May 8 00:24:32 UTC 2021" (x86_64 version) with kernel-5.12.2

3 regressions: gtk+3, gst-plugins-base and pulseaudio

gst-plugins-base and pulseaudio can be built with Ponce solution below:
------------------
sed -i 's|implicit_include_directories : false||' gst-libs/gst/gl/meson.build
-----------------
before the configure, build and install line

gtk+3 as no solution for the time beeing.

And still a difference in package name, that I don't unterstand:
x/xorg-server-xwayland-21.1.1-x86_64-1.txz (Slackware)
x/xorg-server-xwayland-1.20.11-x86_64-1.txz (SFS)

wildwizard 05-09-2021 10:12 PM

Quote:

Originally Posted by nobodino (Post 6249524)
And still a difference in package name, that I don't unterstand:
x/xorg-server-xwayland-21.1.1-x86_64-1.txz (Slackware)
x/xorg-server-xwayland-1.20.11-x86_64-1.txz (SFS)

Are you building the separate wayland server?

source/x/xorg-server-xwayland

nobodino 05-09-2021 11:54 PM

You're right I missed it.
Thanks.

ponce 05-10-2021 01:31 AM

Quote:

Originally Posted by nobodino (Post 6249524)
gst-plugins-base and pulseaudio can be built with Ponce solution below:
------------------
sed -i 's|implicit_include_directories : false||' gst-libs/gst/gl/meson.build
-----------------
before the configure, build and install line

actually maybe the two patches I assembled could be better

https://www.linuxquestions.org/quest...1/#post6249275
https://www.linuxquestions.org/quest...3/#post6249282

but judging from the stuff that meson-0.58.0 breaks, similar reports to the gtk+3 one from their issue tracker and fedora keeping it at 0.57.2, I'm not that sure which could be the best way to go...

nobodino 05-10-2021 06:13 AM

gtk+3 builds when you change:
"-Dgtk_doc=true" to "-Dgtk_doc=false"

vineetmehta 05-10-2021 06:25 AM

hi nobodino: what would be the minimal list of X11 packages (xdm window manager) which would be required in order to have just firefox browser (no other app required)?

hendrickxm 05-10-2021 06:30 AM

Quote:

Originally Posted by vineetmehta (Post 6249662)
hi nobodino: what would be the minimal list of X11 packages (xdm window manager) which would be required in order to have just firefox browser (no other app required)?

You can check his minimal list and add firefox until it starts without errors.
https://www.linuxquestions.org/quest...128/page7.html
BLFS can be usefull and dependencies according to salix: http://slackware.uk/salix/x86_64/sla...la-firefox.dep
To be able to compile this, you will need a lot more. Check out BLFS and the SFS buildlists.

vineetmehta 05-10-2021 06:56 AM

Quote:

Originally Posted by hendrickxm (Post 6249663)
You can check his minimal list and add firefox until it starts without errors.
https://www.linuxquestions.org/quest...128/page7.html
BLFS can be usefull and dependencies according to salix: http://slackware.uk/salix/x86_64/sla...la-firefox.dep
To be able to compile this, you will need a lot more. Check out BLFS and the SFS buildlists.

Actually, i am using Liveslak to make Live USB. My understanding was LFS/BLFS they teach how to do it from scratch. I will check the links you shared


All times are GMT -5. The time now is 12:44 AM.