| 21 | |
| 22 | {{{ |
| 23 | ====================================================== |
| 24 | |
| 25 | Thu Oct 8 09:31:14 UTC 2015 |
| 26 | LFS7.8 Notes Building chapter 6, starting with acl |
| 27 | |
| 28 | ====================================================== |
| 29 | We don't install the static libraries: |
| 30 | • acl-2.2.52 |
| 31 | • libcap-2.24 |
| 32 | • readline-6.3 |
| 33 | • gdbm-1.11 |
| 34 | • expat-2.1.0 |
| 35 | • gettext-0.19.6 |
| 36 | • util-linu |
| 37 | |
| 38 | Some other problems (mine or of the book). |
| 39 | |
| 40 | • shadow-4.2.1 |
| 41 | new programs: |
| 42 | 1. newuidmap - set the uid mapping of a user namespace |
| 43 | 2. newgidmap - set the gid mapping of a user namespace |
| 44 | |
| 45 | • e2fsprogs-1.42.13 |
| 46 | remove directory /usr/include/quota? (probabbly optional) |
| 47 | |
| 48 | remove library |
| 49 | libquota.a? (probabbly optional) |
| 50 | |
| 51 | both will exist if --enable-quota is used? |
| 52 | |
| 53 | add program |
| 54 | mklost+found - create a lost+found directory on a mounted Linux second |
| 55 | extended file system |
| 56 | |
| 57 | I had removed all static libraries: |
| 58 | xz -v /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a && |
| 59 | mv -v /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a.xz \ |
| 60 | /usr/lib/famo-static-libs && |
| 61 | |
| 62 | |
| 63 | • flex-2.5.39 |
| 64 | I had removed static libraries in LFS-7.7 with --disable-static |
| 65 | |
| 66 | • bison-3.0.4 |
| 67 | Exactly the same statistics: |
| 68 | |
| 69 | |
| 70 | Approximate build time: |
| 71 | 2.6 SBU |
| 72 | Required disk space: |
| 73 | 36 MB |
| 74 | |
| 75 | But tests take much longer: |
| 76 | |
| 77 | real 4m53.309s |
| 78 | user 4m12.924s |
| 79 | sys 0m27.306s |
| 80 | |
| 81 | |
| 82 | which gives me 2.2 SBU just for tests |
| 83 | |
| 84 | Replace in |
| 85 | "To test the results (about 0.5 SBU), issue" |
| 86 | |
| 87 | s/0.5/2.2/ |
| 88 | |
| 89 | • readline-6.3 |
| 90 | remove directory: |
| 91 | /usr/share/readline |
| 92 | remove references to static libraries |
| 93 | |
| 94 | • libtool-2.4.6 |
| 95 | I had removed static libraries in LFS-7.7 with --disable-static |
| 96 | |
| 97 | • inetutils-1.9.4 |
| 98 | add program |
| 99 | dnsdomainname - show the system's DNS domain name |
| 100 | |
| 101 | remove programs: |
| 102 | rcp just for tests |
| 103 | rexec |
| 104 | rlogin |
| 105 | rsh |
| 106 | |
| 107 | |
| 108 | invert order: |
| 109 | |
| 110 | ifconfig Manages network interfaces |
| 111 | hostname Reports or sets the name of the host |
| 112 | |
| 113 | to: |
| 114 | |
| 115 | hostname Reports or sets the name of the host |
| 116 | ifconfig Manages network interfaces |
| 117 | |
| 118 | |
| 119 | • perl-5.22.0 |
| 120 | |
| 121 | I have many differences here, maybe I missde installing some program? |
| 122 | |
| 123 | There are no symlinks to programs. |
| 124 | |
| 125 | hardlinked to each other: |
| 126 | c2ph and pstruct |
| 127 | perl and perl5.22.0 |
| 128 | perlbug and perlthanks |
| 129 | |
| 130 | add new programs: |
| 131 | encguess Guess the encoding type of one or several files |
| 132 | |
| 133 | example: |
| 134 | |
| 135 | # encguess -h (help) |
| 136 | |
| 137 | # encguess ../tmp-porg/YAML-Tiny-test-BWBkLQtD \ |
| 138 | ../tmp-porg/YAML-Tiny-test-HzimSXAb \ |
| 139 | ../tmp-porg/perl-5.22.0-build-2015.10.10-10h39m59s |
| 140 | ../tmp-porg/YAML-Tiny-test-BWBkLQtD UTF-8 |
| 141 | ../tmp-porg/YAML-Tiny-test-HzimSXAb UTF-8 |
| 142 | ../tmp-porg/perl-5.22.0-build-2015.10.10-10h39m59s unknown |
| 143 | |
| 144 | |
| 145 | remove programs (from Installed programs and Short Descriptions): |
| 146 | a2p |
| 147 | cpan2dist |
| 148 | cpanp |
| 149 | cpanp-run-perl |
| 150 | find2perl |
| 151 | pod2latex |
| 152 | psed |
| 153 | s2p |
| 154 | |
| 155 | Programs: |
| 156 | corelist, cpan, enc2xs, encguess, h2ph, h2xs, instmodsh, json_pp, |
| 157 | libnetcfg, perldoc, perlivp, piconv, pl2pm, pod2html, pod2man, pod2text, |
| 158 | pod2usage, podchecker, podselect, prove, ptar, ptardiff, ptargrep, |
| 159 | shasum, splain, xsubpp, and zipdetails; hardlinked to each other: c2ph |
| 160 | and pstruct, perl and perl5.22.0, and perlbug and perlthanks |
| 161 | |
| 162 | Libraries are not hundreds, are only 55: |
| 163 | arybase.so, attributes.so, B.so, Base64.so, Byte.so, Bzip2.so, Call.so, |
| 164 | CN.so, Collate.so, Cwd.so, DosGlob.so, Dumper.so, EBCDIC.so, Encode.so, |
| 165 | encoding.so, FastCalc, Fcntl.so, FieldHash.so, GDBM_File.so, Glob.so, |
| 166 | HiRes.so, Hostname.so, IO.so, JP.so, KR.so, Langinfo.so, libperl.so, |
| 167 | MD5.so, mmap.so, mro.so, NamedCapture, NDBM_File.so, ODBM_File.so, |
| 168 | Opcode.so, Peek.so, Piece.so, POSIX.so, PPPort.so, re.so, scalar.so, |
| 169 | SDBM_File.so, SHA.so, shared.so, Socket.so, Storable.so, Symbol.so, |
| 170 | Syslog.so, SysV.so, threads.so, TW.so, Unicode.so, Util.so, Util.so, |
| 171 | via.so, and Zlib.so |
| 172 | |
| 173 | |
| 174 | • autoconf-2.69 |
| 175 | "This takes a long time, about 4.7 SBUs." (Same measured here) |
| 176 | |
| 177 | However: |
| 178 | |
| 179 | |
| 180 | "Approximate build time: |
| 181 | 4.0 SBU" |
| 182 | |
| 183 | It could be "less than 0.1 SBU (about 4.7 SBU with tests)" similar to |
| 184 | automake. |
| 185 | |
| 186 | • automake-1.15 |
| 187 | Programs (since LFS-7.7): |
| 188 | aclocal and aclocal-1.15 (hardlinked to each other), and automake and |
| 189 | automake-1.15 (hardlinked to each other). |
| 190 | |
| 191 | Remove |
| 192 | compile, config.guess, config.sub, depcomp, install-sh, mdate-sh, |
| 193 | missing, mkinstalldirs, py-compile, and ylwrap from "Installed programs" |
| 194 | and "Short Descriptions" |
| 195 | |
| 196 | • findutils-4.4.2 |
| 197 | Installed programs: find, locate, oldfind, updatedb, and xargs |
| 198 | |
| 199 | bigram code frcode: are under /usr/libexec/ and I was instructed not |
| 200 | to list. What is the correct procedure? |
| 201 | |
| 202 | • gettext-0.19.6 |
| 203 | Installed programs: autopoint, envsubst, gettext, gettext.sh, |
| 204 | gettextize, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen, msgexec, |
| 205 | msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq, |
| 206 | ngettext, recode-sr-latin, and xgettext |
| 207 | |
| 208 | config.charset config.rpath hostname: are under /usr/{lib,share}/ and I |
| 209 | was instructed not to list. What is the correct procedure? |
| 210 | |
| 211 | New command: |
| 212 | |
| 213 | chmod -c 0755 /usr/lib/preloadable_libintl.so |
| 214 | |
| 215 | • gperf-3.0.4 |
| 216 | |
| 217 | missing "Installed directory": |
| 218 | /usr/share/doc/gperf-3.0.4 |
| 219 | |
| 220 | • groff-1.22.3 |
| 221 | |
| 222 | remove programs (from Installed programs and Short Descriptions): |
| 223 | geqn |
| 224 | gtbl |
| 225 | |
| 226 | add programs: |
| 227 | glilypond |
| 228 | gperl |
| 229 | gpinyin |
| 230 | gropdf |
| 231 | pdfmom |
| 232 | |
| 233 | No hardlinks any longer. |
| 234 | |
| 235 | Man pages descriptions: |
| 236 | glilypond transforms sheet music written in the lilypond language into |
| 237 | the groff(7) language using the .PSPIC request, such that groff(1) can |
| 238 | transform it into a format that can be displayed directly. |
| 239 | |
| 240 | gperl This is a preprocesor for groff(1). It allows to add perl(7) code |
| 241 | into groff(7) files. The result of a Perl part can be stored in groff |
| 242 | strings or numerical registers based on the arguments at a final line of |
| 243 | a Perl part. |
| 244 | |
| 245 | gpinyin This is a preprocesor for groff(1). It allows to add the Chinese |
| 246 | European-like language Pinyin into groff(7) files. |
| 247 | |
| 248 | gropdf translates the output of GNU troff to PDF. Normally gropdf should |
| 249 | be invoked by using the groff command with a -Tpdf option. If no files |
| 250 | are given, gropdf reads the standard input. A filename of - also causes |
| 251 | gropdf to read the standard input. PDF output is written to the standard |
| 252 | output. When gropdf is run by groff options can be passed to gropdf |
| 253 | using groff's -P option. |
| 254 | |
| 255 | pdfmom is a wrapper around groff that facilitates the production of PDF |
| 256 | documents from files formatted with the mom macros. |
| 257 | |
| 258 | • grub-2.02~beta2 |
| 259 | Directory not installed: /boot/grub |
| 260 | It is only installed when running grubinstall in Section 8.4, “Using |
| 261 | GRUB to Set Up the Boot Process” |
| 262 | |
| 263 | New programs: |
| 264 | grub-file |
| 265 | grub-glue-efi |
| 266 | grub-macbless |
| 267 | grub-render-label |
| 268 | grub-syslinux2cfg |
| 269 | |
| 270 | Installed programs: |
| 271 | grub-bios-setup, grub-editenv, grub-file, grub-fstest, grub-glue-efi, |
| 272 | grub-install, grub-kbdcomp, grub-macbless, grub-menulst2cfg, |
| 273 | grub-mkconfig, grub-mkimage, grub-mklayout, grub-mknetdir, |
| 274 | grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone, |
| 275 | grub-ofpathname, grub-probe, grub-reboot, grub-render-label, |
| 276 | grub-script-check, grub-set-default, grub-sparc64-setup, and |
| 277 | grub-syslinux2cfg |
| 278 | |
| 279 | Notice that "and" is missing, in book's list. |
| 280 | |
| 281 | grub-file Check if FILE is of specified type. |
| 282 | |
| 283 | grub-glue-efi processes ia32 and amd64 EFI images and glues them |
| 284 | according to Apple format. |
| 285 | |
| 286 | grub-macbless - bless a mac file/directory |
| 287 | |
| 288 | grub-render-label - Render Apple .disk_label for Apple Macs. |
| 289 | |
| 290 | grub-syslinux2cfg - transform syslinux config into grub.cfg |
| 291 | |
| 292 | • gzip-1.6 |
| 293 | |
| 294 | gunzip and uncompress (hardlinked to each other). |
| 295 | |
| 296 | • kbd-2.0.3 |
| 297 | Mising directory: |
| 298 | /usr/share/doc/kbd-2.0.3 |
| 299 | |
| 300 | Missing program: |
| 301 | setvtrgb |
| 302 | |
| 303 | setvtrgb sets the console color map in all virtual terminals according |
| 304 | to custom values specified in a file or standard input. With the `vga' |
| 305 | parameter, it can also be used to restore the settings built into the |
| 306 | kernel. |
| 307 | |
| 308 | • tar-1.28 |
| 309 | remove rmt: it is under /usr/libexec and I was instructed not to list. |
| 310 | What is the correct procedure? |
| 311 | |
| 312 | I have one more skipp in the tests: |
| 313 | |
| 314 | 178: capabilities: binary store/restore skipped (capabs_raw01.at:28) |
| 315 | |
| 316 | |
| 317 | • texinfo-6.0 |
| 318 | remove program infokey. |
| 319 | |
| 320 | • eudev-3.1.2 |
| 321 | remove directory |
| 322 | /lib/firmware |
| 323 | |
| 324 | add directory |
| 325 | /usr/share/doc/udev-20140408 |
| 326 | |
| 327 | • util-linux-2.27 |
| 328 | I don't have /etc/terminal-colors.d |
| 329 | |
| 330 | Directory |
| 331 | /usr/share/doc/util-linux-2.27/getopt |
| 332 | should be |
| 333 | /usr/share/doc/util-linux-2.27 |
| 334 | |
| 335 | Directories I have listed: |
| 336 | /usr/include/blkid |
| 337 | /usr/include/libfdisk |
| 338 | /usr/include/libmount |
| 339 | /usr/include/libsmartcols |
| 340 | /usr/include/uuid |
| 341 | /usr/share/doc/util-linux-2.27 |
| 342 | /var/lib/hwclock |
| 343 | |
| 344 | |
| 345 | New programs: |
| 346 | lsipc |
| 347 | mesg |
| 348 | nsenter |
| 349 | uname26 |
| 350 | |
| 351 | lsipc - show information on IPC facilities currently employed |
| 352 | in the system |
| 353 | lsipc shows information on the inter-process communication |
| 354 | facilities for which the calling process has read access. |
| 355 | |
| 356 | mesg - display (or do not display) messages from other users |
| 357 | The mesg utility is invoked by a user to control write access |
| 358 | others have to the terminal device associated with standard error |
| 359 | output. If write access is allowed, then programs such as |
| 360 | talk(1) and write(1) may display messages on the terminal. |
| 361 | |
| 362 | nsenter - run program with namespaces of other processes |
| 363 | Enters the namespaces of one or more other processes and then |
| 364 | executes the specified program. |
| 365 | |
| 366 | setarch - change reported architecture in new program |
| 367 | environment and set personality flags |
| 368 | setarch currently only affects the output of uname -m. For |
| 369 | example, on an AMD64 system, running setarch i386 program will |
| 370 | cause program to see i686 instead of x86_64 as the machine type. |
| 371 | It also allows to set var‐ ious personality options. The default |
| 372 | program is /bin/sh. |
| 373 | |
| 374 | Installed programs: |
| 375 | addpart, agetty, blkdiscard, blkid, blockdev, cal, cfdisk, chcpu, chrt, |
| 376 | col, colcrt, colrm, column, ctrlaltdel, delpart, dmesg, eject, |
| 377 | fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck, fsck.cramfs, |
| 378 | fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock, i386 (symlink to |
| 379 | setarch), ionice, ipcmk, ipcrm, ipcs, isosize, kill, last, lastb |
| 380 | (symlink to last), ldattach, linux32 (symlink to setarch), linux64 |
| 381 | (symlink to setarch), logger, look, losetup, lsblk, lscpu, lsipc, |
| 382 | lslocks, lslogins, mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, |
| 383 | mkfs.minix, mkswap, more, mount, mountpoint, namei, nsenter, partx, pg, |
| 384 | pivot_root, prlimit, raw, readprofile, rename, renice, resizepart, rev, |
| 385 | rtcwake, script, scriptreplay, setarch, setsid, setterm, sfdisk, |
| 386 | sulogin, swaplabel, swapoff, swapon, switch_root, tailf, taskset, ul, |
| 387 | umount, uname26 (symlink to setarch), unshare, utmpdump, uuidd, uuidgen, |
| 388 | wall, wdctl, whereis, wipefs, x86_64 (symlink to setarch), and zramctl |
| 389 | |
| 390 | Installed libraries: |
| 391 | remove static ones |
| 392 | |
| 393 | • man-db-2.7.3 |
| 394 | new directory: |
| 395 | /usr/lib/tmpfiles.d |
| 396 | |
| 397 | remove installed program |
| 398 | zsoelim |
| 399 | It is under /usr/libexec and I was instructed not to list. What is the |
| 400 | correct procedure? |
| 401 | }}} |