Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ LCOS is in early development. Expect bugs.

[The Lunduke Journal Forum](https://forum.lunduke.com/) is the exclusive place to ask questions, provide suggestions, report issues, or talk with other LCOS users. To keep trolls away, [this forum](https://forum.lunduke.com/) is only available to [Lunduke Journal subscribers](https://lunduke.com/).

## Vendored Upstream Source

The repository now includes a full copy of the uutils coreutils codebase in:

`vendor/uutils-coreutils`

Upstream project: https://github.com/uutils/coreutils

## Screenshots

![](screenshots/lcos-01-shot3.png)
Expand Down
9 changes: 9 additions & 0 deletions vendor/uutils-coreutils/.busybox-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CONFIG_FEATURE_FANCY_HEAD=y
CONFIG_UNICODE_SUPPORT=y
CONFIG_DESKTOP=y
CONFIG_LONG_OPTS=y
CONFIG_FEATURE_SORT_BIG=y
CONFIG_FEATURE_CATV=y
CONFIG_FEATURE_CATN=y
CONFIG_FEATURE_TR_CLASSES=y
CONFIG_FEATURE_READLINK_FOLLOW=y
16 changes: 16 additions & 0 deletions vendor/uutils-coreutils/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Note: keep in mind that this file is completely ignored in several use-cases
# like e.g. out-of-tree builds ( https://github.com/rust-lang/cargo/issues/2930 ).
# For this reason this file should be avoided as much as possible when there are alternatives.

[target.x86_64-unknown-redox]
linker = "x86_64-unknown-redox-gcc"
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
[target.riscv64gc-unknown-linux-musl]
rustflags = ["-C", "target-feature=+crt-static"]
[target.'cfg(target_env = "msvc")']
rustflags = ["-C", "target-feature=+crt-static"]

[env]
# See feat_external_libstdbuf in src/uu/stdbuf/Cargo.toml
LIBSTDBUF_DIR = "/usr/local/libexec/coreutils"
6 changes: 6 additions & 0 deletions vendor/uutils-coreutils/.clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
allow-mixed-uninlined-format-args = false
array-size-threshold = 65538
avoid-breaking-exported-api = false
check-private-items = true
cognitive-complexity-threshold = 24
missing-docs-in-crate-items = true
13 changes: 13 additions & 0 deletions vendor/uutils-coreutils/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
comment: false

coverage:
status:
project:
default:
informational: true
changes:
default:
informational: true
patch:
default:
informational: true
3 changes: 3 additions & 0 deletions vendor/uutils-coreutils/.codespell.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
ignore-words-list = crate
skip = ./.git/**,./.vscode/cspell.dictionaries/**,./target/**,./tests/fixtures/**
19 changes: 19 additions & 0 deletions vendor/uutils-coreutils/.config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[profile.ci]
retries = 2
status-level = "all"
final-status-level = "skip"
failure-output = "immediate-final"
fail-fast = false

[profile.ci.junit]
path = "junit.xml"

[profile.coverage]
retries = 0
status-level = "all"
final-status-level = "skip"
failure-output = "immediate-final"
fail-fast = false

[profile.coverage.junit]
path = "junit.xml"
36 changes: 36 additions & 0 deletions vendor/uutils-coreutils/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04

# install gnu coreutils test dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
attr \
autoconf \
automake \
autopoint \
bison \
g++ \
gcc \
gdb \
gperf \
libacl1-dev \
libattr1-dev \
libcap-dev \
libexpect-perl \
libselinux1-dev \
libsystemd-dev \
python3-pyinotify \
quilt \
texinfo \
valgrind \
&& rm -rf /var/lib/apt/lists/*

# install dependencies for uutils
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
clang \
gdb \
python3-pip \
&& rm -rf /var/lib/apt/lists/*

# pre-commit
RUN pip3 install --break-system-packages pre-commit
50 changes: 50 additions & 0 deletions vendor/uutils-coreutils/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "uutils-devcontainer",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/rust:1":
{
"version": "latest",
"profile": "default",
"components": "llvm-tools-preview"
}
},
"onCreateCommand": {
"install pre-commit hooks": "pre-commit install",
"update permissions for gnu coreutils volume": "sudo chown vscode:vscode ${containerWorkspaceFolder}/../gnu"
},
"mounts": [
{
"source": "devcontainer-gnu-coreutils-${devcontainerId}",
"target": "${containerWorkspaceFolder}/../gnu",
"type": "volume"
}
],
"customizations": {
"vscode": {
"extensions": [
"streetsidesoftware.code-spell-checker",
"foxundermoon.shell-format",
"ms-vscode.cpptools"
],
"settings": {
"rust-analyzer.check.command": "clippy",
"rust-analyzer.debug.engine": "ms-vscode.cpptools",
"rust-analyzer.debug.engineSettings": {
"cppdbg": {
"miDebuggerPath": "rust-gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
]
}
}
}
}
}
}
67 changes: 67 additions & 0 deletions vendor/uutils-coreutils/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# EditorConfig (is awesome!; ref: http://EditorConfig.org; v2022.02.11 [rivy])
# spell-checker:ignore akefile shellcheck vcproj

# * top-most EditorConfig file
root = true

[*]
# default ~ utf-8, unix-style newlines with a newline ending every file, 4 space indentation
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 100
trim_trailing_whitespace = true

[{[Mm]akefile{,.*},*.{mak,mk,[Mm][Aa][Kk],[Mm][Kk]},[Gg][Nn][Uu]makefile}]
# makefiles ~ TAB-style indentation
indent_style = tab

[*.bash]
# `bash` shell scripts
indent_size = 4
indent_style = space
# * ref: <https://github.com/foxundermoon/vs-shell-format/blob/bc56a8e367b04bbf7d9947b767dc82516a6155b7/src/shFormat.ts>
# shell_variant = bash ## allow `shellcheck` to decide via script hash-bang/sha-bang line
switch_case_indent = true

[*.{bat,cmd,[Bb][Aa][Tt],[Cc][Mm][Dd]}]
# BAT/CMD ~ DOS/Win requires BAT/CMD files to have CRLF EOLNs
end_of_line = crlf

[*.{cjs,cjx,cts,ctx,js,jsx,mjs,mts,mtx,ts,tsx,json,jsonc}]
# js/ts/json ~ Prettier/XO-style == TAB indention + SPACE alignment
indent_size = 2
indent_style = tab

[*.go]
# go ~ TAB-style indentation (SPACE-style alignment); ref: <https://blog.golang.org/gofmt>@@<https://archive.is/wip/9B6FC>
indent_style = tab

[*.{markdown,md,mkd,[Mm][Dd],[Mm][Kk][Dd],[Mm][Dd][Oo][Ww][Nn],[Mm][Kk][Dd][Oo][Ww][Nn],[Mm][Aa][Rr][Kk][Dd][Oo][Ww][Nn]}]
# markdown
indent_size = 2
indent_style = space

[*.sh]
# POSIX shell scripts
indent_size = 4
indent_style = space
# * ref: <https://github.com/foxundermoon/vs-shell-format/blob/bc56a8e367b04bbf7d9947b767dc82516a6155b7/src/shFormat.ts>
# shell_variant = posix ## allow `shellcheck` to decide via script hash-bang/sha-bang line
switch_case_indent = true

[*.{sln,vc{,x}proj{,.*},[Ss][Ln][Nn],[Vv][Cc]{,[Xx]}[Pp][Rr][Oo][Jj]{,.*}}]
# MSVC sln/vcproj/vcxproj files, when used, will persistently revert to CRLF EOLNs and eat final EOLs
end_of_line = crlf
insert_final_newline = false

[*.toml]
indent_size = 2
indent_style = space

[*.{yaml,yml,[Yy][Mm][Ll],[Yy][Aa][Mm][Ll]}]
# YAML
indent_size = 2
indent_style = space
7 changes: 7 additions & 0 deletions vendor/uutils-coreutils/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# spell-checker:ignore direnv

if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
fi

use flake
1 change: 1 addition & 0 deletions vendor/uutils-coreutils/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: uutils
28 changes: 28 additions & 0 deletions vendor/uutils-coreutils/.github/fluent_linter_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
ID01:
enabled: true
exclusions:
messages: []
files: []
ID02:
enabled: true
min_length: 7
VC:
disabled: true
# Disable: # TE01: single quote instead of apostrophe for genitive (foo's)
TE01:
enabled: false
# TE03: single quotes ('foo')
TE03:
enabled: false
# TE04: Double-quoted strings should use Unicode " instead of "foo".
TE04:
enabled: false
# Disable: TE05: 3 dots for ellipsis ("...")
TE05:
enabled: false
# Should be fixed
VC01:
disabled: true
ID03:
enabled: true
19 changes: 19 additions & 0 deletions vendor/uutils-coreutils/.github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# spell-checker:ignore (labels) wontfix
# Number of days of inactivity before an issue/PR becomes stale
daysUntilStale: 1095
# Number of days of inactivity before a stale issue/PR is closed
daysUntilClose: 1095
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
- "Good first bug"
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
Loading