Skip to content

Commit 9016b78

Browse files
committed
Merge branch 'origin/main' into fix-cksum-sha3-debug-8933
Resolved merge conflicts in src/uu/cksum/src/cksum.rs by keeping SHA3/SHAKE algorithm support from the feature branch. Conflicts resolved: - Kept imports for HashAlgorithm, LEGACY_ALGORITHMS, detect_algo - Kept SHA3/SHAKE length handling logic - Maintained --length support for sha3, shake128, shake256
2 parents 2308a55 + 6cf658c commit 9016b78

Some content is hidden

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

75 files changed

+3659
-1162
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
[target.x86_64-unknown-redox]
66
linker = "x86_64-unknown-redox-gcc"
7+
[target.aarch64-unknown-linux-gnu]
8+
linker = "aarch64-linux-gnu-gcc"
79

810
[env]
911
# See feat_external_libstdbuf in src/uu/stdbuf/Cargo.toml

.github/workflows/CICD.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
- name: Install/setup prerequisites
123123
shell: bash
124124
run: |
125-
sudo apt-get -y update ; sudo apt-get -y install libselinux1-dev
125+
sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu libselinux1-dev
126126
- name: Initialize workflow variables
127127
id: vars
128128
shell: bash
@@ -269,6 +269,8 @@ jobs:
269269
with:
270270
persist-credentials: false
271271
- uses: dtolnay/rust-toolchain@stable
272+
with:
273+
target: aarch64-unknown-linux-gnu
272274
- uses: taiki-e/install-action@nextest
273275
- uses: Swatinem/rust-cache@v2
274276
- name: Install/setup prerequisites
@@ -287,7 +289,10 @@ jobs:
287289
if [[ -d target ]]; then
288290
mv -T target target.cache
289291
fi
290-
# Actually do the build
292+
# Check that we don't cross-build uudoc
293+
# also do not try to generate manpages for part of hashsum
294+
make install-manpages PREFIX=/tmp/usr UTILS=true RUSTC_ARCH="--target aarch64-unknown-linux-gnu"
295+
# build (host)
291296
make build
292297
echo "Check that target directory will be ignored by backup tools"
293298
test -f target/CACHEDIR.TAG
@@ -549,12 +554,12 @@ jobs:
549554
previous_multisize=$(cat dl/size-result.json | jq -r '.[] | .multisize')
550555
check 'multicall binary' "$multisize" "$previous_multisize" 'size-result.json'
551556
- name: Upload the individual size result
552-
uses: actions/upload-artifact@v4
557+
uses: actions/upload-artifact@v5
553558
with:
554559
name: individual-size-result
555560
path: individual-size-result.json
556561
- name: Upload the size result
557-
uses: actions/upload-artifact@v4
562+
uses: actions/upload-artifact@v5
558563
with:
559564
name: size-result
560565
path: size-result.json
@@ -845,7 +850,7 @@ jobs:
845850
env:
846851
RUST_BACKTRACE: "1"
847852
- name: Archive executable artifacts
848-
uses: actions/upload-artifact@v4
853+
uses: actions/upload-artifact@v5
849854
with:
850855
name: ${{ env.PROJECT_NAME }}-${{ matrix.job.target }}${{ steps.vars.outputs.ARTIFACTS_SUFFIX }}
851856
path: target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}
@@ -961,17 +966,17 @@ jobs:
961966
HASH=$(sha1sum '${{ steps.vars.outputs.TEST_SUMMARY_FILE }}' | cut --delim=" " -f 1)
962967
echo "HASH=${HASH}" >> $GITHUB_OUTPUT
963968
- name: Reserve SHA1/ID of 'test-summary'
964-
uses: actions/upload-artifact@v4
969+
uses: actions/upload-artifact@v5
965970
with:
966971
name: "${{ steps.summary.outputs.HASH }}"
967972
path: "${{ steps.vars.outputs.TEST_SUMMARY_FILE }}"
968973
- name: Reserve test results summary
969-
uses: actions/upload-artifact@v4
974+
uses: actions/upload-artifact@v5
970975
with:
971976
name: busybox-test-summary
972977
path: "${{ steps.vars.outputs.TEST_SUMMARY_FILE }}"
973978
- name: Upload json results
974-
uses: actions/upload-artifact@v4
979+
uses: actions/upload-artifact@v5
975980
with:
976981
name: busybox-result.json
977982
path: ${{ steps.vars.outputs.TEST_SUMMARY_FILE }}
@@ -1054,17 +1059,17 @@ jobs:
10541059
HASH=$(sha1sum '${{ steps.vars.outputs.TEST_SUMMARY_FILE }}' | cut --delim=" " -f 1)
10551060
echo "HASH=${HASH}" >> $GITHUB_OUTPUT
10561061
- name: Reserve SHA1/ID of 'test-summary'
1057-
uses: actions/upload-artifact@v4
1062+
uses: actions/upload-artifact@v5
10581063
with:
10591064
name: "${{ steps.summary.outputs.HASH }}"
10601065
path: "${{ steps.vars.outputs.TEST_SUMMARY_FILE }}"
10611066
- name: Reserve test results summary
1062-
uses: actions/upload-artifact@v4
1067+
uses: actions/upload-artifact@v5
10631068
with:
10641069
name: toybox-test-summary
10651070
path: "${{ steps.vars.outputs.TEST_SUMMARY_FILE }}"
10661071
- name: Upload json results
1067-
uses: actions/upload-artifact@v4
1072+
uses: actions/upload-artifact@v5
10681073
with:
10691074
name: toybox-result.json
10701075
path: ${{ steps.vars.outputs.TEST_SUMMARY_FILE }}

