mirror of
https://linux.maple.camp/git/ahill/maplelinux-bootstrap.git
synced 2026-02-11 10:13:35 +00:00
Updated treetap, fixed the bootstrap, and replaced ld.lld with mold
This commit is contained in:
@@ -10,6 +10,7 @@ SRC_VERSION="1.36.1"
|
||||
build() {
|
||||
tar xf ../$SRC_FILENAME
|
||||
cd busybox-*/
|
||||
cp ../.config .
|
||||
# NOTE: Like we did with musl before, we don't set CROSS_COMPILE because
|
||||
# LLVM is smart and doesn't need a compiler to cross-compile code.
|
||||
# With that said, Busybox uses Kbuild, which hard-codes variables like
|
||||
@@ -31,6 +32,7 @@ clean() {
|
||||
}
|
||||
|
||||
package() {
|
||||
cd busybox-*/
|
||||
# NOTE: Busybox doesn't have a proper DESTDIR, so we just set CONFIG_PREFIX
|
||||
# during the install to work around this limitation. ~ahill
|
||||
make -O -j $TT_PROCS install CONFIG_PREFIX=$TT_INSTALLDIR
|
||||
|
||||
@@ -9,21 +9,7 @@ build() {
|
||||
cd libressl-*/
|
||||
# TODO: What even is sharedstatedir and what should Maple Linux do with it?
|
||||
# ~ahill
|
||||
./configure \
|
||||
--bindir=$TT_BINDIR \
|
||||
--build=$TT_BUILD \
|
||||
--datarootdir=/usr/share \
|
||||
--disable-static \
|
||||
--host=$TT_TARGET \
|
||||
--includedir=$TT_INCLUDEDIR \
|
||||
--libdir=$TT_LIBDIR \
|
||||
--libexecdir=$TT_LIBDIR \
|
||||
--localstatedir=/var \
|
||||
--prefix=$TT_PREFIX \
|
||||
--runstatedir=/run \
|
||||
--sbindir=$TT_BINDIR \
|
||||
--sysconfdir=$TT_CONFDIR \
|
||||
--with-sysroot=$TT_SYSROOT
|
||||
./configure $TT_AUTOCONF_COMMON --disable-static
|
||||
make -j $TT_PROCS
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
|
||||
SRC_HASH="1794be4bf974e99a3fe1da4b2b9b1456c02ae9479c942f365441d8d207bd650c"
|
||||
SRC_HASH="ae67086eb04bed7ca11ab880349b5f1ab6f50e1b88cda376eaf8a845b935762b"
|
||||
SRC_NAME="llvm"
|
||||
SRC_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.5/llvm-project-21.1.5.src.tar.xz"
|
||||
SRC_VERSION="21.1.5"
|
||||
SRC_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.6/llvm-project-21.1.6.src.tar.xz"
|
||||
SRC_VERSION="21.1.6"
|
||||
@@ -7,20 +7,7 @@ SRC_VERSION="4.4.1"
|
||||
build() {
|
||||
tar xf ../$SRC_FILENAME
|
||||
cd make-*/
|
||||
./configure \
|
||||
--bindir=$TT_BINDIR \
|
||||
--build=$TT_BUILD \
|
||||
--datarootdir=/usr/share \
|
||||
--enable-year2038 \
|
||||
--host=$TT_TARGET \
|
||||
--includedir=$TT_INCLUDEDIR \
|
||||
--libdir=$TT_LIBDIR \
|
||||
--libexecdir=$TT_LIBDIR \
|
||||
--localstatedir=/var \
|
||||
--prefix=$TT_PREFIX \
|
||||
--runstatedir=/run \
|
||||
--sbindir=$TT_BINDIR \
|
||||
--sysconfdir=$TT_CONFDIR
|
||||
./configure $TT_AUTOCONF_COMMON --enable-year2038
|
||||
make -O -j $TT_PROCS
|
||||
}
|
||||
|
||||
@@ -29,5 +16,6 @@ clean() {
|
||||
}
|
||||
|
||||
package() {
|
||||
cd make-*/
|
||||
make -O -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
|
||||
}
|
||||
24
sources/mold/mold.spec
Normal file
24
sources/mold/mold.spec
Normal file
@@ -0,0 +1,24 @@
|
||||
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
|
||||
SRC_FILENAME="mold-2.40.4.tar.gz"
|
||||
SRC_HASH="69414c702ec1084e1fa8ca16da24f167f549e5e11e9ecd5d70a8dcda6f08c249"
|
||||
SRC_NAME="mold"
|
||||
SRC_URL="https://github.com/rui314/mold/archive/refs/tags/v2.40.4.tar.gz"
|
||||
SRC_VERSION="2.40.4"
|
||||
|
||||
build() {
|
||||
echo "DEBUG: $TT_CMAKE_COMMON"
|
||||
tar xf ../$SRC_FILENAME
|
||||
cd mold-*/
|
||||
cmake -B build $TT_CMAKE_COMMON
|
||||
cmake --build build --parallel $TT_PROCS
|
||||
}
|
||||
|
||||
clean() {
|
||||
rm -rf mold-*/
|
||||
}
|
||||
|
||||
package() {
|
||||
cd mold-*/
|
||||
cmake --install build --parallel $TT_PROCS
|
||||
ln -sf mold $TT_INSTALLDIR/bin/ld
|
||||
}
|
||||
@@ -15,13 +15,7 @@ build() {
|
||||
# https://www.openwall.com/lists/musl/2025/02/13/1/1
|
||||
# https://www.openwall.com/lists/musl/2025/02/13/1/2
|
||||
patch -p1 < ../CVE-2025-26519.patch
|
||||
./configure \
|
||||
--bindir=$TT_BINDIR \
|
||||
--build=$TT_BUILD \
|
||||
--includedir=$TT_INCLUDEDIR \
|
||||
--libdir=$TT_LIBDIR \
|
||||
--prefix=$TT_PREFIX \
|
||||
--target=$TT_TARGET
|
||||
./configure $TT_AUTOCONF_COMMON
|
||||
make -O -j $TT_PROCS
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user