From 10fcfc26d16e0c7f37d664d929a311d0731328d6 Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 15:59:20 +0300 Subject: [PATCH 1/9] +libpng --- gcc/build | 2 +- libpng/build | 6 ++++++ libpng/package | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 libpng/build create mode 100644 libpng/package diff --git a/gcc/build b/gcc/build index 8b7425c..98f24ac 100755 --- a/gcc/build +++ b/gcc/build @@ -16,7 +16,7 @@ mkdir build cd build ../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++ make -make install DESTDIR="$1" +make DESTDIR="$1" install ln -s gcc "$1/usr/bin/cc" echo "#!/bin/sh" > "$1"/usr/bin/c99 echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99 diff --git a/libpng/build b/libpng/build new file mode 100644 index 0000000..94632fb --- /dev/null +++ b/libpng/build @@ -0,0 +1,6 @@ +wget https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz +tar -xf v1.6.37.tar.gz +cd v1.6.37 + +make +make DESTDIR="$1" install \ No newline at end of file diff --git a/libpng/package b/libpng/package new file mode 100644 index 0000000..91e3ee0 --- /dev/null +++ b/libpng/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.6.37" +pkg_config_name="libpng" +pkg_config_makedepends="" +pkg_config_depends="" \ No newline at end of file From ce5d6ad0e8d13d6f96773e1a7e7cb53a301c5438 Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 16:02:45 +0300 Subject: [PATCH 2/9] +expat | make libpng executable --- expat/build | 7 +++++++ expat/package | 5 +++++ libpng/build | 0 libpng/package | 0 4 files changed, 12 insertions(+) create mode 100755 expat/build create mode 100755 expat/package mode change 100644 => 100755 libpng/build mode change 100644 => 100755 libpng/package diff --git a/expat/build b/expat/build new file mode 100755 index 0000000..a0829f0 --- /dev/null +++ b/expat/build @@ -0,0 +1,7 @@ +wget http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz +tar -xf expat-2.1.0.tar.gz +cd expat-2.1.0 + +./configure --prefix=/usr --disable-static +make +make DESTDIR="$1" install \ No newline at end of file diff --git a/expat/package b/expat/package new file mode 100755 index 0000000..62a36e2 --- /dev/null +++ b/expat/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="2.1.0" +pkg_config_name="expat" +pkg_config_makedepends="" +pkg_config_depends="" \ No newline at end of file diff --git a/libpng/build b/libpng/build old mode 100644 new mode 100755 diff --git a/libpng/package b/libpng/package old mode 100644 new mode 100755 From 38df9484dfd2e302691eb81bc933fa8f074f5ead Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 16:10:21 +0300 Subject: [PATCH 3/9] +freetype2 --- freetype2/build | 7 +++++++ freetype2/package | 5 +++++ 2 files changed, 12 insertions(+) create mode 100755 freetype2/build create mode 100755 freetype2/package diff --git a/freetype2/build b/freetype2/build new file mode 100755 index 0000000..a93b61b --- /dev/null +++ b/freetype2/build @@ -0,0 +1,7 @@ +wget https://downloads.sourceforge.net/freetype/freetype-2.10.4.tar.xz +tar -xf freetype-2.10.4.tar.xz +cd freetype-2.10.4 + +./configure --prefix=/usr --disable-static +make +make DESTDIR="$1" install \ No newline at end of file diff --git a/freetype2/package b/freetype2/package new file mode 100755 index 0000000..7764efd --- /dev/null +++ b/freetype2/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="2.10.4" +pkg_config_name="freetype2" +pkg_config_makedepends="" +pkg_config_depends="" From b098cbacb6de860c86b254a126f5be74ee7596b3 Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 16:13:53 +0300 Subject: [PATCH 4/9] +fontconfig --- fontconfig/build | 12 ++++++++++++ fontconfig/package | 5 +++++ 2 files changed, 17 insertions(+) create mode 100755 fontconfig/build create mode 100755 fontconfig/package diff --git a/fontconfig/build b/fontconfig/build new file mode 100755 index 0000000..d4bf292 --- /dev/null +++ b/fontconfig/build @@ -0,0 +1,12 @@ +wget https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.1.tar.bz2 +tar -xf fontconfig-2.13.1.tar.bz2 +cd fontconfig-2.13.1 + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-docs \ + --docdir=/usr/share/doc/fontconfig-2.13.1 + +make +make DESTDIR="$1" install \ No newline at end of file diff --git a/fontconfig/package b/fontconfig/package new file mode 100755 index 0000000..4e98323 --- /dev/null +++ b/fontconfig/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="2.13.1" +pkg_config_name="fontconfig" +pkg_config_makedepends="" +pkg_config_depends="" From f10c0df4974676db2e8118932691abfda36457ab Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 16:22:00 +0300 Subject: [PATCH 5/9] +libdrm --- libdrm/build | 12 ++++++++++++ libdrm/package | 5 +++++ 2 files changed, 17 insertions(+) create mode 100755 libdrm/build create mode 100755 libdrm/package diff --git a/libdrm/build b/libdrm/build new file mode 100755 index 0000000..3947ea4 --- /dev/null +++ b/libdrm/build @@ -0,0 +1,12 @@ +wget https://dri.freedesktop.org/libdrm/libdrm-2.4.104.tar.xz +tar -xf libdrm-2.4.104.tar.xz +cd libdrm-2.4.104 + +export DESTDIR="$1" + +meson \ + --prefix=/usr \ + . build + +ninja -C build +ninja -C build install \ No newline at end of file diff --git a/libdrm/package b/libdrm/package new file mode 100755 index 0000000..1eed546 --- /dev/null +++ b/libdrm/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="2.4.104" +pkg_config_name="libdrm" +pkg_config_makedepends="" +pkg_config_depends="" From 27d2fcc4c747a5573a3249d944091d1f9c48f967 Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 16:37:03 +0300 Subject: [PATCH 6/9] ** lots of small package cleanups and fixes --- alnux/package | 2 +- bash/build | 2 ++ binutils/build | 2 ++ bison/build | 1 + busybox/build | 2 ++ busybox/postdeploy | 2 +- bzip2/build | 2 ++ cmake/build | 3 ++- curses-lib/build | 2 ++ flex/build | 3 +++ gcc/build | 5 ++++- gcc/package | 2 +- git/build | 1 + glibc/build | 2 ++ grub-defconfig/package | 2 +- gzip/build | 19 ++++++++----------- gzip/package | 2 +- hummingbird/build | 1 + hummingbird/package | 2 +- m4/build | 2 ++ make/build | 1 + nano/build | 5 +++-- ninja/build | 8 +++++--- ninja/package | 2 +- openrc/build | 1 + pthread/build | 2 ++ tar/build | 3 ++- ufetch/package | 2 +- xz/build | 3 ++- zlib/build | 3 ++- zsh/build | 3 ++- 31 files changed, 62 insertions(+), 30 deletions(-) diff --git a/alnux/package b/alnux/package index 76d9b8b..2121883 100755 --- a/alnux/package +++ b/alnux/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="0.3" +pkg_config_ver="0.4" pkg_config_name="alnux" pkg_config_makedepends="" pkg_config_depends="" \ No newline at end of file diff --git a/bash/build b/bash/build index c957546..ceaa300 100755 --- a/bash/build +++ b/bash/build @@ -1,7 +1,9 @@ wget https://ftp.gnu.org/gnu/bash/bash-5.1.8.tar.gz tar -xf bash-5.1.8.tar.gz cd bash-5.1.8 + sed -e 's/$(prefix)/$(DESTDIR)$(prefix)/g' -i Makefile + ./configure make make install DESTDIR="$1" diff --git a/binutils/build b/binutils/build index 3ff2ad7..58f79ee 100755 --- a/binutils/build +++ b/binutils/build @@ -1,6 +1,7 @@ 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 \ @@ -23,4 +24,5 @@ export PATH=$PATH:$PWD make configure-host make tooldir=/usr make DESTDIR="$1" tooldir=/usr install + ln -sf ld.bfd "$1/usr/bin/ld" diff --git a/bison/build b/bison/build index 43d52ce..36b3e81 100755 --- a/bison/build +++ b/bison/build @@ -1,6 +1,7 @@ wget https://ftp.gnu.org/gnu/bison/bison-3.7.6.tar.xz tar -xf bison-3.7.6.tar.xz cd bison-3.7.6 + ./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.7.6 make make install DESTDIR="$1" diff --git a/busybox/build b/busybox/build index 6b82ef8..2a2aca2 100755 --- a/busybox/build +++ b/busybox/build @@ -1,9 +1,11 @@ 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-1.33.1 + make defconfig LDFLAGS="--static" make make install DESTDIR="$1" + cd "_install" install linuxrc "$1"/linuxrc rsync -a ./bin/ "$1"/bin/ diff --git a/busybox/postdeploy b/busybox/postdeploy index 611d550..7628ba5 100755 --- a/busybox/postdeploy +++ b/busybox/postdeploy @@ -1 +1 @@ -#/bin/busybox --install +# /bin/busybox --install diff --git a/bzip2/build b/bzip2/build index a60e933..ab9cc2a 100755 --- a/bzip2/build +++ b/bzip2/build @@ -1,8 +1,10 @@ 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" cp -f bzip2 bzdiff bzgrep bzmore "$1/usr/bin" cp -f libbz2.so.1.0.8 libbz2.a "$1/usr/lib" diff --git a/cmake/build b/cmake/build index ff388fa..1c924ad 100755 --- a/cmake/build +++ b/cmake/build @@ -1,6 +1,7 @@ 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" +make DESTDIR="$1" install diff --git a/curses-lib/build b/curses-lib/build index 12005b8..98f7abe 100755 --- a/curses-lib/build +++ b/curses-lib/build @@ -1,6 +1,7 @@ wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz tar -xf ncurses-6.2.tar.gz cd ncurses-6.2 + sed -i s/mawk// configure mkdir build pushd build @@ -11,6 +12,7 @@ popd ./configure --prefix=/usr --build=$(./config.guess) --mandir=/usr/share/man --with-manpage-format=normal --with-shared --without-debug --without-ada --without-normal --enable-widec make make install DESTDIR="$1" + cp libncursesw.so /lib/libncursesw.so ln -s /lib/libncursesw.so /lib/libncurses.so echo "INPUT(-lncursesw)" > $1/usr/lib/libncurses.so diff --git a/flex/build b/flex/build index dac4763..645b69c 100755 --- a/flex/build +++ b/flex/build @@ -1,9 +1,12 @@ wget https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz tar -xf flex-2.6.4.tar.gz cd flex-2.6.4 + sed -i "/math.h/a #include " src/flexdef.h HELP2MAN=/tools/bin/true ./configure --prefix=/usr --docdir=/usr/share/doc/flex-2.6.4 + make make check make install DESTDIR="$1" + ln -sv flex /usr/bin/lex diff --git a/gcc/build b/gcc/build index 98f24ac..4554068 100755 --- a/gcc/build +++ b/gcc/build @@ -7,18 +7,21 @@ 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 + mv gmp-6.2.1 gmp mv mpfr-4.1.0 mpfr mv mpc-1.2.1 mpc + sed -i '/m64=/s/lib64/lib/' ./config/i386/t-linux64 sed -i 's/lib64/lib/' ./config/i386/linux64.h mkdir build cd build + ../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++ make make DESTDIR="$1" install + ln -s gcc "$1/usr/bin/cc" 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/gcc/package b/gcc/package index d57d8a4..64ce766 100755 --- a/gcc/package +++ b/gcc/package @@ -1,5 +1,5 @@ pkg_config_deploy="true" -pkg_config_ver="0.1" +pkg_config_ver="11.1.0" pkg_config_name="gcc" pkg_config_makedepends="" pkg_config_depends="" diff --git a/git/build b/git/build index 23ba522..29eff2c 100755 --- a/git/build +++ b/git/build @@ -1,6 +1,7 @@ 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 11fb4b4..9010df0 100755 --- a/glibc/build +++ b/glibc/build @@ -1,8 +1,10 @@ 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 make make install DESTDIR="$1" diff --git a/grub-defconfig/package b/grub-defconfig/package index 6dae383..9ae2b10 100755 --- a/grub-defconfig/package +++ b/grub-defconfig/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="0.2" +pkg_config_ver="0.3" pkg_config_name="grub-defconfig" pkg_config_makedepends="" pkg_config_depends="" \ No newline at end of file diff --git a/gzip/build b/gzip/build index 8ab96e9..c4b6873 100755 --- a/gzip/build +++ b/gzip/build @@ -1,11 +1,8 @@ -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" -cp -f pigz.1 "$1/usr/share/man/man1" -ln -sf pigz "$1/usr/bin/gzip" -ln -sf pigz "$1/usr/bin/zcat" -ln -sf unpigz "$1/usr/bin/gunzip" -ln -sf pigz.1 "$1/usr/share/man/man1/gzip.1" +wget https://mirrors.nav.ro/gnu/gzip/gzip-1.10.tar.gz +tar -xf gzip-1.10.tar.gz +cd gzip-1.10 + +./configure --prefix=/usr + +make +make DESTDIR="$1" install diff --git a/gzip/package b/gzip/package index 7a5b471..d7b38b0 100755 --- a/gzip/package +++ b/gzip/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="2.6" +pkg_config_ver="1.10" pkg_config_name="gzip" pkg_config_makedepends="" pkg_config_depends="" diff --git a/hummingbird/build b/hummingbird/build index 923c049..dd5e07a 100755 --- a/hummingbird/build +++ b/hummingbird/build @@ -1,4 +1,5 @@ git clone https://github.com/Sweets/hummingbird hummingbird-build cd hummingbird-build + make make install DESTDIR=$1 diff --git a/hummingbird/package b/hummingbird/package index 4e2c75a..8d8cdd1 100755 --- a/hummingbird/package +++ b/hummingbird/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="0.1" +pkg_config_ver="b1f7ea13c94d5990af4de74b2691ebf4d681fd66" pkg_config_name="hummingbird" pkg_config_makedepends="" pkg_config_depends="" \ No newline at end of file diff --git a/m4/build b/m4/build index b4f1b63..6c79b96 100755 --- a/m4/build +++ b/m4/build @@ -1,8 +1,10 @@ wget https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz tar -xf m4-1.4.19.tar.xz cd m4-1.4.19 + sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h + ./configure --prefix=/usr --build=$(build-aux/config.guess) make make install DESTDIR="$1" diff --git a/make/build b/make/build index d0139f8..520f721 100755 --- a/make/build +++ b/make/build @@ -1,6 +1,7 @@ wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz tar -xf make-4.3.tar.gz cd make-4.3 + export CFLAGS="$CFLAGS -static" ./configure --prefix=/usr make diff --git a/nano/build b/nano/build index ceca9be..7a3ffa6 100755 --- a/nano/build +++ b/nano/build @@ -1,10 +1,11 @@ wget https://www.nano-editor.org/dist/v5/nano-5.8.tar.xz tar -xf nano-5.8.tar.xz cd nano-5.8 + ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-utf8 \ + --disable-docs \ --docdir=/usr/share/doc/nano-5.8 make -make install && -install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-5.8 +make DESTDIR="$1" install diff --git a/ninja/build b/ninja/build index dea8f27..3462221 100755 --- a/ninja/build +++ b/ninja/build @@ -1,4 +1,6 @@ -git clone https://github.com/ninja-build/ninja.git -cd ninja +git clone https://github.com/ninja-build/ninja/archive/refs/tags/v1.10.2.tar.gz +tar -xf v1.10.2.tar.gz +cd v1.10.2 + ./configure.py --bootstrap -mv ninja "$1"/usr/bin +cp -pv ninja "$1"/usr/bin diff --git a/ninja/package b/ninja/package index 56506ce..6cdc999 100755 --- a/ninja/package +++ b/ninja/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="1.10.2-git" +pkg_config_ver="1.10.2" pkg_config_name="ninja" pkg_config_makedepends="" pkg_config_depends="" diff --git a/openrc/build b/openrc/build index 86a59da..5ec7904 100755 --- a/openrc/build +++ b/openrc/build @@ -1,6 +1,7 @@ wget -O openrc-0.43.3.tar.gz https://github.com/OpenRC/openrc/archive/refs/tags/0.43.3.tar.gz tar -xf openrc-0.43.3.tar.gz cd openrc-0.43.3 + make make install BRANDING=\"Alnux/$(uname -s)\" SH=/bin/sh DESTDIR="$1"/sbin/openrc PREFIX="$1" cat tmpfs /tmp tmpfs rw,nosuid,noatime,nodev,size=20G,mode=1777 0 0 > "$1"/etc/fstab diff --git a/pthread/build b/pthread/build index f9309a8..59dabbc 100755 --- a/pthread/build +++ b/pthread/build @@ -1,7 +1,9 @@ wget https://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz tar -xf pth-2.0.7.tar.gz cd pth-2.0.7 + sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in + ./configure --prefix=/usr --disable-static --mandir=/usr/share/man make make install && diff --git a/tar/build b/tar/build index c94cbfe..d2070e5 100755 --- a/tar/build +++ b/tar/build @@ -1,6 +1,7 @@ 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 -make install DESTDIR="$1" +make DESTDIR="$1" install diff --git a/ufetch/package b/ufetch/package index d59f27c..d50e2ce 100755 --- a/ufetch/package +++ b/ufetch/package @@ -1,5 +1,5 @@ pkg_config_deploy="true" -pkg_config_ver="0.0.1" +pkg_config_ver="0.3" pkg_config_name="ufetch" pkg_config_makedepends="" pkg_config_depends="" diff --git a/xz/build b/xz/build index f7e7af0..11068e8 100755 --- a/xz/build +++ b/xz/build @@ -1,6 +1,7 @@ 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" +make DESTDIR="$1" install diff --git a/zlib/build b/zlib/build index 6ce6c40..60be936 100755 --- a/zlib/build +++ b/zlib/build @@ -1,7 +1,8 @@ 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" --shared make -make install DESTDIR="$1" +make DESTDIR="$1" install diff --git a/zsh/build b/zsh/build index 9b30e78..2fdc3b8 100755 --- a/zsh/build +++ b/zsh/build @@ -1,6 +1,7 @@ wget https://www.zsh.org/pub/zsh-5.8.tar.xz tar -xf zsh-5.8.tar.xz cd zsh-5.8 + ./configure --prefix=/usr --sysconfdir=/etc/zsh --enable-etcdir=/etc/zsh make -make install DESTDIR="$1" +make DESTDIR="$1" install From 57245b20913d229d1fa703c990248e7b42691e88 Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 16:42:14 +0300 Subject: [PATCH 7/9] update alnux os-release with more info --- alnux/package | 2 +- alnux/payload/etc/os-release | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/alnux/package b/alnux/package index 2121883..74abeb4 100755 --- a/alnux/package +++ b/alnux/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="0.4" +pkg_config_ver="0.5" pkg_config_name="alnux" pkg_config_makedepends="" pkg_config_depends="" \ No newline at end of file diff --git a/alnux/payload/etc/os-release b/alnux/payload/etc/os-release index 357851c..652c710 100644 --- a/alnux/payload/etc/os-release +++ b/alnux/payload/etc/os-release @@ -1,4 +1,7 @@ NAME="alnux" PRETTY_NAME="alnux" ID=alnux -BUILD_ID=rolling \ No newline at end of file +BUILD_ID=rolling +HOME_URL=https://git.hippoz.xyz/alnux +SUPPORT_URL=https://git.hippoz.xyz/alnux/aps/issues +BUG_REPORT_URL=https://git.hippoz.xyz/alnux/aps/issues \ No newline at end of file From 6bcf71310c87c36ae5768f5ad99fbfdfc9bd1063 Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 16:50:13 +0300 Subject: [PATCH 8/9] yoink some KISS linux gcc tidbits --- gcc/build | 51 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/gcc/build b/gcc/build index 4554068..39c7dea 100755 --- a/gcc/build +++ b/gcc/build @@ -1,27 +1,46 @@ 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 -mv gmp-6.2.1 gmp -mv mpfr-4.1.0 mpfr -mv mpc-1.2.1 mpc +# Use lib not lib64 by default. +sed '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 > _ +mv -f _ gcc/gcc/config/i386/t-linux64 +sed 's/lib64/lib/' gcc/gcc/config/i386/linux64.h > _ +mv -f _ gcc/gcc/config/i386/linux64.h -sed -i '/m64=/s/lib64/lib/' ./config/i386/t-linux64 -sed -i 's/lib64/lib/' ./config/i386/linux64.h mkdir build cd build -../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++ +../configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-multilib \ + --disable-symvers \ + --disable-libmpx \ + --disable-libmudflap \ + --disable-libsanitizer \ + --disable-werror \ + --disable-fixed-point \ + --disable-libstdcxx-pch \ + --disable-nls \ + --enable-checking=release \ + --enable-__cxa_atexit \ + --enable-default-pie \ + --enable-default-ssp \ + --enable-shared \ + --enable-threads \ + --enable-tls \ + --enable-languages=c,c++ + make make DESTDIR="$1" install -ln -s gcc "$1/usr/bin/cc" -echo "#!/bin/sh" > "$1"/usr/bin/c99 -echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99 -chmod +x "$1"/usr/bin/c99 +# Save 35MB. (from KISS) +find "$1" -name libgtkpeer.a -exec rm -f {} + +find "$1" -name libgjsmalsa.a -exec rm -f {} + +find "$1" -name libgij.a -exec rm -f {} + + +ln -sf gcc "$1/usr/bin/cc" +cp -f ../c99 "$1/usr/bin" From e1d9880bd99d6d808dc9beccdf707f6d87bedae6 Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 14 Jul 2021 16:51:39 +0300 Subject: [PATCH 9/9] *gcc: fix whoopsie --- gcc/build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/build b/gcc/build index 39c7dea..d82aa23 100755 --- a/gcc/build +++ b/gcc/build @@ -43,4 +43,7 @@ find "$1" -name libgjsmalsa.a -exec rm -f {} + find "$1" -name libgij.a -exec rm -f {} + ln -sf gcc "$1/usr/bin/cc" -cp -f ../c99 "$1/usr/bin" + +echo "#!/bin/sh" > "$1"/usr/bin/c99 +echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99 +chmod +x "$1"/usr/bin/c99