Initial commit

This commit is contained in:
2026-03-21 12:43:00 -05:00
commit 83bf16823c
438 changed files with 33617 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
--- a/tools/all_errnos 2025-12-15 05:51:15.366671264 -0600
+++ b/tools/all_errnos 2026-02-20 21:39:20.242109706 -0600
@@ -1,9 +1,8 @@
-#!/bin/bash
+#!/bin/sh
# Derived from all_syscalls.
set -e
-set -o pipefail
SED="$1"
shift
@@ -13,9 +12,16 @@
#include <sys/errno.h>
"
-trap 'rm -f $OUTPUT $OUTPUT.deps' ERR
+cleanup() {
+ status=$?
+ if [ "$status" -ne 0 ]; then
+ rm -f "$OUTPUT" "$OUTPUT.deps"
+ fi
+}
-"$@" -MD -MF "$OUTPUT.deps" <<< "$ERRNO_INCLUDES" -dM -E - \
+trap cleanup EXIT HUP INT TERM
+
+printf '%s\n' "$ERRNO_INCLUDES" | "$@" -MD -MF "$OUTPUT.deps" -dM -E - \
| "$SED" -n -e 's/^[ \t]*#define[ \t]*E\([^ ]*\).*$/UL_ERRNO("E\1", E\1)/p' \
| sort \
> "$OUTPUT"
+30
View File
@@ -0,0 +1,30 @@
--- a/tools/all_syscalls 2025-12-15 05:51:15.366671264 -0600
+++ b/tools/all_syscalls 2026-02-20 21:41:57.730328949 -0600
@@ -1,7 +1,6 @@
-#!/bin/bash
+#!/bin/sh
set -e
-set -o pipefail
SED="$1"
shift
@@ -11,9 +10,16 @@
#include <sys/syscall.h>
"
-trap 'rm -f $OUTPUT $OUTPUT.deps' ERR
+cleanup() {
+ status=$?
+ if [ "$status" -ne 0 ]; then
+ rm -f "$OUTPUT" "$OUTPUT.deps"
+ fi
+}
-"$@" -MD -MF "$OUTPUT.deps" <<< "$SYSCALL_INCLUDES" -dM -E - \
+trap cleanup EXIT HUP INT TERM
+
+printf '%s\n' "$SYSCALL_INCLUDES" | "$@" -MD -MF "$OUTPUT.deps" -dM -E - \
| "$SED" -n -e 's/^#define __NR_\([^ ]*\).*$/UL_SYSCALL("\1", __NR_\1)/p' \
| sort \
> "$OUTPUT"
+43
View File
@@ -0,0 +1,43 @@
[build]
type = "autotools"
[build.flags]
cc = "clang"
configure = [
"--libdir=/usr/lib",
"--runstatedir=/run",
"--sbindir=/usr/bin",
"--disable-chfn-chsh",
"--disable-login",
"--disable-nologin",
"--disable-su",
"--disable-setpriv",
"--disable-runuser",
"--disable-pylibmount",
"--disable-static",
"--disable-liblastlog2",
"--without-python",
"--disable-kill",
"--disable-more",
"--without-systemd",
"--without-systemdsystemunitdir",
"ADJTIME_PATH=/var/lib/hwclock/adjtime",
]
skip_tests = true
[dependencies]
runtime = [ "glibc", "ncurses", "readline", "zlib-ng", "pam" ]
[package]
description = "miscellaneous utility programs"
homepage = "https://github.com/util-linux/util-linux"
license = "GPL-2.0-or-Later"
name = "util-linux"
version = "2.41.3"
[[source]]
extract_dir = "$name-$version"
post_extract = ["mkdir -pv $DESTDIR/var/lib/hwclock", "sed -i '1s|^#! */bin/bash|#!/bin/sh|' tools/all_errnos"]
sha256 = "3330d873f0fceb5560b89a7dc14e4f3288bbd880e96903ed9b50ec2b5799e58b"
url = "https://www.kernel.org/pub/linux/utils/util-linux/v2.41/$name-$version.tar.xz"
patches = ["all_errnos-posix.patch","all_syscalls-posix.patch"]