From 2842b749e64fb408a69bd7a6325e92a677f7bc18 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Thu, 8 Jul 2021 17:28:30 +0200 Subject: [PATCH 1/3] Fix too long of compile times???? --- busybox/build | 5 +++++ busybox/postdeploy | 2 +- gcc/build | 2 +- glibc/build | 2 +- make/build | 2 +- make/package | 2 +- openssl/build | 2 +- zlib/build | 2 +- 8 files changed, 12 insertions(+), 7 deletions(-) diff --git a/busybox/build b/busybox/build index c767c18..6b82ef8 100755 --- a/busybox/build +++ b/busybox/build @@ -4,3 +4,8 @@ cd busybox-1.33.1 make defconfig LDFLAGS="--static" make make install DESTDIR="$1" +cd "_install" +install linuxrc "$1"/linuxrc +rsync -a ./bin/ "$1"/bin/ +rsync -a ./sbin/ "$1"/sbin/ +rsync -a ./usr "$1"/usr/ diff --git a/busybox/postdeploy b/busybox/postdeploy index 0e7b6d5..611d550 100755 --- a/busybox/postdeploy +++ b/busybox/postdeploy @@ -1 +1 @@ -/bin/busybox --install \ No newline at end of file +#/bin/busybox --install diff --git a/gcc/build b/gcc/build index c505b68..a31e584 100755 --- a/gcc/build +++ b/gcc/build @@ -12,7 +12,7 @@ sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h mkdir build cd build ../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++ -make +make -j`nproc` make install DESTDIR="$1" ln -s gcc "$1/usr/bin/cc" echo "#!/bin/sh" > "$1"/usr/bin/c99 diff --git a/glibc/build b/glibc/build index 84f735f..1c5d63a 100755 --- a/glibc/build +++ b/glibc/build @@ -4,5 +4,5 @@ cd glibc-2.33 mkdir build cd build ../configure --prefix=/usr -make +make -j`nproc` make install DESTDIR="$1" diff --git a/make/build b/make/build index a92247b..d0139f8 100755 --- a/make/build +++ b/make/build @@ -1,5 +1,5 @@ wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz -untar -xf make-4.3.tar.gz +tar -xf make-4.3.tar.gz cd make-4.3 export CFLAGS="$CFLAGS -static" ./configure --prefix=/usr diff --git a/make/package b/make/package index 312bbcd..77cba1e 100755 --- a/make/package +++ b/make/package @@ -1,5 +1,5 @@ pkg_config_deploy="true" -pkg_config_ver="0.1" +pkg_config_ver="4.3" pkg_config_name="make" pkg_config_makedepends="" pkg_config_depends="" diff --git a/openssl/build b/openssl/build index 58b6a71..37f98ee 100755 --- a/openssl/build +++ b/openssl/build @@ -3,5 +3,5 @@ tar -xf openssl-3.0.0-beta1.tar.gz cd openssl-3.0.0-beta1 chmod +x ./config ./config --prefix="/usr" -make +make -j`nproc` make install DESTDIR="$1" diff --git a/zlib/build b/zlib/build index 00d106a..6ce6c40 100755 --- a/zlib/build +++ b/zlib/build @@ -2,6 +2,6 @@ wget https://zlib.net/zlib-1.2.11.tar.gz tar -xf zlib-1.2.11.tar.gz cd zlib-1.2.11 export CFLAGS="$CFLAGS -fPIC" -./configure --prefix="$1" --lib-dir="/usr/lib" --shared +./configure --prefix="$1" --shared make make install DESTDIR="$1" From d96c623e3c1bf481c42cfb2b86c5a78fb8612c78 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Thu, 8 Jul 2021 17:41:32 +0200 Subject: [PATCH 2/3] added tar --- tar/build | 6 ++++++ tar/package | 5 +++++ 2 files changed, 11 insertions(+) create mode 100755 tar/build create mode 100755 tar/package diff --git a/tar/build b/tar/build new file mode 100755 index 0000000..a73fd58 --- /dev/null +++ b/tar/build @@ -0,0 +1,6 @@ +wget https://ftp.gnu.org/gnu/tar/tar-1.34.tar.xz +tar -xf tar-1.34 +cd tar-1.34 +./configure DEFAULT_RMT_DIR=/etc +make -j`nproc` +make install DESTDIR="$1" diff --git a/tar/package b/tar/package new file mode 100755 index 0000000..18999ff --- /dev/null +++ b/tar/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.31" +pkg_config_name="tar" +pkg_config_makedepends="" +pkg_config_depends="" From ddf3e482363b121e5c2ff428ac76aede9b3bddb0 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Thu, 8 Jul 2021 19:49:15 +0200 Subject: [PATCH 3/3] removed -j flag --- clang/build | 2 +- clang/package | 2 +- gcc/build | 2 +- git/build | 2 +- glibc/build | 2 +- openssl/build | 2 +- tar/build | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clang/build b/clang/build index 9d29fd7..8264904 100755 --- a/clang/build +++ b/clang/build @@ -3,6 +3,6 @@ tar -xf clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz cd clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04 cd OBJ_ROOT cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$1"/usr/bin -make -j`nproc` +make make install DESTDIR="$1" diff --git a/clang/package b/clang/package index 457798f..a18f26c 100755 --- a/clang/package +++ b/clang/package @@ -1,5 +1,5 @@ pkg_config_deploy=true pkg_config_ver="12.0.0" pkg_config_name="clang" -pkg_config_makedepends="cmake ninja" +pkg_config_makedepends="cmake" pkg_config_depends="" diff --git a/gcc/build b/gcc/build index a31e584..c505b68 100755 --- a/gcc/build +++ b/gcc/build @@ -12,7 +12,7 @@ sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h mkdir build cd build ../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++ -make -j`nproc` +make make install DESTDIR="$1" ln -s gcc "$1/usr/bin/cc" echo "#!/bin/sh" > "$1"/usr/bin/c99 diff --git a/git/build b/git/build index 048cbaa..23ba522 100755 --- a/git/build +++ b/git/build @@ -2,5 +2,5 @@ wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz tar -xf git-2.9.5.tar.xz cd git-2.9.5 ./configure --prefix=/usr -make +make make install DESTDIR="$1" diff --git a/glibc/build b/glibc/build index 1c5d63a..11fb4b4 100755 --- a/glibc/build +++ b/glibc/build @@ -4,5 +4,5 @@ cd glibc-2.33 mkdir build cd build ../configure --prefix=/usr -make -j`nproc` +make make install DESTDIR="$1" diff --git a/openssl/build b/openssl/build index 37f98ee..58b6a71 100755 --- a/openssl/build +++ b/openssl/build @@ -3,5 +3,5 @@ tar -xf openssl-3.0.0-beta1.tar.gz cd openssl-3.0.0-beta1 chmod +x ./config ./config --prefix="/usr" -make -j`nproc` +make make install DESTDIR="$1" diff --git a/tar/build b/tar/build index a73fd58..c94cbfe 100755 --- a/tar/build +++ b/tar/build @@ -2,5 +2,5 @@ wget https://ftp.gnu.org/gnu/tar/tar-1.34.tar.xz tar -xf tar-1.34 cd tar-1.34 ./configure DEFAULT_RMT_DIR=/etc -make -j`nproc` +make make install DESTDIR="$1"