Successful rootbuild with all components!

This commit is contained in:
Alexander Hill 2026-01-17 09:05:49 -05:00
parent ab8ca1e539
commit cb3257ca55

View File

@ -3,27 +3,41 @@ export CC=clang
export CFLAGS="-O3 -pipe" export CFLAGS="-O3 -pipe"
export CXX=clang++ export CXX=clang++
export CXXFLAGS=$CFLAGS export CXXFLAGS=$CFLAGS
export LD=ld.lld
export TT_MICROARCH=skylake
# Temporary workaround since root is the only user. ~ahill # Temporary workaround since root is the only user. ~ahill
export FORCE_UNSAFE_CONFIGURE=1 export FORCE_UNSAFE_CONFIGURE=1
# xz Build # xz Build
# NOTE: xz is needed to run "treetap package", so we manually install. ~ahill # NOTE: xz is needed to run "treetap build", so we manually build. ~ahill
cd /maple cd /maple
treetap build sources/xz/xz.spec XZ_VERSION=$(treetap variable /maple/sources/xz/xz.spec SRC_VERSION)
cd .treetap/sources/xz/*/*/xz-*/
echo -n "Bootstrapping xz... " echo -n "Bootstrapping xz... "
make -j $(nproc) install DESTDIR=/ > /dev/null 2>&1 cd .treetap/sources/xz/$XZ_VERSION
mkdir -p $TT_MICROARCH
cd $TT_MICROARCH
tar xf ../xz-*.tar*
cd xz-*/
./configure $(treetap variable /maple/sources/xz/xz.spec TT_AUTOCONF_COMMON) --disable-static --enable-year2038 > /maple/xz.log 2>&1
make -j $(nproc) >> /maple/xz.log 2>&1
make -j $(nproc) install DESTDIR=/ > /maple/xz.log 2>&1
echo "Done!" echo "Done!"
# libarchive Build # libarchive Build
# NOTE: bsdcpio is needed to run "treetap package", so we manually install. # NOTE: bsdcpio is needed to run "treetap build", so we manually build.
# ~ahill # ~ahill
cd /maple cd /maple
treetap build sources/libarchive/libarchive.spec LIBARCHIVE_VERSION=$(treetap variable /maple/sources/libarchive/libarchive.spec SRC_VERSION)
cd .treetap/sources/libarchive/*/*/libarchive-*/
echo -n "Bootstrapping libarchive... " echo -n "Bootstrapping libarchive... "
make -j $(nproc) install DESTDIR=/ > /dev/null 2>&1 cd .treetap/sources/libarchive/$LIBARCHIVE_VERSION
mkdir -p $TT_MICROARCH
cd $TT_MICROARCH
tar xf ../libarchive-*.tar*
cd libarchive-*/
./configure $(treetap variable /maple/sources/libarchive/libarchive.spec TT_AUTOCONF_COMMON) --disable-static --enable-year2038 > /maple/libarchive.log 2>&1
make -j $(nproc) > /maple/libarchive.log 2>&1
make -j $(nproc) install DESTDIR=/ > /maple/libarchive.log 2>&1
echo "Done!" echo "Done!"
# Now we can build stuff exclusively with treetap # Now we can build stuff exclusively with treetap
@ -41,12 +55,16 @@ echo "Done!"
# NOTE: fortune-mod requires cmake to build. ~ahill # NOTE: fortune-mod requires cmake to build. ~ahill
# NOTE: nano requires ncurses to build. ~ahill # NOTE: nano requires ncurses to build. ~ahill
# NOTE: kmod requires autoconf, automake, libtool to build. ~ahill # NOTE: kmod requires autoconf, automake, libtool to build. ~ahill
# NOTE: libcap2 requires zsh to build. ~ahill
# NOTE: Linux requires bc, byacc, flex, kmod, ... ~ahill # NOTE: Linux requires bc, byacc, flex, kmod, ... ~ahill
# NOTE: Limine requires nasm to build. ~ahill
# NOTE: OpenRC requires libcap2 and muon to build. ~ahill
cd /maple cd /maple
LAYER0="bc byacc bzip2 coreutils diffutils findutils grep gzip libressl m4 make mawk muon musl ncurses patch perl pkgconf sed tar xz zlib zsh" LAYER0="bc byacc bzip2 coreutils diffutils findutils grep gzip initramfs-tools libressl m4 make mawk muon musl ncurses patch perl pkgconf sed tar xz zlib zsh"
LAYER1="autoconf automake flex groff libarchive libelf libtool nano" LAYER1="autoconf automake flex groff libarchive libcap2 libelf libtool nano openrc"
LAYER2="dash nasm cmake fortune-mod kmod linux" LAYER2="cmake dash fortune-mod kmod nasm"
PACKAGES="$LAYER0 $LAYER1 $LAYER2" LAYER3="limine linux"
PACKAGES="$LAYER0 $LAYER1 $LAYER2 $LAYER3"
for pkg in $PACKAGES; do for pkg in $PACKAGES; do
treetap fetch /maple/sources/$pkg/$pkg.spec treetap fetch /maple/sources/$pkg/$pkg.spec
treetap build /maple/sources/$pkg/$pkg.spec treetap build /maple/sources/$pkg/$pkg.spec