diff --git a/build b/build index 9166427..0fce9d0 100755 --- a/build +++ b/build @@ -27,6 +27,6 @@ install() { fetch unpack patch - build - install + build || echo "Failed to build $1" >> $top/morpheus.log + install || echo "Failed to install $1" >> $top/morpheus.log ) diff --git a/clean b/clean index 1b612ad..9c62efe 100755 --- a/clean +++ b/clean @@ -1,3 +1,3 @@ #!/bin/sh -rm -rf root src cross +rm -rf root src cross morpheus.log diff --git a/cross-scripts/curl b/cross-scripts/curl index d852ab5..31ddcee 100644 --- a/cross-scripts/curl +++ b/cross-scripts/curl @@ -13,13 +13,13 @@ unpack() { build() { pushd src/curl-7.32.0 CC=musl-gcc ./configure --prefix=$top/cross --with-ssl \ - --with-random=/dev/urandom --disable-shared - make CC=musl-gcc -j$nprocs + --with-random=/dev/urandom --disable-shared || return 1 + make CC=musl-gcc -j$nprocs || return 1 popd } install() { pushd src/curl-7.32.0 - make install + make install || return 1 popd } diff --git a/cross-scripts/libevent b/cross-scripts/libevent index a726079..19e42c7 100644 --- a/cross-scripts/libevent +++ b/cross-scripts/libevent @@ -12,13 +12,13 @@ unpack() { build() { pushd src/libevent-2.0.21-stable - CC=musl-gcc ./configure --prefix=$top/cross --disable-shared - make CC=musl-gcc -j$nprocs + CC=musl-gcc ./configure --prefix=$top/cross --disable-shared || return 1 + make CC=musl-gcc -j$nprocs || return 1 popd } install() { pushd src/libevent-2.0.21-stable - make install + make install || return 1 popd } diff --git a/cross-scripts/libsigc++ b/cross-scripts/libsigc++ index 5dc976a..6e97c72 100644 --- a/cross-scripts/libsigc++ +++ b/cross-scripts/libsigc++ @@ -12,13 +12,13 @@ unpack() { build() { pushd src/libsigc++-2.3.1 - CC=musl-gcc ./configure --prefix=$top/cross --disable-shared --enable-static - make CC=musl-gcc -j$nprocs + CC=musl-gcc ./configure --prefix=$top/cross --disable-shared --enable-static || return 1 + make CC=musl-gcc -j$nprocs || return 1 popd } install() { pushd src/libsigc++-2.3.1 - make install + make install || return 1 popd } diff --git a/cross-scripts/libtorrent b/cross-scripts/libtorrent index 6774f96..be2371f 100644 --- a/cross-scripts/libtorrent +++ b/cross-scripts/libtorrent @@ -12,13 +12,13 @@ unpack() { build() { pushd src/libtorrent-0.13.3 - CC=musl-gcc ./configure --prefix=$top/cross --disable-shared - make CC=musl-gcc -j$nprocs + CC=musl-gcc ./configure --prefix=$top/cross --disable-shared || return 1 + make CC=musl-gcc -j$nprocs || return 1 popd } install() { pushd src/libtorrent-0.13.3 - make install + make install || return 1 popd } diff --git a/cross-scripts/musl b/cross-scripts/musl index 2c97687..c7c9af4 100644 --- a/cross-scripts/musl +++ b/cross-scripts/musl @@ -12,13 +12,13 @@ unpack() { build() { pushd src/musl-0.9.13 - ./configure --prefix=$top/cross --syslibdir=$top/cross/lib --disable-shared - make -j$nprocs + ./configure --prefix=$top/cross --syslibdir=$top/cross/lib --disable-shared || return 1 + make -j$nprocs || return 1 popd } install() { pushd src/musl-0.9.13 - make install + make install || return 1 popd } diff --git a/cross-scripts/ncurses b/cross-scripts/ncurses index c16ce27..c763555 100644 --- a/cross-scripts/ncurses +++ b/cross-scripts/ncurses @@ -15,13 +15,13 @@ build() { wget -c $mirror/ncurses-fallback.c -O ncurses/fallback.c CC=musl-gcc ./configure --prefix=$top/cross --without-tests \ --with-normal --enable-sigwinch --disable-nls --without-dlsym \ - --without-cxx-binding --with-fallbacks="vt100" - make CC=musl-gcc -j$nprocs + --without-cxx-binding --with-fallbacks="vt100" || return 1 + make CC=musl-gcc -j$nprocs || return 1 popd } install() { pushd src/ncurses-5.9 - make install + make install || return 1 popd } diff --git a/cross-scripts/zlib b/cross-scripts/zlib index 37a306f..86abf3a 100644 --- a/cross-scripts/zlib +++ b/cross-scripts/zlib @@ -12,13 +12,13 @@ unpack() { build() { pushd src/zlib-1.2.8 - CC=musl-gcc ./configure --prefix=$top/cross --static - make CC=musl-gcc -j$nprocs + CC=musl-gcc ./configure --prefix=$top/cross --static || return 1 + make CC=musl-gcc -j$nprocs || return 1 popd } install() { pushd src/zlib-1.2.8 - make install + make install || return 1 popd } diff --git a/pkgs/dropbear b/pkgs/dropbear index 3cce5c3..4d87395 100644 --- a/pkgs/dropbear +++ b/pkgs/dropbear @@ -13,19 +13,19 @@ unpack() { build() { pushd src/dropbear-2013.56 CC=musl-gcc ./configure CFLAGS="-I$top/cross/include" \ - LDFLAGS="-static -L$top/cross/lib" --prefix=$root + LDFLAGS="-static -L$top/cross/lib" --prefix=$root || return 1 for i in UTMP WTMP PUTUTLINE PUTUTXLINE SYSLOG LASTLOG; do echo "#define DISABLE_$i" >> config.h done make CC=musl-gcc SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" \ - prefix=$root sbindir=$root/bin -j$nprocs STATIC=1 + prefix=$root sbindir=$root/bin -j$nprocs STATIC=1 || return 1 popd } install() { pushd src/dropbear-2013.56 make CC=musl-gcc SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" prefix=$root \ - sbindir=$root/bin -j$nprocs install STATIC=1 + sbindir=$root/bin -j$nprocs install STATIC=1 || return 1 pushd $root/bin ln -s dbclient ssh popd diff --git a/pkgs/em b/pkgs/em index fe008e9..d6ae081 100644 --- a/pkgs/em +++ b/pkgs/em @@ -13,15 +13,15 @@ unpack() { build() { pushd src/em make clean - sed -i "s@BINDIR=/usr/bin@BINDIR=${root}/bin@;s@LIBDIR=/usr/lib@LIBDIR=${root}/share/doc/uemacs@" Makefile + sed -i "s@BINDIR=/usr/bin@BINDIR=${root}/bin@;s@LIBDIR=/usr/lib@LIBDIR=${root}/share/doc/uemacs@" Makefile || return 1 make -j$nprocs CC="musl-gcc -I$top/cross/include -I$top/cross/include/ncurses" \ - LDFLAGS="-static -L$top/cross/lib" + LDFLAGS="-static -L$top/cross/lib" || return 1 popd } install() { pushd src/em mkdir -p $root/share/doc/uemacs - make install + make install || return 1 popd } diff --git a/pkgs/make b/pkgs/make index c89583d..878da69 100644 --- a/pkgs/make +++ b/pkgs/make @@ -12,13 +12,13 @@ unpack() { build() { pushd src/make-3.82 - CC="musl-gcc -static" ./configure --prefix=$root --disable-nls - make CC="musl-gcc -static" -j$nprocs + CC="musl-gcc -static" ./configure --prefix=$root --disable-nls || return 1 + make CC="musl-gcc -static" -j$nprocs || return 1 popd } install() { pushd src/make-3.82 - make install + make install || return 1 popd } diff --git a/pkgs/man b/pkgs/man index 8338193..f41ae77 100644 --- a/pkgs/man +++ b/pkgs/man @@ -12,7 +12,7 @@ unpack() { build() { pushd src/man - musl-gcc -std=gnu99 -o man man.c -static + musl-gcc -std=gnu99 -o man man.c -static || return 1 popd } diff --git a/pkgs/mksh-R47 b/pkgs/mksh-R47 index 6a87f57..11b0ef4 100644 --- a/pkgs/mksh-R47 +++ b/pkgs/mksh-R47 @@ -12,7 +12,7 @@ unpack() { build() { pushd src/mksh - CC=musl-gcc LDFLAGS+=-static sh Build.sh + CC=musl-gcc LDFLAGS+=-static sh Build.sh || return 1 popd } diff --git a/pkgs/rsync b/pkgs/rsync index d3b2dea..cf87fbf 100644 --- a/pkgs/rsync +++ b/pkgs/rsync @@ -12,13 +12,13 @@ unpack() { build() { pushd src/rsync-3.0.9 - CC=musl-gcc ./configure --prefix=$root LDFLAGS="-static" - make CC=musl-gcc -j$nprocs + CC=musl-gcc ./configure --prefix=$root LDFLAGS="-static" || return 1 + make CC=musl-gcc -j$nprocs || return 1 popd } install() { pushd src/rsync-3.0.9 - make install + make install || return 1 popd } diff --git a/pkgs/sbase b/pkgs/sbase index 9f20c10..eeee20d 100644 --- a/pkgs/sbase +++ b/pkgs/sbase @@ -7,7 +7,7 @@ fetch() { build() { pushd src/sbase make clean - make -j$nprocs CC=musl-gcc LDFLAGS=-static + make -j$nprocs CC=musl-gcc LDFLAGS=-static || return 1 popd } diff --git a/pkgs/sdhcp b/pkgs/sdhcp index bc2cf1d..538bb2f 100644 --- a/pkgs/sdhcp +++ b/pkgs/sdhcp @@ -13,10 +13,10 @@ unpack() { build() { pushd src/sdhcp make clean - make CC=musl-gcc LDFLAGS=-static + make CC=musl-gcc LDFLAGS=-static || return 1 popd } install() { - cp src/sdhcp/sdhcp $root/bin + cp src/sdhcp/sdhcp $root/bin || return 1 } diff --git a/pkgs/sic b/pkgs/sic index c747656..c442024 100644 --- a/pkgs/sic +++ b/pkgs/sic @@ -13,7 +13,7 @@ unpack() { build() { pushd src/sic make clean - make CC=musl-gcc LDFLAGS=-static + make CC=musl-gcc LDFLAGS=-static || return 1 popd } diff --git a/pkgs/smdev b/pkgs/smdev index 528b564..fdb28c1 100644 --- a/pkgs/smdev +++ b/pkgs/smdev @@ -7,12 +7,12 @@ fetch() { build() { pushd src/smdev make clean - make CC=musl-gcc LDFLAGS=-static + make CC=musl-gcc LDFLAGS=-static || return 1 popd } install() { pushd src/smdev - make PREFIX=$root install + make PREFIX=$root install || return 1 popd } diff --git a/pkgs/tmux b/pkgs/tmux index 8da3bb3..f52a0a7 100644 --- a/pkgs/tmux +++ b/pkgs/tmux @@ -14,13 +14,13 @@ build() { pushd src/tmux-1.8 CC=musl-gcc ./configure --prefix=$root \ CFLAGS="-I$top/cross/include -I$top/cross/include/ncurses" \ - LDFLAGS="-static -L$top/cross/lib" - make CC=musl-gcc -j$nprocs + LDFLAGS="-static -L$top/cross/lib" || return 1 + make CC=musl-gcc -j$nprocs || return 1 popd } install() { pushd src/tmux-1.8 - make install + make install || return 1 popd } diff --git a/pkgs/ubase b/pkgs/ubase index cbc8d89..c209e74 100644 --- a/pkgs/ubase +++ b/pkgs/ubase @@ -7,7 +7,7 @@ fetch() { build() { pushd src/ubase make clean - make -j$nprocs CC=musl-gcc LDFLAGS=-static + make -j$nprocs CC=musl-gcc LDFLAGS=-static || return 1 popd }