diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-03 14:32:34 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-03 14:32:34 +0000 |
| commit | 8df1d35909ec2d57a6845f5b2c26ee1e83cfd032 (patch) | |
| tree | 88e5aaa8cf9d3c0538cdff935a56786705548d75 /musl/abuild | |
| parent | 96ec28ea0d2c05032f40f50bc6b9de7020138f57 (diff) | |
| download | alicelinux-8df1d35909ec2d57a6845f5b2c26ee1e83cfd032.tar.gz alicelinux-8df1d35909ec2d57a6845f5b2c26ee1e83cfd032.zip | |
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'musl/abuild')
| -rw-r--r-- | musl/abuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/musl/abuild b/musl/abuild new file mode 100644 index 00000000..a85c86b3 --- /dev/null +++ b/musl/abuild @@ -0,0 +1,45 @@ +name=musl +version=1.2.5 +release=3 +source="https://www.musl-libc.org/releases/musl-$version.tar.gz + getconf.c + getconf.1 + getent.c + getent.1 + iconv.c + tree.h + queue.h + cdefs.h + elfutils-0.190-relr.patch + default-locpath.patch + 0001-iconv-fix-erroneous-input-validation-in-EUC-KR-decod.patch + 0002-iconv-harden-UTF-8-output-code-path-against-input-de.patch" +keep_static=1 + +build() { + ./configure \ + --prefix=/usr #\ + #--syslibdir=/usr/lib + make + make DESTDIR=$PKG install + + mkdir -p $PKG/usr/bin + ln -sf ../lib/libc.so $PKG/usr/bin/ldd + mkdir -p $PKG/sbin + echo "#!/bin/sh + /bin/true" > $PKG/sbin/ldconfig + chmod +x $PKG/sbin/ldconfig + + for i in getent getconf iconv; do + ${CC:-gcc} $CFLAGS $LDFLAGS -fpie $SRC/$i.c -o $PKG/usr/bin/$i + done + + mkdir -p $PKG/usr/share/man/man1 + install -m644 $SRC/getconf.1 $PKG/usr/share/man/man1 + #install -m644 $SRC/getent.1 $PKG/usr/share/man/man1 + + # bsdcompat headers + for h in tree.h queue.h cdefs.h; do + install -D $SRC/$h $PKG/usr/include/sys/ + done +} |