.github/workflows/FixPR.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -77,49 +77,3 @@ jobs:
7777
add: Cargo.lock fuzz/Cargo.lock
7878
env:
7979
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80-
81-
code_format:
82-
# Recheck/refresh code formatting
83-
if: github.event.pull_request.merged == true ## only for PR merges
84-
name: Update/format
85-
runs-on: ${{ matrix.job.os }}
86-
strategy:
87-
fail-fast: false
88-
matrix:
89-
job:
90-
- { os: ubuntu-latest , features: feat_os_unix }
91-
steps:
92-
- uses: actions/checkout@v5
93-
with:
94-
persist-credentials: false
95-
- name: Initialize job variables
96-
id: vars
97-
shell: bash
98-
run: |
99-
# target-specific options
100-
# * CARGO_FEATURES_OPTION
101-
CARGO_FEATURES_OPTION='' ;
102-
if [ -n "${{ matrix.job.features }}" ]; then CARGO_FEATURES_OPTION='--features "${{ matrix.job.features }}"' ; fi
103-
echo "CARGO_FEATURES_OPTION=${CARGO_FEATURES_OPTION}" >> $GITHUB_OUTPUT
104-
- uses: dtolnay/rust-toolchain@master
105-
with:
106-
toolchain: stable
107-
components: rustfmt
108-
- uses: Swatinem/rust-cache@v2
109-
- name: "`cargo fmt`"
110-
shell: bash
111-
run: |
112-
cargo fmt
113-
- name: "`cargo fmt` tests"
114-
shell: bash
115-
run: |
116-
# `cargo fmt` of tests
117-
find tests -name "*.rs" -print0 | xargs -0 cargo fmt --
118-
- name: Commit any changes (to '${{ env.BRANCH_TARGET }}')
119-
uses: EndBug/add-and-commit@v9
120-
with:
121-
new_branch: ${{ env.BRANCH_TARGET }}
122-
default_author: github_actions
123-
message: "maint ~ rustfmt (`cargo fmt`)"
124-
env:
125-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/GnuTests.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ jobs:
132132
133133
### Upload artifacts
134134
- name: Upload full json results
135-
uses: actions/upload-artifact@v4
135+
uses: actions/upload-artifact@v5
136136
with:
137137
name: gnu-full-result
138138
path: ${{ env.TEST_FULL_SUMMARY_FILE }}
139139
- name: Upload root json results
140-
uses: actions/upload-artifact@v4
140+
uses: actions/upload-artifact@v5
141141
with:
142142
name: gnu-root-full-result
143143
path: ${{ env.TEST_ROOT_FULL_SUMMARY_FILE }}
@@ -147,7 +147,7 @@ jobs:
147147
# Compress logs before upload (fails otherwise)
148148
gzip gnu/tests/*/*.log
149149
- name: Upload test logs
150-
uses: actions/upload-artifact@v4
150+
uses: actions/upload-artifact@v5
151151
with:
152152
name: test-logs
153153
path: |
@@ -268,12 +268,12 @@ jobs:
268268
# Copy the test directory now
269269
rsync -v -a -e ssh lima-default:~/work/gnu/tests/ ./gnu/tests-selinux/
270270
- name: Upload SELinux json results
271-
uses: actions/upload-artifact@v4
271+
uses: actions/upload-artifact@v5
272272
with:
273273
name: selinux-gnu-full-result
274274
path: ${{ env.TEST_SELINUX_FULL_SUMMARY_FILE }}
275275
- name: Upload SELinux root json results
276-
uses: actions/upload-artifact@v4
276+
uses: actions/upload-artifact@v5
277277
with:
278278
name: selinux-root-gnu-full-result
279279
path: ${{ env.TEST_SELINUX_ROOT_FULL_SUMMARY_FILE }}
@@ -283,7 +283,7 @@ jobs:
283283
# Compress logs before upload (fails otherwise)
284284
gzip gnu/tests-selinux/*/*.log
285285
- name: Upload SELinux test logs
286-
uses: actions/upload-artifact@v4
286+
uses: actions/upload-artifact@v5
287287
with:
288288
name: selinux-test-logs
289289
path: |
@@ -326,25 +326,25 @@ jobs:
326326
workflow_conclusion: completed ## continually recalibrates to last commit of default branch with a successful GnuTests (ie, "self-heals" from GnuTest regressions, but needs more supervision for/of regressions)
327327
path: "reference"
328328
- name: Download full json results
329-
uses: actions/download-artifact@v5
329+
uses: actions/download-artifact@v6
330330
with:
331331
name: gnu-full-result
332332
path: results
333333
merge-multiple: true
334334
- name: Download root json results
335-
uses: actions/download-artifact@v5
335+
uses: actions/download-artifact@v6
336336
with:
337337
name: gnu-root-full-result
338338
path: results
339339
merge-multiple: true
340340
- name: Download selinux json results
341-
uses: actions/download-artifact@v5
341+
uses: actions/download-artifact@v6
342342
with:
343343
name: selinux-gnu-full-result
344344
path: results
345345
merge-multiple: true
346346
- name: Download selinux root json results
347-
uses: actions/download-artifact@v5
347+
uses: actions/download-artifact@v6
348348
with:
349349
name: selinux-root-gnu-full-result
350350
path: results
@@ -393,17 +393,17 @@ jobs:
393393
HASH=$(sha1sum '${{ steps.vars.outputs.TEST_SUMMARY_FILE }}' | cut --delim=" " -f 1)
394394
outputs HASH
395395
- name: Upload SHA1/ID of 'test-summary'
396-
uses: actions/upload-artifact@v4
396+
uses: actions/upload-artifact@v5
397397
with:
398398
name: "${{ steps.summary.outputs.HASH }}"
399399
path: "${{ steps.vars.outputs.TEST_SUMMARY_FILE }}"
400400
- name: Upload test results summary
401-
uses: actions/upload-artifact@v4
401+
uses: actions/upload-artifact@v5
402402
with:
403403
name: test-summary
404404
path: "${{ steps.vars.outputs.TEST_SUMMARY_FILE }}"
405405
- name: Upload aggregated json results
406-
uses: actions/upload-artifact@v4
406+
uses: actions/upload-artifact@v5
407407
with:
408408
name: aggregated-result
409409
path: ${{ steps.vars.outputs.AGGREGATED_SUMMARY_FILE }}
@@ -455,7 +455,7 @@ jobs:
455455
fi
456456
- name: Upload comparison log (for GnuComment workflow)
457457
if: success() || failure() # run regardless of prior step success/failure
458-
uses: actions/upload-artifact@v4
458+
uses: actions/upload-artifact@v5
459459
with:
460460
name: comment
461461
path: reference/comment/

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
key: ${{ matrix.arch }}_${{ matrix.target}}_${{ steps.read_rustc_hash.outputs.content }}_${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }}_v3
196196
- name: archive any output (error screenshots)
197197
if: always()
198-
uses: actions/upload-artifact@v4
198+
uses: actions/upload-artifact@v5
199199
with:
200200
name: test_output_${{ env.AVD_CACHE_KEY }}
201201
path: output

