From d7d75205d57206278977197d34577dcd3e8d6434 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Wed, 7 Jul 2021 16:27:54 +0200 Subject: [PATCH 1/4] should be fixed... --- binutils/build | 6 +++--- busybox/build | 6 +++--- bzip2/build | 6 +++--- gcc/build | 16 ++++++++++++---- git/build | 6 +++--- glibc/build | 6 +++--- gzip/build | 6 +++--- hummingbird/build | 4 ++-- make/build | 6 +++--- openssl/build | 6 +++--- xz/build | 6 +++--- zlib/build | 6 +++--- 12 files changed, 44 insertions(+), 36 deletions(-) diff --git a/binutils/build b/binutils/build index c8ce403..3ff2ad7 100755 --- a/binutils/build +++ b/binutils/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/binutils/binutils.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz -tar -xf ${temp_location}/binutils/binutils.tar.xz -cd ${temp_location}/biinutils/binutils +wget -O binutils-2.36.1.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz +tar -xf binutils-2.36.1.tar.xz +cd binutils-2.36.1 chmod +x makeinfo export PATH=$PATH:$PWD ./configure \ diff --git a/busybox/build b/busybox/build index 8ca066f..c5091b6 100755 --- a/busybox/build +++ b/busybox/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/busybox/busybox.tar.bz2 https://busybox.net/downloads/busybox-1.33.1.tar.bz2 -tar -xf ${temp_location}/busybox/busybox.tar.bz2 -cd ${temp_location}/busybox +wget -O busybox-1.33.1.tar.bz2 https://busybox.net/downloads/busybox-1.33.1.tar.bz2 +tar -xf busybox-1.33.1.tar.bz2 +cd busybox make defconfig LDFLAGS="--static" make make install DESTDIR="$1" diff --git a/bzip2/build b/bzip2/build index 3ba3143..a60e933 100755 --- a/bzip2/build +++ b/bzip2/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/bzip2/bzip2.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz -tar -xf ${temp_location}/bzip2/bzip2.tar.gz -cd ${temp_location}/bzip2/bzip2 +wget -O bzip2-1.0.8.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz +tar -xf bzip2-1.0.8.tar.gz +cd bzip2-1.0.8 make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so make CC="${CC:-cc} $CFLAGS -static -fPIC $LDFLAGS" bzip2 mkdir -p "$1/usr/bin" "$1/usr/lib" "$1/usr/share/man/man1" "$1/usr/include" diff --git a/gcc/build b/gcc/build index 3ec83da..c505b68 100755 --- a/gcc/build +++ b/gcc/build @@ -1,6 +1,12 @@ -wget -O ${temp_location}/gcc/gcc.tar.gz -tar -xf ${temp_location}/gcc/gcc.tar.gz -cd ${temp_location}/gcc/gcc +wget -O gcc-11.1.0.tar.gz https://gcc.gnu.org/pub/gcc/releases/gcc-11.1.0/gcc-11.1.0.tar.xz +tar -xf gcc-11.1.0.tar.gz +cd gcc-11.1.0 +wget https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz +wget https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz +wget https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz +tar -xf gmp-6.2.1.tar.xz +tar -xf mpfr-4.1.0.tar.xz +tar -xf mpc-1.2.1.tar.gz sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h mkdir build @@ -9,5 +15,7 @@ cd build make make install DESTDIR="$1" ln -s gcc "$1/usr/bin/cc" -install -Dm755 ../c99 "$1/usr/bin/c99" +echo "#!/bin/sh" > "$1"/usr/bin/c99 +echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99 +chmod +x "$1"/usr/bin/c99 diff --git a/git/build b/git/build index c2345fb..048cbaa 100755 --- a/git/build +++ b/git/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/git/git.tar.xz https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz -tar -xf ${temp_location}/git/git.tar.xz -cd ${temp_location}/git/git +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 install DESTDIR="$1" diff --git a/glibc/build b/glibc/build index e6f1873..84f735f 100755 --- a/glibc/build +++ b/glibc/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/glibc/glibc.tar.gz https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz -tar -xf ${temp_location}/glibc/glibc.tar.gz -cd ${temp_location}/glibc/glibc +wget https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz +tar -xf glibc-2.33.tar.gz +cd glibc-2.33 mkdir build cd build ../configure --prefix=/usr diff --git a/gzip/build b/gzip/build index 4fd7848..8ab96e9 100755 --- a/gzip/build +++ b/gzip/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/gzip/gzip.tar.gz https://zlib.net/pigz/pigz-2.6.tar.gz -tar -xf ${temp_location}/gzip/gzip.tar.gz -cd ${temp_location}/gzip/gzip +wget https://zlib.net/pigz/pigz-2.6.tar.gz +tar -xf pigz-2.6.tar.gz +cd pigz-2.6 make CC="${CC:-cc} -static" mkdir -p "$1/usr/bin" "$1/usr/share/man/man1" cp -f pigz unpigz "$1/usr/bin" diff --git a/hummingbird/build b/hummingbird/build index 7b22926..923c049 100755 --- a/hummingbird/build +++ b/hummingbird/build @@ -1,4 +1,4 @@ -git clone https://github.com/Sweets/hummingbird ${temp_location}/hummingbird-build -cd ${temp_location}/hummingbird-build +git clone https://github.com/Sweets/hummingbird hummingbird-build +cd hummingbird-build make make install DESTDIR=$1 diff --git a/make/build b/make/build index 3043c5e..a92247b 100755 --- a/make/build +++ b/make/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/make/make.tar.gz https://ftp.gnu.org/gnu/make/make-4.3.tar.gz -untar -xf ${temp_location}/make/make.tar.gz -cd ${temp_location}/make/make +wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz +untar -xf make-4.3.tar.gz +cd make-4.3 export CFLAGS="$CFLAGS -static" ./configure --prefix=/usr make diff --git a/openssl/build b/openssl/build index 46ac1e4..58b6a71 100755 --- a/openssl/build +++ b/openssl/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/openssl/openssl.tar.gz https://www.openssl.org/source/openssl-3.0.0-beta1.tar.gz -tar -xf ${temp_location}/openssl/openssl.tar.gz -cd ${temp_location}/openssl/openssl +wget https://www.openssl.org/source/openssl-3.0.0-beta1.tar.gz +tar -xf openssl-3.0.0-beta1.tar.gz +cd openssl-3.0.0-beta1 chmod +x ./config ./config --prefix="/usr" make diff --git a/xz/build b/xz/build index a6c7d95..f7e7af0 100755 --- a/xz/build +++ b/xz/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/xz/xz.tar.gz https://tukaani.org/xz/xz-5.2.5.tar.gz -tar -xf ${temp_location}/xz/xz.tar.gz -cd ${temp_location}/xz/xz +wget https://tukaani.org/xz/xz-5.2.5.tar.gz +tar -xf xz-5.2.5.tar.gz +cd xz-5.2.5 ./configure --prefix=/usr --disable-nls make make install DESTDIR="$1" diff --git a/zlib/build b/zlib/build index dd328f5..00d106a 100755 --- a/zlib/build +++ b/zlib/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/zlib/zlib.tar.gz https://zlib.net/zlib-1.2.11.tar.gz -tar -xf ${temp_location}/zlib/zlib.tar.gz -cd ${temp_location}/zlib/zlib +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 make From 2a0415b014bed393b1755e754f05ed12f3f98318 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Wed, 7 Jul 2021 16:59:27 +0200 Subject: [PATCH 2/4] added clang while at it --- clang/build | 8 ++++++++ clang/package | 5 +++++ cmake/build | 6 ++++++ cmake/package | 5 +++++ ninja/build | 4 ++++ ninja/package | 5 +++++ 6 files changed, 33 insertions(+) create mode 100755 clang/build create mode 100755 clang/package create mode 100755 cmake/build create mode 100755 cmake/package create mode 100755 ninja/build create mode 100755 ninja/package diff --git a/clang/build b/clang/build new file mode 100755 index 0000000..9d29fd7 --- /dev/null +++ b/clang/build @@ -0,0 +1,8 @@ +wget https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz +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 install DESTDIR="$1" + diff --git a/clang/package b/clang/package new file mode 100755 index 0000000..4729097 --- /dev/null +++ b/clang/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="0.0.1" +pkg_config_name="clang" +pkg_config_makedepends="cmake ninja" +pkg_config_depends="" diff --git a/cmake/build b/cmake/build new file mode 100755 index 0000000..ff388fa --- /dev/null +++ b/cmake/build @@ -0,0 +1,6 @@ +wget https://github.com/Kitware/CMake/releases/download/v3.21.0-rc2/cmake-3.21.0-rc2.tar.gz +tar -xf cmake-3.21.0-rc2.tar.gz +cd cmake-3.21.0-rc2.tar.gz +./bootstrap +make +make install DESTDIR="$1" diff --git a/cmake/package b/cmake/package new file mode 100755 index 0000000..cc8621b --- /dev/null +++ b/cmake/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="0.0.1" +pkg_config_name="cmake" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/ninja/build b/ninja/build new file mode 100755 index 0000000..dea8f27 --- /dev/null +++ b/ninja/build @@ -0,0 +1,4 @@ +git clone https://github.com/ninja-build/ninja.git +cd ninja +./configure.py --bootstrap +mv ninja "$1"/usr/bin diff --git a/ninja/package b/ninja/package new file mode 100755 index 0000000..86f1ce3 --- /dev/null +++ b/ninja/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="0.0.1" +pkg_config_name="ninja" +pkg_config_makedepends="" +pkg_config_depends="" From 566a6d5c26df9d87672f69b887001ca412ccd291 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Wed, 7 Jul 2021 21:51:11 +0200 Subject: [PATCH 3/4] fixed versions --- clang/package | 2 +- cmake/package | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/package b/clang/package index 4729097..457798f 100755 --- a/clang/package +++ b/clang/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="0.0.1" +pkg_config_ver="12.0.0" pkg_config_name="clang" pkg_config_makedepends="cmake ninja" pkg_config_depends="" diff --git a/cmake/package b/cmake/package index cc8621b..aa0cc5b 100755 --- a/cmake/package +++ b/cmake/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="0.0.1" +pkg_config_ver="3.21.0-rc2" pkg_config_name="cmake" pkg_config_makedepends="" pkg_config_depends="" From 11d5ea4a96d4113a4c8c1858841c243a506839c3 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Wed, 7 Jul 2021 21:58:45 +0200 Subject: [PATCH 4/4] fixed ninja --- ninja/package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ninja/package b/ninja/package index 86f1ce3..56506ce 100755 --- a/ninja/package +++ b/ninja/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="0.0.1" +pkg_config_ver="1.10.2-git" pkg_config_name="ninja" pkg_config_makedepends="" pkg_config_depends=""