diff options
Diffstat (limited to 'chapter8')
74 files changed, 70 insertions, 4 deletions
diff --git a/chapter8/acl.sh b/chapter8/acl.sh index 57b6dd8..516d861 100644 --- a/chapter8/acl.sh +++ b/chapter8/acl.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --bindir=/bin \ diff --git a/chapter8/attr.sh b/chapter8/attr.sh index 22e7b79..fc68246 100644 --- a/chapter8/attr.sh +++ b/chapter8/attr.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --bindir=/bin \ diff --git a/chapter8/autoconf.sh b/chapter8/autoconf.sh index 1f6d045..cb58e2e 100644 --- a/chapter8/autoconf.sh +++ b/chapter8/autoconf.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/automake.sh b/chapter8/automake.sh index 73615bf..f30ffa6 100644 --- a/chapter8/automake.sh +++ b/chapter8/automake.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i "s/''/etags/" t/tags-lisp-space.sh && diff --git a/chapter8/bash.sh b/chapter8/bash.sh index 81d91c1..92402e5 100644 --- a/chapter8/bash.sh +++ b/chapter8/bash.sh @@ -1,7 +1,6 @@ #!/bin/bash # shellcheck disable=SC2016 - patch -Np1 -i ../bash-"${VERSION}"-fixes-1.patch && sed -i '/^bashline.o:.*shmbchar.h/a bashline.o: ${DEFDIR}/builtext.h' Makefile.in && diff --git a/chapter8/bc.sh b/chapter8/bc.sh index 8d2b2f7..c055edd 100644 --- a/chapter8/bc.sh +++ b/chapter8/bc.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e CC=gcc ./configure.sh --prefix=/usr -G -O3 && diff --git a/chapter8/binutils.sh b/chapter8/binutils.sh index e3fe6c5..b5c5732 100644 --- a/chapter8/binutils.sh +++ b/chapter8/binutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e expect -c "spawn ls" diff --git a/chapter8/bison.sh b/chapter8/bison.sh index ab72461..75283ac 100644 --- a/chapter8/bison.sh +++ b/chapter8/bison.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr --docdir=/usr/share/doc/bison-"${VERSION}" && diff --git a/chapter8/bzip2.sh b/chapter8/bzip2.sh index 1b35096..c45bea4 100644 --- a/chapter8/bzip2.sh +++ b/chapter8/bzip2.sh @@ -1,7 +1,6 @@ #!/bin/bash # shellcheck disable=SC2016 - patch -Np1 -i ../bzip2-"${VERSION}"-install_docs-1.patch && sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile && diff --git a/chapter8/check.sh b/chapter8/check.sh index af09e33..6b552e5 100644 --- a/chapter8/check.sh +++ b/chapter8/check.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr --disable-static && diff --git a/chapter8/coreutils.sh b/chapter8/coreutils.sh index 7909f26..1ee5efa 100644 --- a/chapter8/coreutils.sh +++ b/chapter8/coreutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e patch -Np1 -i ../coreutils-"${VERSION}"-i18n-1.patch && diff --git a/chapter8/dejagnu.sh b/chapter8/dejagnu.sh index 273ab0f..41ab6fc 100644 --- a/chapter8/dejagnu.sh +++ b/chapter8/dejagnu.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && makeinfo --html --no-split -o doc/dejagnu.html doc/dejagnu.texi && diff --git a/chapter8/diffutils.sh b/chapter8/diffutils.sh index 1f6d045..cb58e2e 100644 --- a/chapter8/diffutils.sh +++ b/chapter8/diffutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/e2fsprogs.sh b/chapter8/e2fsprogs.sh index 48a9ead..b994c4e 100644 --- a/chapter8/e2fsprogs.sh +++ b/chapter8/e2fsprogs.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e mkdir -v build cd build || exit 1 diff --git a/chapter8/eudev.sh b/chapter8/eudev.sh index bd6146f..31e8a0c 100644 --- a/chapter8/eudev.sh +++ b/chapter8/eudev.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --bindir=/sbin \ diff --git a/chapter8/expat.sh b/chapter8/expat.sh index e37a780..433062c 100644 --- a/chapter8/expat.sh +++ b/chapter8/expat.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --disable-static \ diff --git a/chapter8/expect.sh b/chapter8/expect.sh index 8a2e24b..b939278 100644 --- a/chapter8/expect.sh +++ b/chapter8/expect.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --with-tcl=/usr/lib \ diff --git a/chapter8/file.sh b/chapter8/file.sh index 2c0622c..2c5b982 100644 --- a/chapter8/file.sh +++ b/chapter8/file.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && make && diff --git a/chapter8/findutils.sh b/chapter8/findutils.sh index 101f464..255591c 100644 --- a/chapter8/findutils.sh +++ b/chapter8/findutils.sh @@ -1,7 +1,6 @@ #!/bin/bash # shellcheck disable=SC2016 - ./configure --prefix=/usr --localstatedir=/var/lib/locate && make && diff --git a/chapter8/flex.sh b/chapter8/flex.sh index 35f99de..bf62717 100644 --- a/chapter8/flex.sh +++ b/chapter8/flex.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --docdir=/usr/share/doc/flex-"${VERSION}" \ diff --git a/chapter8/gawk.sh b/chapter8/gawk.sh index 3a25fc2..b6f25c5 100644 --- a/chapter8/gawk.sh +++ b/chapter8/gawk.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i 's/extras//' Makefile.in diff --git a/chapter8/gcc.sh b/chapter8/gcc.sh index 85030d9..c72e737 100644 --- a/chapter8/gcc.sh +++ b/chapter8/gcc.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e case $(uname -m) in x86_64) diff --git a/chapter8/gdbm.sh b/chapter8/gdbm.sh index b81ce81..4ecac48 100644 --- a/chapter8/gdbm.sh +++ b/chapter8/gdbm.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --disable-static \ diff --git a/chapter8/gettext.sh b/chapter8/gettext.sh index df758da..4685d27 100644 --- a/chapter8/gettext.sh +++ b/chapter8/gettext.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --disable-static \ diff --git a/chapter8/glibc.sh b/chapter8/glibc.sh index e344b47..e4facd0 100644 --- a/chapter8/glibc.sh +++ b/chapter8/glibc.sh @@ -1,7 +1,6 @@ #!/bin/bash # shellcheck disable=SC2016 - patch -Np1 -i ../glibc-"${VERSION}"-fhs-1.patch && sed -e '402a\ *result = local->data.services[database_index];' \ diff --git a/chapter8/gmp.sh b/chapter8/gmp.sh index 7ca2523..f3adfe7 100644 --- a/chapter8/gmp.sh +++ b/chapter8/gmp.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # Uncomment for generic libraries # cp -v configfsf.guess config.guess diff --git a/chapter8/gperf.sh b/chapter8/gperf.sh index 1806dd3..bb69b31 100644 --- a/chapter8/gperf.sh +++ b/chapter8/gperf.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr --docdir=/usr/share/doc/gperf-"${VERSION}" && diff --git a/chapter8/grep.sh b/chapter8/grep.sh index e567f51..5604bec 100644 --- a/chapter8/grep.sh +++ b/chapter8/grep.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr --bindir=/bin && diff --git a/chapter8/groff.sh b/chapter8/groff.sh index f763a61..73b4b93 100644 --- a/chapter8/groff.sh +++ b/chapter8/groff.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e PAGE=letter ./configure --prefix=/usr && diff --git a/chapter8/grub.sh b/chapter8/grub.sh index 693adcd..128cdb9 100644 --- a/chapter8/grub.sh +++ b/chapter8/grub.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed "s/gold-version/& -R .note.gnu.property/" \ -i Makefile.in grub-core/Makefile.in && diff --git a/chapter8/gzip.sh b/chapter8/gzip.sh index f762cf3..f72a689 100644 --- a/chapter8/gzip.sh +++ b/chapter8/gzip.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/iana-etc.sh b/chapter8/iana-etc.sh index 8576a80..be58311 100644 --- a/chapter8/iana-etc.sh +++ b/chapter8/iana-etc.sh @@ -1,3 +1,4 @@ #!/bin/bash +set -e cp -v services protocols /etc diff --git a/chapter8/inetutils.sh b/chapter8/inetutils.sh index ca54213..572c9e9 100644 --- a/chapter8/inetutils.sh +++ b/chapter8/inetutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --localstatedir=/var \ diff --git a/chapter8/intltool.sh b/chapter8/intltool.sh index 527e46a..758f568 100644 --- a/chapter8/intltool.sh +++ b/chapter8/intltool.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i 's:\\\${:\\\$\\{:' intltool-update.in && diff --git a/chapter8/iproute2.sh b/chapter8/iproute2.sh index 8034496..8612d5d 100644 --- a/chapter8/iproute2.sh +++ b/chapter8/iproute2.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i /ARPD/d Makefile && rm -fv man/man8/arpd.8 && diff --git a/chapter8/isl.sh b/chapter8/isl.sh index e1a68f7..7526c2f 100644 --- a/chapter8/isl.sh +++ b/chapter8/isl.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --disable-static \ diff --git a/chapter8/kbd.sh b/chapter8/kbd.sh index 00a7397..3e76d8c 100644 --- a/chapter8/kbd.sh +++ b/chapter8/kbd.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e patch -Np1 -i ../kbd-"${VERSION}"-backspace-1.patch && diff --git a/chapter8/kmod.sh b/chapter8/kmod.sh index 3435179..036a8fc 100644 --- a/chapter8/kmod.sh +++ b/chapter8/kmod.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --bindir=/bin \ diff --git a/chapter8/less.sh b/chapter8/less.sh index 01a6cb7..6f357a9 100644 --- a/chapter8/less.sh +++ b/chapter8/less.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr --sysconfdir=/etc && diff --git a/chapter8/libcap.sh b/chapter8/libcap.sh index a67b607..33d374c 100644 --- a/chapter8/libcap.sh +++ b/chapter8/libcap.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i '/install -m.*STA/d' libcap/Makefile && diff --git a/chapter8/libelf.sh b/chapter8/libelf.sh index cc8798f..e5323e0 100644 --- a/chapter8/libelf.sh +++ b/chapter8/libelf.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --disable-debuginfod \ diff --git a/chapter8/libffi.sh b/chapter8/libffi.sh index 1a5b45a..ed8b1e5 100644 --- a/chapter8/libffi.sh +++ b/chapter8/libffi.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr --disable-static --with-gcc-arch=native && diff --git a/chapter8/libpipeline.sh b/chapter8/libpipeline.sh index 1f6d045..cb58e2e 100644 --- a/chapter8/libpipeline.sh +++ b/chapter8/libpipeline.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/libtool.sh b/chapter8/libtool.sh index a4c9dd5..a654e29 100644 --- a/chapter8/libtool.sh +++ b/chapter8/libtool.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/m4.sh b/chapter8/m4.sh index 5174f00..8c6201b 100644 --- a/chapter8/m4.sh +++ b/chapter8/m4.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c && echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h && diff --git a/chapter8/make.sh b/chapter8/make.sh index 1f6d045..cb58e2e 100644 --- a/chapter8/make.sh +++ b/chapter8/make.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/man-db.sh b/chapter8/man-db.sh index cd60f12..afa8cb0 100644 --- a/chapter8/man-db.sh +++ b/chapter8/man-db.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --docdir=/usr/share/doc/man-db-"${VERSION}" \ diff --git a/chapter8/man-pages.sh b/chapter8/man-pages.sh index db9dad4..c019094 100644 --- a/chapter8/man-pages.sh +++ b/chapter8/man-pages.sh @@ -1,3 +1,4 @@ #!/bin/bash +set -e make -j1 install diff --git a/chapter8/meson.sh b/chapter8/meson.sh index 0aa9797..b1aa296 100644 --- a/chapter8/meson.sh +++ b/chapter8/meson.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e python3 setup.py build && diff --git a/chapter8/mpc.sh b/chapter8/mpc.sh index 793fab5..009662c 100644 --- a/chapter8/mpc.sh +++ b/chapter8/mpc.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --disable-static \ diff --git a/chapter8/mpfr.sh b/chapter8/mpfr.sh index 99fd5fe..c76276e 100644 --- a/chapter8/mpfr.sh +++ b/chapter8/mpfr.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --disable-static \ diff --git a/chapter8/ncurses.sh b/chapter8/ncurses.sh index 4bc80d1..c7ba368 100644 --- a/chapter8/ncurses.sh +++ b/chapter8/ncurses.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --mandir=/usr/share/man \ diff --git a/chapter8/ninja.sh b/chapter8/ninja.sh index e778780..f4f1017 100644 --- a/chapter8/ninja.sh +++ b/chapter8/ninja.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e export NINJAJOBS=4 diff --git a/chapter8/openssl.sh b/chapter8/openssl.sh index b5b85dd..59699f5 100644 --- a/chapter8/openssl.sh +++ b/chapter8/openssl.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./config --prefix=/usr \ --openssldir=/etc/ssl \ diff --git a/chapter8/patch.sh b/chapter8/patch.sh index 1f6d045..cb58e2e 100644 --- a/chapter8/patch.sh +++ b/chapter8/patch.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/perl.sh b/chapter8/perl.sh index 0fb9e3f..7e5cbc7 100644 --- a/chapter8/perl.sh +++ b/chapter8/perl.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e MAJMIN="$(cut -d\. -f1,2 <<< "${VERSION}")" diff --git a/chapter8/pkg-config.sh b/chapter8/pkg-config.sh index b56df73..e404f44 100644 --- a/chapter8/pkg-config.sh +++ b/chapter8/pkg-config.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --with-internal-glib \ diff --git a/chapter8/procps-ng.sh b/chapter8/procps-ng.sh index 4100fe8..85be2d6 100644 --- a/chapter8/procps-ng.sh +++ b/chapter8/procps-ng.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --exec-prefix= \ diff --git a/chapter8/psmisc.sh b/chapter8/psmisc.sh index 4ac6405..e06ef92 100644 --- a/chapter8/psmisc.sh +++ b/chapter8/psmisc.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/python.sh b/chapter8/python.sh index a04a3d4..04af366 100644 --- a/chapter8/python.sh +++ b/chapter8/python.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed 's|cpython/||' -i Include/cpython/pystate.h && diff --git a/chapter8/readline.sh b/chapter8/readline.sh index 2ba1829..4b2569e 100644 --- a/chapter8/readline.sh +++ b/chapter8/readline.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i '/MV.*old/d' Makefile.in && sed -i '/{OLDSUFF}/c:' support/shlib-install && diff --git a/chapter8/sed.sh b/chapter8/sed.sh index f41cce5..6b2d3d7 100644 --- a/chapter8/sed.sh +++ b/chapter8/sed.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr --bindir=/bin && diff --git a/chapter8/shadow.sh b/chapter8/shadow.sh index ba1daa7..075caad 100644 --- a/chapter8/shadow.sh +++ b/chapter8/shadow.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # shellcheck disable=SC2016 ROOTPW='$1$5RPAAd$oejpw8ErihLIB7vmGE4SV1' diff --git a/chapter8/sysklogd.sh b/chapter8/sysklogd.sh index f9c093f..26c2394 100644 --- a/chapter8/sysklogd.sh +++ b/chapter8/sysklogd.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c && sed -i 's/union wait/int/' syslogd.c && diff --git a/chapter8/sysvinit.sh b/chapter8/sysvinit.sh index f33bfe0..0c0c2db 100644 --- a/chapter8/sysvinit.sh +++ b/chapter8/sysvinit.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e patch -Np1 -i ../sysvinit-"${VERSION}"-consolidated-1.patch && diff --git a/chapter8/tar.sh b/chapter8/tar.sh index 076f17d..44df8a1 100644 --- a/chapter8/tar.sh +++ b/chapter8/tar.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e FORCE_UNSAFE_CONFIGURE=1 \ ./configure --prefix=/usr \ diff --git a/chapter8/tcl.sh b/chapter8/tcl.sh index ba630df..1e75a18 100644 --- a/chapter8/tcl.sh +++ b/chapter8/tcl.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e tar -xf ../tcl"${VERSION}"-html.tar.gz --strip-components=1 && diff --git a/chapter8/texinfo.sh b/chapter8/texinfo.sh index f5edef4..87b0aae 100644 --- a/chapter8/texinfo.sh +++ b/chapter8/texinfo.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && diff --git a/chapter8/util-linux.sh b/chapter8/util-linux.sh index 962118a..de1a5e4 100644 --- a/chapter8/util-linux.sh +++ b/chapter8/util-linux.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ --docdir=/usr/share/doc/util-linux-"${VERSION}" \ diff --git a/chapter8/vim.sh b/chapter8/vim.sh index afec4ed..39bb932 100644 --- a/chapter8/vim.sh +++ b/chapter8/vim.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h && diff --git a/chapter8/xml-parser.sh b/chapter8/xml-parser.sh index 0164c33..ffaa526 100644 --- a/chapter8/xml-parser.sh +++ b/chapter8/xml-parser.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e perl Makefile.PL && diff --git a/chapter8/xz.sh b/chapter8/xz.sh index 4fbe922..4d567c8 100644 --- a/chapter8/xz.sh +++ b/chapter8/xz.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ diff --git a/chapter8/zlib.sh b/chapter8/zlib.sh index 4de64f9..df67074 100644 --- a/chapter8/zlib.sh +++ b/chapter8/zlib.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr && make && diff --git a/chapter8/zstd.sh b/chapter8/zstd.sh index 8dc163c..611785e 100644 --- a/chapter8/zstd.sh +++ b/chapter8/zstd.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e make && make prefix=/usr -j1 install && |