summaryrefslogtreecommitdiff
path: root/repo/system
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system')
-rw-r--r--repo/system/acpid.xibuild2
-rw-r--r--repo/system/attr.xibuild2
-rw-r--r--repo/system/binutils.xibuild2
-rw-r--r--repo/system/brotli.xibuild2
-rw-r--r--repo/system/bzip2.xibuild2
-rw-r--r--repo/system/coreutils.xibuild2
-rw-r--r--repo/system/dhcp.xibuild2
-rw-r--r--repo/system/efivar.xibuild2
-rw-r--r--repo/system/expat.xibuild2
-rw-r--r--repo/system/findutils.xibuild2
-rw-r--r--repo/system/gdbm.xibuild2
-rw-r--r--repo/system/glib.xibuild2
-rw-r--r--repo/system/glibc.xibuild108
-rw-r--r--repo/system/gperf.xibuild2
-rw-r--r--repo/system/gzip.xibuild2
-rw-r--r--repo/system/kbd.xibuild2
-rw-r--r--repo/system/kmod.xibuild2
-rw-r--r--repo/system/krb5.xibuild2
-rw-r--r--repo/system/libcap-ng.xibuild2
-rw-r--r--repo/system/libcap.xibuild2
-rw-r--r--repo/system/libffi.xibuild2
-rw-r--r--repo/system/libidn.xibuild2
-rw-r--r--repo/system/liblinear.xibuild2
-rw-r--r--repo/system/libndp.xibuild2
-rw-r--r--repo/system/libnghttp.xibuild2
-rw-r--r--repo/system/libnl.xibuild2
-rw-r--r--repo/system/libp11-kit.xibuild2
-rw-r--r--repo/system/libpipeline.xibuild2
-rw-r--r--repo/system/libptytty.xibuild2
-rw-r--r--repo/system/libressl.xibuild2
-rw-r--r--repo/system/libseccomp.xibuild2
-rw-r--r--repo/system/libtasn1.xibuild2
-rw-r--r--repo/system/libtool.xibuild2
-rw-r--r--repo/system/libunistring.xibuild2
-rw-r--r--repo/system/libusb.xibuild2
-rw-r--r--repo/system/libxcrypt.xibuild2
-rw-r--r--repo/system/lzo.xibuild2
-rw-r--r--repo/system/mpfr.xibuild2
-rw-r--r--repo/system/mtdev.xibuild2
-rw-r--r--repo/system/musl.xibuild47
-rw-r--r--repo/system/ncurses.xibuild2
-rw-r--r--repo/system/nspr.xibuild2
-rw-r--r--repo/system/pam.xibuild2
-rw-r--r--repo/system/pcre.xibuild2
-rw-r--r--repo/system/perl.xibuild2
-rw-r--r--repo/system/popt.xibuild2
-rw-r--r--repo/system/readline.xibuild2
-rw-r--r--repo/system/rtmpdump.xibuild2
-rw-r--r--repo/system/sed.xibuild2
-rw-r--r--repo/system/sysklogd.xibuild2
-rw-r--r--repo/system/sysvinit.xibuild2
-rw-r--r--repo/system/tar.xibuild2
-rw-r--r--repo/system/tomlc99.xibuild2
-rw-r--r--repo/system/zip.xibuild2
-rw-r--r--repo/system/zlib.xibuild2
-rw-r--r--repo/system/zstd.xibuild2
56 files changed, 101 insertions, 162 deletions
diff --git a/repo/system/acpid.xibuild b/repo/system/acpid.xibuild
index 209c8e5..55a4e6f 100644
--- a/repo/system/acpid.xibuild
+++ b/repo/system/acpid.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make"
-DEPS="glibc"
+DEPS="musl"
PKG_VER=2.0.33
SOURCE=https://downloads.sourceforge.net/acpid2/acpid-$PKG_VER.tar.xz
diff --git a/repo/system/attr.xibuild b/repo/system/attr.xibuild
index a5ae70d..1598e77 100644
--- a/repo/system/attr.xibuild
+++ b/repo/system/attr.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=2.5.1
SOURCE=http://download.savannah.nongnu.org/releases/attr/attr-$PKG_VER.tar.xz
diff --git a/repo/system/binutils.xibuild b/repo/system/binutils.xibuild
index 9d659a6..1c85301 100644
--- a/repo/system/binutils.xibuild
+++ b/repo/system/binutils.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make dejagnu bzip2 xz zlib zstd patch"
-DEPS="glibc zlib elfutils"
+DEPS="musl zlib elfutils"
PKG_VER=2.37
SOURCE=https://ftp.gnu.org/gnu/binutils/binutils-$PKG_VER.tar.xz
diff --git a/repo/system/brotli.xibuild b/repo/system/brotli.xibuild
index 0290900..dbdd973 100644
--- a/repo/system/brotli.xibuild
+++ b/repo/system/brotli.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="cmake make "
-DEPS="glibc"
+DEPS="musl"
SOURCE=https://github.com/google/brotli
DESC="A generic-purpose lossless compression algorithm"
diff --git a/repo/system/bzip2.xibuild b/repo/system/bzip2.xibuild
index 0fa6eab..1e448b4 100644
--- a/repo/system/bzip2.xibuild
+++ b/repo/system/bzip2.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc sh"
+DEPS="musl sh"
PKG_VER=1.0.8
SOURCE=git://sourceware.org/git/bzip2.git
diff --git a/repo/system/coreutils.xibuild b/repo/system/coreutils.xibuild
index f261cf9..d026617 100644
--- a/repo/system/coreutils.xibuild
+++ b/repo/system/coreutils.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc acl attr gmp libcap libressl libiconv"
+DEPS="musl acl attr gmp libcap libressl libiconv"
PKG_VER=9.0
SOURCE=https://ftp.gnu.org/gnu/coreutils/coreutils-$PKG_VER.tar.xz
diff --git a/repo/system/dhcp.xibuild b/repo/system/dhcp.xibuild
index f786c32..aba51fa 100644
--- a/repo/system/dhcp.xibuild
+++ b/repo/system/dhcp.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="bash iproute2 openldap"
-DEPS="glibc libldap"
+DEPS="musl libldap"
PKG_VER=4.4.3b1
SOURCE=https://ftp.isc.org/isc/dhcp/$PKG_VER/dhcp-$PKG_VER.tar.gz
diff --git a/repo/system/efivar.xibuild b/repo/system/efivar.xibuild
index d19bc3f..5bbe926 100644
--- a/repo/system/efivar.xibuild
+++ b/repo/system/efivar.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make patch"
-DEPS="glibc"
+DEPS="musl"
PKG_VER=37
SOURCE=https://github.com/rhboot/efivar/releases/download/$PKG_VER/efivar-$PKG_VER.tar.bz2
diff --git a/repo/system/expat.xibuild b/repo/system/expat.xibuild
index 2a39034..98f410c 100644
--- a/repo/system/expat.xibuild
+++ b/repo/system/expat.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=2.4.2
SOURCE=https://github.com/libexpat/libexpat/releases/download/R_$(echo $PKG_VER | sed "s|\.|_|g")/expat-$PKG_VER.tar.xz
diff --git a/repo/system/findutils.xibuild b/repo/system/findutils.xibuild
index 6828da1..fcbadba 100644
--- a/repo/system/findutils.xibuild
+++ b/repo/system/findutils.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc sh"
+DEPS="musl sh"
PKG_VER=4.8.0
SOURCE=https://ftp.gnu.org/gnu/findutils/findutils-$PKG_VER.tar.xz
diff --git a/repo/system/gdbm.xibuild b/repo/system/gdbm.xibuild
index 3b81ed6..3906bbb 100644
--- a/repo/system/gdbm.xibuild
+++ b/repo/system/gdbm.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc sh readline"
+DEPS="musl sh readline"
PKG_VER=1.21
SOURCE=https://ftp.gnu.org/gnu/gdbm/gdbm-$PKG_VER.tar.gz
diff --git a/repo/system/glib.xibuild b/repo/system/glib.xibuild
index 0b7f76f..45ff5cd 100644
--- a/repo/system/glib.xibuild
+++ b/repo/system/glib.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="meson ninja docbook-xsl docbook-dtd"
-DEPS="pcre libffi zlib glibc libxslt gdb "
+DEPS="pcre libffi zlib musl libxslt gdb "
PKG_VER=2.70.3
SOURCE=https://download.gnome.org/sources/glib/$(echo $PKG_VER | cut -d. -f-2)/glib-$PKG_VER.tar.xz
diff --git a/repo/system/glibc.xibuild b/repo/system/glibc.xibuild
deleted file mode 100644
index 8b3e626..0000000
--- a/repo/system/glibc.xibuild
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/bin/sh
-
-MAKEDEPS="make"
-DEPS="glibc"
-
-PKG_VER=2.34
-SOURCE=https://ftp.gnu.org/gnu/glibc/glibc-$PKG_VER.tar.xz
-
-ADDITIONAL="
- https://www.linuxfromscratch.org/patches/lfs/development/glibc-$PKG_VER-fhs-1.patch
- https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/glibc/trunk/locale-gen
-"
-
-DESC="The main gnu C library providing basic routines and procedures"
-
-prepare () {
- unset LDFLAGS
- # patches as recommended by lfs
- sed -e '/NOTIFY_REMOVED)/s/)/ \&\& data.attr != NULL)/' -i sysdeps/unix/sysv/linux/mq_notify.c
- patch -Np1 -i glibc-$PKG_VER-fhs-1.patch || true
-}
-
-build () {
- mkdir -v build
- cd build
-
- # ensure that the ldconfig and sln utilities are installed into /usr/sbin
- echo "rootsbindir=/usr/sbin" > configparms
-
- ../configure --prefix=/usr \
- --disable-werror \
- --enable-kernel=3.2 \
- --enable-stack-protector=strong \
- --with-headers=/usr/include \
- libc_cv_slibdir=/usr/lib
-
- make
-}
-
-check () {
- # some check failures are 'expected'
- make check || true
-}
-
-package () {
- mkdir -pv $PKG_DEST/etc
- touch $PKG_DEST/etc/ld.so.conf
-
- sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile
- make DESTDIR=$PKG_DEST install
-
- # fix hardcoded path to the excutable in ldd script
- sed '/RTLDLIST=/s@/usr@@g' -i $PKG_DEST/usr/bin/ldd
-
- cp -v ../nscd/nscd.conf $PKG_DEST/etc/nscd.conf
- mkdir -pv $PKG_DEST/var/cache/nscd
-
- # create locales for the system
- # note, this should be moved to a better place
- make DESTDIR=$PKG_DEST localedata/install-locales
-
- cat > $PKG_DEST/etc/nsswitch.conf << "EOF"
-# Begin /etc/nsswitch.conf
-
-passwd: files
-group: files
-shadow: files
-
-hosts: files dns
-networks: files
-
-protocols: files
-services: files
-ethers: files
-rpc: files
-
-# End /etc/nsswitch.conf
-EOF
- #install -m755 locale-gen "$PKG_DEST/usr/bin"
-
- #curl https://data.iana.org/time-zones/releases/tzdata2021e.tar.gz > tzdata2021e.tar.gz
- #tar -xf tzdata2021e.tar.gz
-#
- #ZONEINFO=$PKG_DEST/usr/share/zoneinfo
- #mkdir -pv $ZONEINFO/{posix,right}
-##
- #for tz in etcetera southamerica northamerica europe africa antarctica \
- #asia australasia backward; do
- #zic -L /dev/null -d $ZONEINFO ${tz}
- #zic -L /dev/null -d $ZONEINFO/posix ${tz}
- #zic -L leapseconds -d $ZONEINFO/right ${tz}
- #done
-#
- #cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
- #zic -d $ZONEINFO -p America/New_York
- #unset ZONEINFO
-
-
- # configure dynamic loader
- cat > $PKG_DEST/etc/ld.so.conf << "EOF"
-# Begin /etc/ld.so.conf
-/usr/local/lib
-/opt/lib
-include /etc/ld.so.conf.d/*.conf
-EOF
- mkdir -pv $PKG_DEST/etc/ld.so.conf.d
-}
-
diff --git a/repo/system/gperf.xibuild b/repo/system/gperf.xibuild
index 58f2134..b661199 100644
--- a/repo/system/gperf.xibuild
+++ b/repo/system/gperf.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=3.1
SOURCE=http://ftp.gnu.org/pub/gnu/gperf/gperf-$PKG_VER.tar.gz
diff --git a/repo/system/gzip.xibuild b/repo/system/gzip.xibuild
index 8551859..d82471d 100644
--- a/repo/system/gzip.xibuild
+++ b/repo/system/gzip.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc bash less"
+DEPS="musl bash less"
PKG_VER=1.11
SOURCE=https://ftp.gnu.org/gnu/gzip/gzip-$PKG_VER.tar.xz
diff --git a/repo/system/kbd.xibuild b/repo/system/kbd.xibuild
index 5da9830..9c48903 100644
--- a/repo/system/kbd.xibuild
+++ b/repo/system/kbd.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc pam"
+DEPS="musl pam"
PKG_VER=2.4.0
SOURCE=https://mirrors.edge.kernel.org/pub/linux/utils/kbd/kbd-$PKG_VER.tar.xz
diff --git a/repo/system/kmod.xibuild b/repo/system/kmod.xibuild
index 95056ec..efab542 100644
--- a/repo/system/kmod.xibuild
+++ b/repo/system/kmod.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc zlib libressl xz zstd"
+DEPS="musl zlib libressl xz zstd"
PKG_VER=29
SOURCE=https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-$PKG_VER.tar.xz
diff --git a/repo/system/krb5.xibuild b/repo/system/krb5.xibuild
index f95ec27..ada3f55 100644
--- a/repo/system/krb5.xibuild
+++ b/repo/system/krb5.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc e2fsprogs libldap keyutils"
+DEPS="musl e2fsprogs libldap keyutils"
PKG_VER=1.19.2
SOURCE=https://github.com/krb5/krb5
diff --git a/repo/system/libcap-ng.xibuild b/repo/system/libcap-ng.xibuild
index 945ee0b..a67ebbf 100644
--- a/repo/system/libcap-ng.xibuild
+++ b/repo/system/libcap-ng.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=0.8.2
SOURCE=https://github.com/stevegrubb/libcap-ng/archive/refs/tags/v$PKG_VER.tar.gz
diff --git a/repo/system/libcap.xibuild b/repo/system/libcap.xibuild
index 3da498d..ba9c19a 100644
--- a/repo/system/libcap.xibuild
+++ b/repo/system/libcap.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc pam"
+DEPS="musl pam"
PKG_VER=2.62
SOURCE=https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-$PKG_VER.tar.gz
diff --git a/repo/system/libffi.xibuild b/repo/system/libffi.xibuild
index 33fd73d..d802142 100644
--- a/repo/system/libffi.xibuild
+++ b/repo/system/libffi.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=3.4.2
SOURCE=https://github.com/libffi/libffi/releases/download/v$PKG_VER/libffi-$PKG_VER.tar.gz
diff --git a/repo/system/libidn.xibuild b/repo/system/libidn.xibuild
index 07d3d40..7e33935 100644
--- a/repo/system/libidn.xibuild
+++ b/repo/system/libidn.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc libunistring"
+DEPS="musl libunistring"
PKG_VER=2.3.2
SOURCE=https://ftp.gnu.org/gnu/libidn/libidn2-$PKG_VER.tar.gz
diff --git a/repo/system/liblinear.xibuild b/repo/system/liblinear.xibuild
index 81990f0..de47b0e 100644
--- a/repo/system/liblinear.xibuild
+++ b/repo/system/liblinear.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=243
SOURCE=https://github.com/cjlin1/liblinear/archive/v$PKG_VER/liblinear-$PKG_VER.tar.gz
diff --git a/repo/system/libndp.xibuild b/repo/system/libndp.xibuild
index 6844ca5..8e061ef 100644
--- a/repo/system/libndp.xibuild
+++ b/repo/system/libndp.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make flex"
-DEPS="glibc"
+DEPS="musl"
PKG_VER=1.8
SOURCE=http://libndp.org/files/libndp-$PKG_VER.tar.gz
diff --git a/repo/system/libnghttp.xibuild b/repo/system/libnghttp.xibuild
index 72e8187..6f006dc 100644
--- a/repo/system/libnghttp.xibuild
+++ b/repo/system/libnghttp.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=1.46.0
diff --git a/repo/system/libnl.xibuild b/repo/system/libnl.xibuild
index ba639bb..2a01c88 100644
--- a/repo/system/libnl.xibuild
+++ b/repo/system/libnl.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS=""
-DEPS="glibc"
+DEPS="musl"
PKG_VER=3.5.0
SOURCE=https://github.com/thom311/libnl/releases/download/libnl$(echo $PKG_VER | sed 's/\./_/g')/libnl-$PKG_VER.tar.gz
diff --git a/repo/system/libp11-kit.xibuild b/repo/system/libp11-kit.xibuild
index 6c6309a..ad12ec7 100644
--- a/repo/system/libp11-kit.xibuild
+++ b/repo/system/libp11-kit.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc libtasn1 libffi"
+DEPS="musl libtasn1 libffi"
PKG_VER=0.24.1
SOURCE=https://github.com/p11-glue/p11-kit/releases/download/$PKG_VER/p11-kit-$PKG_VER.tar.xz
diff --git a/repo/system/libpipeline.xibuild b/repo/system/libpipeline.xibuild
index c22ad67..e7cac33 100644
--- a/repo/system/libpipeline.xibuild
+++ b/repo/system/libpipeline.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=1.5.5
SOURCE=http://download.savannah.nongnu.org/releases/libpipeline/libpipeline-$PKG_VER.tar.gz
diff --git a/repo/system/libptytty.xibuild b/repo/system/libptytty.xibuild
index cff87c7..bc36364 100644
--- a/repo/system/libptytty.xibuild
+++ b/repo/system/libptytty.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="meson cmake"
-DEPS="glibc"
+DEPS="musl"
PKG_VER=2.0
SOURCE=http://dist.schmorp.de/libptytty/libptytty-$PKG_VER.tar.gz
diff --git a/repo/system/libressl.xibuild b/repo/system/libressl.xibuild
index 68c5973..972b884 100644
--- a/repo/system/libressl.xibuild
+++ b/repo/system/libressl.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=3.0.1
SOURCE=https://github.com/libressl/libressl/archive/refs/tags/libressl-$PKG_VER.tar.gz
diff --git a/repo/system/libseccomp.xibuild b/repo/system/libseccomp.xibuild
index ffa8d24..5e05d58 100644
--- a/repo/system/libseccomp.xibuild
+++ b/repo/system/libseccomp.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=2.5.3
SOURCE=https://github.com/seccomp/libseccomp/releases/download/v$PKG_VER/libseccomp-$PKG_VER.tar.gz
diff --git a/repo/system/libtasn1.xibuild b/repo/system/libtasn1.xibuild
index 0a4a9d1..a2394ed 100644
--- a/repo/system/libtasn1.xibuild
+++ b/repo/system/libtasn1.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=4.18.0
SOURCE=https://ftp.gnu.org/gnu/libtasn1/libtasn1-$PKG_VER.tar.gz
diff --git a/repo/system/libtool.xibuild b/repo/system/libtool.xibuild
index 3e81a30..ea7dc0e 100644
--- a/repo/system/libtool.xibuild
+++ b/repo/system/libtool.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="sh tar glibc"
+DEPS="sh tar musl"
PKG_VER=2.4.6
SOURCE=https://ftpmirror.gnu.org/libtool/libtool-$PKG_VER.tar.gz
diff --git a/repo/system/libunistring.xibuild b/repo/system/libunistring.xibuild
index 3629ab5..286b0c8 100644
--- a/repo/system/libunistring.xibuild
+++ b/repo/system/libunistring.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=0.9.10
SOURCE=https://ftp.gnu.org/gnu/libunistring/libunistring-$PKG_VER.tar.gz
diff --git a/repo/system/libusb.xibuild b/repo/system/libusb.xibuild
index 5587090..324b100 100644
--- a/repo/system/libusb.xibuild
+++ b/repo/system/libusb.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make"
-DEPS="glibc eudev"
+DEPS="musl eudev"
PKG_VER=1.0.25
SOURCE=https://github.com/libusb/libusb/releases/download/v$PKG_VER/libusb-$PKG_VER.tar.bz2
diff --git a/repo/system/libxcrypt.xibuild b/repo/system/libxcrypt.xibuild
index 757d78d..2cb545f 100644
--- a/repo/system/libxcrypt.xibuild
+++ b/repo/system/libxcrypt.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=4.4.26
SOURCE=https://github.com/besser82/libxcrypt/releases/download/v$PKG_VER/libxcrypt-$PKG_VER.tar.xz
diff --git a/repo/system/lzo.xibuild b/repo/system/lzo.xibuild
index e63fb51..4c24afc 100644
--- a/repo/system/lzo.xibuild
+++ b/repo/system/lzo.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=2.10
SOURCE=https://www.oberhumer.com/opensource/lzo/download/lzo-$PKG_VER.tar.gz
diff --git a/repo/system/mpfr.xibuild b/repo/system/mpfr.xibuild
index 99b0e78..1e62aac 100644
--- a/repo/system/mpfr.xibuild
+++ b/repo/system/mpfr.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc gmp"
+DEPS="musl gmp"
PKG_VER=4.1.0
SOURCE=https://www.mpfr.org/mpfr-current/mpfr-$PKG_VER.tar.xz
diff --git a/repo/system/mtdev.xibuild b/repo/system/mtdev.xibuild
index 2b13426..8c463b8 100644
--- a/repo/system/mtdev.xibuild
+++ b/repo/system/mtdev.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=1.1.6
SOURCE=https://bitmath.org/code/mtdev/mtdev-$PKG_VER.tar.bz2
diff --git a/repo/system/musl.xibuild b/repo/system/musl.xibuild
new file mode 100644
index 0000000..921736d
--- /dev/null
+++ b/repo/system/musl.xibuild
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+MAKEDEPS=""
+DEPS=""
+
+PKG_VER=1.2.2
+SOURCE=https://musl.libc.org/releases/musl-$PKG_VER.tar.gz
+
+ADDITIONAL="
+ https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-mlfs/fix-utmp-wtmp-paths.patch
+ https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-mlfs/change-scheduler-functions-Linux-compatib.patch
+ https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-alpine/0001-riscv64-define-ELF_NFPREG.patch
+ https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-alpine/handle-aux-at_base.patch
+ https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-alpine/syscall-cp-epoll.patch
+"
+
+DESC="Implementation of the C standard library built on top of the Linux system call API"
+
+prepare () {
+ for p in *.patch; do
+ patch -Np1 -i $p || true
+ done
+}
+
+build () {
+ LDFLAGS="$LDFLAGS -Wl,-soname,libc.musl-${CARCH}.so.1" \
+./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-gcc-wrapper
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ ln -sv /lib/ld-musl-$ARCH.so.1 $PKG_DEST/bin/ldd
+ ln -sv libc.so $PKG_DEST/usr/lib/libc.musl-x86_64.so.1
+
+ cat > $PKG_DEST/etc/ld-musl-x86_64.path << "EOF"
+/lib
+/usr/local/lib
+/usr/lib
+EOF
+
+ rm -v $PKG_DEST/usr/include/utmpx.h
+}
+
diff --git a/repo/system/ncurses.xibuild b/repo/system/ncurses.xibuild
index bf35719..5a1e4d0 100644
--- a/repo/system/ncurses.xibuild
+++ b/repo/system/ncurses.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make pkg-config"
-DEPS="glibc"
+DEPS="musl"
PKG_VER=6.3
SOURCE=https://invisible-mirror.net/archives/ncurses/ncurses-$PKG_VER.tar.gz
diff --git a/repo/system/nspr.xibuild b/repo/system/nspr.xibuild
index f7a8abd..30a47da 100644
--- a/repo/system/nspr.xibuild
+++ b/repo/system/nspr.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc bash"
+DEPS="musl bash"
PKG_VER=4.33
diff --git a/repo/system/pam.xibuild b/repo/system/pam.xibuild
index 021b9a0..0091605 100644
--- a/repo/system/pam.xibuild
+++ b/repo/system/pam.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make automake"
-DEPS="glibc libtirpc audit libxcrypt"
+DEPS="musl libtirpc audit libxcrypt"
PKG_VER=1.5.2
SOURCE=https://github.com/linux-pam/linux-pam/releases/download/v$PKG_VER/Linux-PAM-$PKG_VER.tar.xz
diff --git a/repo/system/pcre.xibuild b/repo/system/pcre.xibuild
index 779dfbf..52ca2eb 100644
--- a/repo/system/pcre.xibuild
+++ b/repo/system/pcre.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=10.39
SOURCE=https://github.com/PhilipHazel/pcre2/releases/download/pcre2-$PKG_VER/pcre2-$PKG_VER.tar.gz
diff --git a/repo/system/perl.xibuild b/repo/system/perl.xibuild
index 746ba63..ac52519 100644
--- a/repo/system/perl.xibuild
+++ b/repo/system/perl.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make"
-DEPS="gdbm glibc libxcrypt bzip2 zlib"
+DEPS="gdbm musl libxcrypt bzip2 zlib"
PKG_VER=5.34.0
SOURCE=https://www.cpan.org/src/5.0/perl-$PKG_VER.tar.gz
diff --git a/repo/system/popt.xibuild b/repo/system/popt.xibuild
index 5927be0..31796a7 100644
--- a/repo/system/popt.xibuild
+++ b/repo/system/popt.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=1.18
SOURCE=http://ftp.rpm.org/popt/releases/popt-1.x/popt-$PKG_VER.tar.gz
diff --git a/repo/system/readline.xibuild b/repo/system/readline.xibuild
index 5e85c49..4757abd 100644
--- a/repo/system/readline.xibuild
+++ b/repo/system/readline.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc ncurses"
+DEPS="musl ncurses"
PKG_VER=8.1
diff --git a/repo/system/rtmpdump.xibuild b/repo/system/rtmpdump.xibuild
index b99194f..a994c34 100644
--- a/repo/system/rtmpdump.xibuild
+++ b/repo/system/rtmpdump.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc gnutls zlib"
+DEPS="musl gnutls zlib"
SOURCE=git://git.ffmpeg.org/rtmpdump
BRANCH="fa8646d"
diff --git a/repo/system/sed.xibuild b/repo/system/sed.xibuild
index 349f345..1ddd84c 100644
--- a/repo/system/sed.xibuild
+++ b/repo/system/sed.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc acl attr"
+DEPS="musl acl attr"
PKG_VER=4.8
SOURCE=https://ftp.gnu.org/gnu/sed/sed-$PKG_VER.tar.xz
diff --git a/repo/system/sysklogd.xibuild b/repo/system/sysklogd.xibuild
index 8010cbe..6c9393d 100644
--- a/repo/system/sysklogd.xibuild
+++ b/repo/system/sysklogd.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=2.3.0
SOURCE=https://github.com/troglobit/sysklogd/releases/download/v$PKG_VER/sysklogd-$PKG_VER.tar.gz
diff --git a/repo/system/sysvinit.xibuild b/repo/system/sysvinit.xibuild
index d3c0282..f585b61 100644
--- a/repo/system/sysvinit.xibuild
+++ b/repo/system/sysvinit.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make patch"
-DEPS="sh glibc"
+DEPS="sh musl"
PKG_VER=3.01
SOURCE=http://download.savannah.nongnu.org/releases/sysvinit/sysvinit-$PKG_VER.tar.xz
diff --git a/repo/system/tar.xibuild b/repo/system/tar.xibuild
index 1a59de2..28c2da3 100644
--- a/repo/system/tar.xibuild
+++ b/repo/system/tar.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=1.34
SOURCE=https://ftp.gnu.org/gnu/tar/tar-$PKG_VER.tar.xz
diff --git a/repo/system/tomlc99.xibuild b/repo/system/tomlc99.xibuild
index de18dd6..b6b6f63 100644
--- a/repo/system/tomlc99.xibuild
+++ b/repo/system/tomlc99.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make"
-DEPS="glibc"
+DEPS="musl"
PKG_VER=1.0
SOURCE=https://github.com/cktan/tomlc99.git
diff --git a/repo/system/zip.xibuild b/repo/system/zip.xibuild
index d9b4558..e356b10 100644
--- a/repo/system/zip.xibuild
+++ b/repo/system/zip.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc bzip2"
+DEPS="musl bzip2"
PKG_VER=30
SOURCE=https://downloads.sourceforge.net/infozip/zip$PKG_VER.tar.gz
diff --git a/repo/system/zlib.xibuild b/repo/system/zlib.xibuild
index a1db121..d86e791 100644
--- a/repo/system/zlib.xibuild
+++ b/repo/system/zlib.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc"
+DEPS="musl"
PKG_VER=1.2.11
SOURCE=https://github.com/madler/zlib/archive/refs/tags/v$PKG_VER.tar.gz
diff --git a/repo/system/zstd.xibuild b/repo/system/zstd.xibuild
index ae8d6bb..827025e 100644
--- a/repo/system/zstd.xibuild
+++ b/repo/system/zstd.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="glibc zlib xz lz4"
+DEPS="musl zlib xz lz4"
PKG_VER=1.5.1
SOURCE=https://github.com/facebook/zstd/releases/download/v$PKG_VER/zstd-$PKG_VER.tar.gz