Skip to content

Commit 602e7b0

Browse files
authored
Merge branch 'main' into patch-3
2 parents b08e985 + e6467b1 commit 602e7b0

File tree

94 files changed

+4539
-758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+4539
-758
lines changed

.busybox-config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ CONFIG_FEATURE_FANCY_HEAD=y
22
CONFIG_UNICODE_SUPPORT=y
33
CONFIG_DESKTOP=y
44
CONFIG_LONG_OPTS=y
5+
CONFIG_FEATURE_SORT_BIG=y
6+
CONFIG_FEATURE_CATV=y
7+
CONFIG_FEATURE_CATN=y
8+
CONFIG_FEATURE_TR_CLASSES=y
9+
CONFIG_FEATURE_READLINK_FOLLOW=y

.github/workflows/CICD.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,14 +502,14 @@ jobs:
502502
--arg multisize "$SIZE_MULTI" \
503503
'{($date): { sha: $sha, size: $size, multisize: $multisize, }}' > size-result.json
504504
- name: Download the previous individual size result
505-
uses: dawidd6/action-download-artifact@v11
505+
uses: dawidd6/action-download-artifact@v12
506506
with:
507507
workflow: CICD.yml
508508
name: individual-size-result
509509
repo: uutils/coreutils
510510
path: dl
511511
- name: Download the previous size result
512-
uses: dawidd6/action-download-artifact@v11
512+
uses: dawidd6/action-download-artifact@v12
513513
with:
514514
workflow: CICD.yml
515515
name: size-result

.github/workflows/GnuTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
sudo locale-gen --keep-existing fa_IR.UTF-8 # Iran
9292
sudo locale-gen --keep-existing am_ET.UTF-8 # Ethiopia
9393
sudo locale-gen --keep-existing th_TH.UTF-8 # Thailand
94+
sudo locale-gen --keep-existing zh_CN.GB18030 # China
9495
9596
sudo update-locale
9697
echo "After:"
@@ -343,7 +344,7 @@ jobs:
343344
path: 'uutils'
344345
persist-credentials: false
345346
- name: Retrieve reference artifacts
346-
uses: dawidd6/action-download-artifact@v11
347+
uses: dawidd6/action-download-artifact@v12
347348
# ref: <https://github.com/dawidd6/action-download-artifact>
348349
continue-on-error: true ## don't break the build for missing reference artifacts (may be expired or just not generated yet)
349350
with:

.vscode/cspell.dictionaries/acronyms+names.wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ aarch
33
AIX
44
ASLR # address space layout randomization
55
AST # abstract syntax tree
6+
CATN # busybox cat -n feature flag
7+
CATV # busybox cat -v feature flag
68
CICD # continuous integration/deployment
79
CPU
810
CPUs

.vscode/cspell.dictionaries/jargon.wordlist.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
AFAICT
2+
asimd
3+
ASIMD
24
alloc
35
arity
46
autogenerate
@@ -71,6 +73,7 @@ hardlink
7173
hardlinks
7274
hasher
7375
hashsums
76+
hwcaps
7477
infile
7578
iflag
7679
iflags
@@ -97,6 +100,7 @@ nocache
97100
nocreat
98101
noctty
99102
noerror
103+
noexec
100104
nofollow
101105
nolinks
102106
nonblock
@@ -149,6 +153,8 @@ tokenize
149153
toolchain
150154
totalram
151155
truthy
156+
tunables
157+
TUNABLES
152158
ucase
153159
unbuffered
154160
udeps

.vscode/cspell.dictionaries/workspace.wordlist.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,22 @@ getcwd
364364
weblate
365365
algs
366366

