2025-11-14 22:47:02 -05:00
|
|
|
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
|
2025-11-11 10:06:56 -05:00
|
|
|
SRC_HASH="a9a118bbe84d8764da0ea0d28b3ab3fae8477fc7e4085d90102b8596fc7c75e4"
|
|
|
|
|
SRC_NAME="musl"
|
2025-11-14 22:47:02 -05:00
|
|
|
SRC_PATCHES="
|
|
|
|
|
c0ffd0493dcde91850e39428a31577892aad20e83bc4bf4a5c37350649ce7932 CVE-2025-26519.patch
|
|
|
|
|
"
|
2025-11-11 10:06:56 -05:00
|
|
|
SRC_URL="https://musl.libc.org/releases/musl-1.2.5.tar.gz"
|
2025-11-14 22:47:02 -05:00
|
|
|
SRC_VERSION="1.2.5r1"
|
2025-11-11 10:06:56 -05:00
|
|
|
|
|
|
|
|
build() {
|
2025-11-14 22:47:02 -05:00
|
|
|
tar xf ../$SRC_FILENAME
|
2025-11-11 10:06:56 -05:00
|
|
|
cd musl-*/
|
2025-11-14 22:47:02 -05:00
|
|
|
# NOTE: CVE-2025-26519 patches are temporary and shouldn't be needed once
|
|
|
|
|
# 1.2.6 or 1.3.0 is released. ~ahill
|
|
|
|
|
# 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
|
2025-11-11 10:06:56 -05:00
|
|
|
./configure \
|
2025-11-14 18:27:49 -05:00
|
|
|
--bindir=$TT_BINDIR \
|
|
|
|
|
--build=$TT_BUILD \
|
|
|
|
|
--includedir=$TT_INCLUDEDIR \
|
|
|
|
|
--libdir=$TT_LIBDIR \
|
|
|
|
|
--prefix=$TT_PREFIX \
|
|
|
|
|
--target=$TT_TARGET
|
|
|
|
|
make -O -j $TT_PROCS
|
2025-11-11 10:06:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
clean() {
|
|
|
|
|
rm -rf musl-*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
cd musl-*/
|
2025-11-14 18:27:49 -05:00
|
|
|
DESTDIR=$TT_INSTALLDIR make install
|
2025-11-11 10:06:56 -05:00
|
|
|
}
|