.github/workflows/fuzzing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
path: |
199199
fuzz/corpus/${{ matrix.test-target.name }}
200200
- name: Upload Stats
201-
uses: actions/upload-artifact@v4
201+
uses: actions/upload-artifact@v5
202202
with:
203203
name: fuzz-stats-${{ matrix.test-target.name }}
204204
path: |
@@ -215,7 +215,7 @@ jobs:
215215
with:
216216
persist-credentials: false
217217
- name: Download all stats
218-
uses: actions/download-artifact@v5
218+
uses: actions/download-artifact@v6
219219
with:
220220
path: fuzz/stats-artifacts
221221
pattern: fuzz-stats-*
@@ -309,7 +309,7 @@ jobs:
309309
run: |
310310
cat fuzzing_summary.md
311311
- name: Upload Summary
312-
uses: actions/upload-artifact@v4
312+
uses: actions/upload-artifact@v5
313313
with:
314314
name: fuzzing-summary
315315
path: fuzzing_summary.md

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ autogenerated
66
autogenerates
77
bitmask
88
bitwise
9+
bufferram
910
bytewise
1011
canonicalization
1112
canonicalize
@@ -28,6 +29,12 @@ denoland
2829
deque
2930
dequeue
3031
dev
32+
EINTR
33+
eintr
34+
nextest
35+
SIGUSR
36+
nonprinting
37+
multibyte
3138
devs
3239
discoverability
3340
duplicative
@@ -45,6 +52,7 @@ fileio
4552
filesystem
4653
filesystems
4754
flamegraph
55+
freeram
4856
fsxattr
4957
fullblock
5058
getfacl
@@ -123,6 +131,7 @@ shortcode
123131
shortcodes
124132
siginfo
125133
sigusr
134+
strcasecmp
126135
subcommand
127136
subexpression
128137
submodule
@@ -131,8 +140,10 @@ symlink
131140
symlinks
132141
syscall
133142
syscalls
143+
sysconf
134144
tokenize
135145
toolchain
146+
totalram
136147
truthy
137148
ucase
138149
unbuffered

.vscode/cspell.dictionaries/shell.wordlist.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ mountinfo
1313
mountpoint
1414
mtab
1515
nullglob
16+
17+
# * Signals
18+
SIGUSR
19+
SIGUSR1
20+
SIGUSR2
21+
SIGINT
22+
SIGTERM
23+
SIGKILL
24+
SIGSTOP
25+
SIGCONT
26+
SIGPIPE
27+
SIGALRM
28+
SIGCHLD
1629
passwd
1730
pipefail
1831
popd

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ advapi32-sys
88
aho-corasick
99
backtrace
1010
blake2b_simd
11+
12+
# * uutils project
13+
uutils
14+
coreutils
15+
uucore
16+
uutests
17+
ucmd
18+
uumain
19+
rlimit
20+
mkfifo
21+
urandom
22+
uchild
23+
ello
1124
bstr
1225
bytecount
1326
byteorder

0 commit comments

Comments
 (0)