367+
# * stty terminal flags
368+
brkint
369+
cstopb
370+
decctlq
371+
echoctl
372+
echoe
373+
echoke
374+
ignbrk
375+
ignpar
376+
icrnl
377+
isig
378+
istrip
379+
litout
380+
opost
381+
parodd
382+
367383
# translation tests
368384
CLICOLOR
369385
erreur

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ crates is as follows:
4545
- `Cargo.toml`
4646
- `src/main.rs`: contains only a single macro call
4747
- `src/<util name>.rs`: the actual code for the utility
48-
- `<util name>.md`: the documentation for the utility
48+
- `locales/en-US.ftl`: the util's strings
49+
- `locales/fr-FR.ftl`: French translation of the util's strings
4950

5051
We have separated repositories for crates that we maintain but also publish for
5152
use by others:

Cargo.lock

Lines changed: 27 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,6 @@ should_panic_without_expect = "allow" # 2
667667
doc_markdown = "allow"
668668
unused_self = "allow"
669669
enum_glob_use = "allow"
670-
needless_raw_string_hashes = "allow"
671670
unreadable_literal = "allow"
672671
unnested_or_patterns = "allow"
673672
implicit_hasher = "allow"

GNUmakefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ TOYBOX_SRC := $(TOYBOX_ROOT)/toybox-$(TOYBOX_VER)
6262

6363
#------------------------------------------------------------------------
6464
# Detect the host system.
65-
# On Windows the environment already sets OS = Windows_NT.
65+
# On Windows uname -s might return MINGW_NT-* or CYGWIN_NT-*.
6666
# Otherwise let it default to the kernel name returned by uname -s
6767
# (Linux, Darwin, FreeBSD, …).
6868
#------------------------------------------------------------------------
69-
OS ?= $(shell uname -s)
69+
OS := $(shell uname -s)
7070

7171
# Windows does not allow symlink by default.
7272
# Allow to override LN for AppArmor.
73-
ifeq ($(OS),Windows_NT)
73+
ifneq (,$(findstring _NT,$(OS)))
7474
LN ?= ln -f
7575
endif
7676
LN ?= ln -sf
@@ -195,7 +195,7 @@ HASHSUM_PROGS := \
195195

196196
$(info Detected OS = $(OS))
197197

198-
ifneq ($(OS),Windows_NT)
198+
ifeq (,$(findstring MINGW,$(OS)))
199199
PROGS += $(UNIX_PROGS)
200200
endif
201201
ifeq ($(SELINUX_ENABLED),1)
@@ -450,8 +450,12 @@ install: build install-manpages install-completions install-locales
450450
mkdir -p $(INSTALLDIR_BIN)
451451
ifneq (,$(and $(findstring stdbuf,$(UTILS)),$(findstring feat_external_libstdbuf,$(CARGOFLAGS))))
452452
mkdir -p $(DESTDIR)$(LIBSTDBUF_DIR)
453+
ifneq (,$(findstring CYGWIN,$(OS)))
454+
$(INSTALL) -m 755 $(BUILDDIR)/deps/stdbuf.dll $(DESTDIR)$(LIBSTDBUF_DIR)/libstdbuf.dll
455+
else
453456
$(INSTALL) -m 755 $(BUILDDIR)/deps/libstdbuf.* $(DESTDIR)$(LIBSTDBUF_DIR)/
454457
endif
458+
endif
455459
ifeq (${MULTICALL}, y)
456460
$(INSTALL) -m 755 $(BUILDDIR)/coreutils $(INSTALLDIR_BIN)/$(PROG_PREFIX)coreutils
457461
$(foreach prog, $(filter-out coreutils, $(INSTALLEES)), \
@@ -472,7 +476,7 @@ else
472476
endif
473477

474478
uninstall:
475-
ifneq ($(OS),Windows_NT)
479+
ifeq (,$(findstring MINGW,$(OS)))
476480
rm -f $(DESTDIR)$(LIBSTDBUF_DIR)/libstdbuf.*
477481
-rm -d $(DESTDIR)$(LIBSTDBUF_DIR) 2>/dev/null || true
478482
endif

0 commit comments

Comments
 (0)