[Clfs-support] Current Patches and Updates pt3
Martin Ward
macros_the_black at ntlworld.com
Sat Jan 21 11:45:57 PST 2017
Here is my current build run through
I only do pure 64, but the specs patch should be good for a multi-lib build
Also I remove all .la files from the build
Updates from pt1 and 2
kernel has been upgraded to current 4.9.4
zlib has been updated to zlib-1.2.11
grep 2.7 has been patched to fix a possible seg fault in gnulib,
patch from gentoo grep-2.27-splice.patch
sed 4.1.3 has also been fixed
again patches from gentoo
sed-4.3-dfa-segv-{1,2,3}.patch
util-linux has been updated to 2.29.1, no patches necessary
still can't find our ncurses, so the sed's still needed
Boot part
I boot into the temp system rather than chroot
I also add a few extra packages for convenience rather than anything else
all can be built with ./configure --prefix=/tools --build=${CLFS_HOST}
--host=${CLFS_TARGET}
gpm 1.20.7 (cut and paste)
nasm 2.12.02 (for e3)
bc again for kernel compiling
in the final section flex needs bison to bootstrap, so build it here
but bison needs m4 ?
m4 builds any with the following
m4-1.4.18
cat > config.cache << EOF
gl_cv_func_btowc_eof=yes
gl_cv_func_mbrtowc_incomplete_state=yes
gl_cv_func_mbrtowc_sanitycheck=yes
gl_cv_func_mbrtowc_null_arg1=yes
gl_cv_func_mbrtowc_null_arg2=yes
gl_cv_func_mbrtowc_retval=yes
gl_cv_func_mbrtowc_nul_retval=yes
gl_cv_func_wcrtomb_retval=yes
gl_cv_func_wctob_works=yes
EOF
bison-3.0.4
M4=m4 // add this to configure to prevent hardcoding the m4 path
this stops a build failure re help files
cp -v Makefile.in{,.orig}
sed '/bison.help:/s/^/# /' Makefile.in.orig > Makefile.in
now boot section proper
7.3 boot scripts, remove a spurious command from the udev script
echo "" > /sys/kernel/uevent_helper //not needed anymore for recent kernels
7.4 updated to E2fsprogs-1.43.3
7.5 updated to kmod-23 /no compression as i don't have any compressed
modules
7.6 updated to shadow-4.4, there are a few patches for this floating
around to fix a few minor bugs the subordinate-ids hack is not longer
needed, added find man -name Makefile.in -exec sed -i -e
's/man1\/groups\.1 //' -e 's/man8\/nologin\.8 //' '{}' \;, to remove a
couple of spurious man files
7.7 sysvinit no change
7.8 updated to eudev 3.2.1
remove a spurious file, sed -i '/keyboard_lookup_key/d'
src/udev/udev-builtin-keyboard.c
./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}
--libexecdir=/tools/lib --enable-libkmod --disable-introspection
--disable-gtk-doc-html --disable-gudev --disable-keymap
--with-firmware-path=/tools/lib/firmware --disable-static
7.9 linux kernel update dto 4.9.4
7.10 boot loader not needed on my system
7.11 create directories same
7.12 symlinks removed the sed sed -e 's/tools/usr/'
/tools/lib/libstdc++.la > ${CLFS}/usr/lib/libstdc++.la
as i have already removed all .la files from tools
7.13 same
7.14 minimal passwd file
root::0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:6:6:daemon:/sbin:/bin/false
lp:x:9:9:lp:/var/spool/lp:/bin/false
adm:x:16:16:adm:/var/adm:/bin/false
messagebus:x:18:18:D-Bus Message Daemon User:/dev/null:/bin/false
systemd-journal-gateway:x:73:73:systemd Journal Gateway:/:/bin/false
systemd-journal-remote:x:74:74:systemd Journal Remote:/:/bin/false
systemd-journal-upload:x:75:75:systemd Journal Upload:/:/bin/false
systemd-network:x:76:76:systemd Network Mangement:/:/bin/false
systemd-resolve:x:77:77:systemd Resolver:/:/bin/false
systemd-timesync:x:78:78:systemd Time Synchronization:/:/bin/false
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
minimal group file
root:x:0:
bin:x:1:daemon
sys:x:2:
kmem:x:3:
tape:x:4:
tty:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:
video:x:12:
utmp:x:13:
usb:x:14:
cdrom:x:15:
adm:x:16:
console:x:17:
messagebus:x:18:
input:x:19:
mail:x:34:mail
news:x:35:news
uucp:x:36:uucp
systemd-journal:x:71:
systemd-journal-gateway:x:73:
systemd-journal-remote:x:74:
systemd-journal-upload:x:75:
systemd-network:x:76:
systemd-resolve:x:77:
systemd-timesync:x:78:
nogroup:x:99:
users:x:1000:
as long as the systemd parts are there the uid and gid shouldn't matter
as longa s theya re consistent
7.15 fstab as per disk layout
7.16 environment setup same
then boot into temp system
next up final build to working system
hope this helps
Martin
More information about the Clfs-support
mailing list