utils-std: upgrade to 0.2.0

Changelog at: https://distfiles.hacktivis.me/releases/utils-std/utils-std-0.2.0.txt
Notably adds comm(1) command and `ln -r`

For the syscalls not supported on Fiwix it would probably be better
to remove them from pre-linux-kexec musl as otherwise it means
broken compile+link ./configure tests as we can see here.
This commit is contained in:
Haelwenn (lanodan) Monnier 2026-04-23 03:00:19 +02:00
parent a96ca246a5
commit c37ee0c57a
No known key found for this signature in database
6 changed files with 338 additions and 3 deletions

View file

@ -0,0 +1,26 @@
# SPDX-FileCopyrightText: 2025 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
sed -i s/_Noreturn// libutils/err.h
# getconf: to avoid changing libtool checksums, although likely means better values
# which: to avoid changing checksums of packages like perl-5.36.3_0
sed -i '/^commands="$/,/^"$/{ s,getconf,, ; s,which,, }' configure
}
src_configure() {
chmod +x configure
./configure PREFIX="${PREFIX}" CC=tcc AR=tcc\ -ar
# Fiwix (as of 1.7.0) doesn't have sendfile(2), copy_file_range(2), syncfs(2), posix_fadvise(2)
sed -i \
-e /HAS_SENDFILE/d \
-e /HAS_COPY_FILE_RANGE/d \
-e /HAS_SYNCFS/d \
-e /HAS_POSIX_FADVISE/d \
config.h
}