[lfs-book] r11179 - trunk/BOOK/chapter08
Author: bdubbs Date: Tue Feb 7 20:56:26 2017 New Revision: 11179 Log: Remove obsolete code Modified: trunk/BOOK/chapter08/kernel.xml Modified: trunk/BOOK/chapter08/kernel.xml == --- trunk/BOOK/chapter08/kernel.xml Tue Feb 7 20:30:34 2017(r11178) +++ trunk/BOOK/chapter08/kernel.xml Tue Feb 7 20:56:26 2017(r11179) @@ -196,13 +196,6 @@ configuration menus and create the kernel configuration from scratch. - -Fix an out of memory issue that affects recent kernels: - -sed -e '/sk_sndbuf/s/u32/int/' \ --e '/sk_rcvbuf/s/u32/int/' \ --i.bak net/core/sock.c - Compile the kernel image and modules: make -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
[lfs-book] r11178 - in trunk/BOOK: . chapter01 chapter05 chapter06
Author: dj Date: Tue Feb 7 20:30:34 2017 New Revision: 11178 Log: Add gold linker to ch6 binutils build, restore chapter 5 bison. Modified: trunk/BOOK/chapter01/changelog.xml trunk/BOOK/chapter05/chapter05.xml trunk/BOOK/chapter06/binutils.xml trunk/BOOK/general.ent trunk/BOOK/packages.ent Modified: trunk/BOOK/chapter01/changelog.xml == --- trunk/BOOK/chapter01/changelog.xml Tue Feb 7 18:12:23 2017(r11177) +++ trunk/BOOK/chapter01/changelog.xml Tue Feb 7 20:30:34 2017(r11178) @@ -43,6 +43,19 @@ appropriate for the entry or if needed the entire day's listitem. --> + 2017-02-08 + + + [dj] - Restore chapter 5 build of bison for binutils. + + + [dj] - Build gold linker with binutils. The bfd linker remains + default. + + + + + 2017-02-07 Modified: trunk/BOOK/chapter05/chapter05.xml == --- trunk/BOOK/chapter05/chapter05.xml Tue Feb 7 18:12:23 2017(r11177) +++ trunk/BOOK/chapter05/chapter05.xml Tue Feb 7 20:30:34 2017(r11178) @@ -27,6 +27,7 @@ http://www.w3.org/2001/XInclude; href="check.xml"/> http://www.w3.org/2001/XInclude; href="ncurses.xml"/> http://www.w3.org/2001/XInclude; href="bash.xml"/> + http://www.w3.org/2001/XInclude; href="bison.xml"/> http://www.w3.org/2001/XInclude; href="bzip2.xml"/> http://www.w3.org/2001/XInclude; href="coreutils.xml"/> http://www.w3.org/2001/XInclude; href="diffutils.xml"/> Modified: trunk/BOOK/chapter06/binutils.xml == --- trunk/BOOK/chapter06/binutils.xml Tue Feb 7 18:12:23 2017(r11177) +++ trunk/BOOK/chapter06/binutils.xml Tue Feb 7 20:30:34 2017(r11178) @@ -65,16 +65,33 @@ Prepare Binutils for compilation: -../configure --prefix=/usr\ - --enable-plugins \ - --enable-shared \ - --disable-werror \ +../configure --prefix=/usr \ + --enable-gold \ + --enable-ld=default \ + --enable-plugins\ + --enable-shared \ + --disable-werror\ --with-system-zlib - The meaning of the configure parameters: +--enable-gold + + Build the gold linker and install it as ld.gold (along side the + default linker). + + + + +--enable-ld=default + + Build the original bdf linker and install it as both ld (the + default linker) and ld.bfd. + + + + --enable-plugins Enables plugin support for the linker. Modified: trunk/BOOK/general.ent == --- trunk/BOOK/general.ent Tue Feb 7 18:12:23 2017(r11177) +++ trunk/BOOK/general.ent Tue Feb 7 20:30:34 2017(r11178) @@ -1,13 +1,13 @@ - + - + - + Modified: trunk/BOOK/packages.ent == --- trunk/BOOK/packages.ent Tue Feb 7 18:12:23 2017(r11177) +++ trunk/BOOK/packages.ent Tue Feb 7 20:30:34 2017(r11178) @@ -75,6 +75,8 @@ + + -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
[lfs-book] r11177 - in trunk/BOOK: . chapter01 chapter03 chapter06
Author: bdubbs Date: Tue Feb 7 18:12:23 2017 New Revision: 11177 Log: Add bash-4.4 upstream fixes patch Modified: trunk/BOOK/chapter01/changelog.xml trunk/BOOK/chapter01/whatsnew.xml trunk/BOOK/chapter03/patches.xml trunk/BOOK/chapter06/bash.xml trunk/BOOK/general.ent trunk/BOOK/patches.ent Modified: trunk/BOOK/chapter01/changelog.xml == --- trunk/BOOK/chapter01/changelog.xml Tue Feb 7 09:13:50 2017(r11176) +++ trunk/BOOK/chapter01/changelog.xml Tue Feb 7 18:12:23 2017(r11177) @@ -43,6 +43,15 @@ appropriate for the entry or if needed the entire day's listitem. --> + 2017-02-07 + + + [bdubbs] - Add bash-4.4 upstream fixes patch. + + + + + 2017-02-05 Modified: trunk/BOOK/chapter01/whatsnew.xml == --- trunk/BOOK/chapter01/whatsnew.xml Tue Feb 7 09:13:50 2017(r11176) +++ trunk/BOOK/chapter01/whatsnew.xml Tue Feb 7 18:12:23 2017(r11177) @@ -250,6 +250,10 @@ Added: + + + bash-4.4-upstream_fixes-1.patch + + Bc Memory Leak Patch - : Modified: trunk/BOOK/chapter06/bash.xml == --- trunk/BOOK/chapter06/bash.xml Tue Feb 7 09:13:50 2017(r11176) +++ trunk/BOOK/chapter06/bash.xml Tue Feb 7 18:12:23 2017(r11177) @@ -40,6 +40,10 @@ Installation of Bash +Incorporate some upstream fixes: + +patch -Np1 -i ../ + Prepare Bash for compilation: ./configure --prefix=/usr \ Modified: trunk/BOOK/general.ent == --- trunk/BOOK/general.ent Tue Feb 7 09:13:50 2017(r11176) +++ trunk/BOOK/general.ent Tue Feb 7 18:12:23 2017(r11177) @@ -1,13 +1,13 @@ - + - + - + Modified: trunk/BOOK/patches.ent == --- trunk/BOOK/patches.ent Tue Feb 7 09:13:50 2017(r11176) +++ trunk/BOOK/patches.ent Tue Feb 7 18:12:23 2017(r11177) @@ -2,6 +2,10 @@ + + + + -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
[lfs-book] r11176 - trunk/BOOK
Author: bdubbs Date: Tue Feb 7 09:13:50 2017 New Revision: 11176 Log: Add currency script to LFS repo Added: trunk/BOOK/lfs-latest.php Added: trunk/BOOK/lfs-latest.php == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/BOOK/lfs-latest.php Tue Feb 7 09:13:50 2017(r11176) @@ -0,0 +1,446 @@ +#! /usr/bin/php + 80 + list( $major, $minor, $rest ) = explode( ".", $slice . ".0" ); + if ( $minor % 2 == 1 ) continue; + if ( $minor > 80 ) continue; + array_push( $a, $slice ); + } + + rsort( $a, SORT_NATURAL ); // Max version is at the top + return ( isset( $a[0] ) ) ? $a[0] : -2; +} + +function http_get_file( $url ) +{ + if ( ! preg_match( "/sourceforge/", $url ) ) + { +exec( "curl --location --silent --max-time 30 $url", $dir ); + +$s = implode( "\n", $dir ); +$dir = strip_tags( $s ); +return explode( "\n", $dir ); + } + else + { +exec( "elinks -dump $url 2>/dev/null", $lines ); +return $lines; + } +} + +function max_parent( $dirpath, $prefix ) +{ + // First, remove a directory + $dirpath = rtrim ( $dirpath, "/" );// Trim any trailing slash + $position = strrpos( $dirpath, "/" ); + $dirpath = substr ( $dirpath, 0, $position ); + + $lines = http_get_file( $dirpath ); + + $regex_match = "#${prefix}[\d\.]+/#"; + $regex_replace = "#^.*(${prefix}[\d\.]+)/.*$#"; + $max = find_max( $lines, $regex_match, $regex_replace ); + + return "$dirpath/$max"; +} + +function get_packages( $package, $dirpath ) +{ + global $exceptions; + global $regex; + +//if ( $package != "check" ) return 0; // Debug + +if ( $package == "check" ) $dirpath = "https://github.com/libcheck/check/releases;; +if ( $package == "e2fsprogs" ) $dirpath = "http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs;; +if ( $package == "expat" ) $dirpath = "http://sourceforge.net/projects/expat/files;; +if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/$package/files;; +if ( $package == "file" ) $dirpath = "https://github.com/file/file/releases;; +if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases;; +if ( $package == "gcc") $dirpath = max_parent( $dirpath, "gcc-" ); +if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk;; +if ( $package == "mpc") $dirpath = "http://www.multiprecision.org/index.php?prog=mpc=download;; +if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current;; +if ( $package == "procps-ng" ) $dirpath = "http://sourceforge.net/projects/procps-ng/files;; +if ( $package == "psmisc" ) $dirpath = "http://sourceforge.net/projects/$package/files;; +if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shadow/releases;; +if ( $package == "systemd") $dirpath = "https://github.com/systemd/systemd/releases;; +if ( $package == "tcl-core" ) $dirpath = "http://sourceforge.net/projects/tcl/files;; +if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." ); +if ( $package == "vim") $dirpath = "ftp://ftp.vim.org/pub/vim/unix;; + + // Check for ftp + if ( preg_match( "/^ftp/", $dirpath ) ) + { +$dirpath = substr( $dirpath, 6 ); // Remove ftp:// +$dirpath = rtrim ( $dirpath, "/" ); // Trim any trailing slash +$position = strpos( $dirpath, "/" ); // Divide at first slash +$server = substr( $dirpath, 0, $position ); +$path = substr( $dirpath, $position ); + +$conn = ftp_connect( $server ); +ftp_login( $conn, "anonymous", "" ); + +// See if we need special handling +if ( isset( $exceptions[ $package ] ) ) +{ + $specials = explode( ":", $exceptions[ $package ] ); + + foreach ( $specials as $i ) + { + list( $op, $regexp ) = explode( "=", $i ); + + switch ($op) + { +case "UPDIR": + // Remove last dir from $path + $position = strrpos( $path, "/" ); + $path = substr( $path, 0, $position ); + + // Get dir listing + $lines = ftp_rawlist ($conn, $path); + $max = find_max( $lines, $regexp, $regexp ); + break; + +case "DOWNDIR": + // Append found directory + $path .= "/$max"; + break; + +default: + echo "Error in specials array for $package\n"; + return -5; + break; + } + } +} + +$lines = ftp_rawlist ($conn, $path); +ftp_close( $conn ); + } + else // http + { + // Customize http directories as needed + if ( $package == "tzdata" ) + { +// Remove two directories +$dirpath = rtrim ( $dirpath, "/" );// Trim any trailing slash +$position = strrpos( $dirpath,
[lfs-book] LFS Package Currency Check - 2017-02-07 11:50:01 GMT
Package LFS Upstream Flag acl 2.2.52 2.2.52 attr2.4.47 2.4.47 autoconf2.69 2.69 automake1.15 1.15 bash4.44.4 bc 1.06.951.06.95 binutils2.27 2.27 bison 3.0.4 3.0.4 bzip2 1.0.6 1.0.6 check 0.11.0 -2 * coreutils 8.26 8.26 dbus1.10.141.10.14 dejagnu 1.61.6 diffutils 3.53.5 eudev 3.2.1 3.2.1 e2fsprogs 1.43.4 1.43.4 expat 2.2.0 2.2.0 expect 5.45 5.45 file5.29 5.29 findutils 4.6.0 4.6.0 flex2.6.3 2.6.3 gawk4.1.4 4.1.4 gcc 6.3.0 6.3.0 gdbm1.12 1.12 gettext 0.19.8.1 0.19.8.1 glibc 2.25 2.25 gmp 6.1.2 6.1.2 gperf 3.0.4 3.1* grep2.27 2.28 * groff 1.22.3 1.22.3 grub2.02~beta3 2.02~rc1 * gzip1.81.8 iana-etc2.30 2.30 inetutils 1.9.4 1.9.4 intltool0.51.0 0.51.0 iproute24.9.0 4.9.0 kbd 2.0.4 2.0.4 kmod23 23 less481481 lfs-bootscripts 20150222 20150222 libcap 2.25 2.25 libpipeline 1.4.1 1.4.1 libtool 2.4.6 2.4.6 linux 4.9.8 4.9.8 m4 1.4.18 1.4.18 make4.2.1 4.2.1 man-db 2.7.6.12.7.6.1 man-pages 4.09 4.09 mpc 1.0.3 1.0.3 mpfr3.1.5 3.1.5 ncurses 6.06.0 patch 2.7.5 2.7.5 perl5.24.1 5.24.1 pkg-config 0.29.1 0.29.1 procps-ng 3.3.12 3.3.12 psmisc 22.21 22.21 readline7.07.0 sed 4.44.4 shadow 4.4-2 * sysklogd1.5.1 1.5.1 systemd 232232 sysvinit2.88 2.88 tar 1.29 1.29 tcl-core8.6.6 8.6.6 texinfo 6.36.3 tzdata 2016j 2016j udev-lfs20140408 20140408 util-linux 2.29.1 2.29.1 vim 8.0.0698.0.069 XML-Parser 2.44 2.44 xz 5.2.3 5.2.3 zlib1.2.11 1.2.11 -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page