Skip to content

Commit e3faa2a

Browse files
authored
Merge branch 'uutils:main' into main
2 parents 0962a1a + 5eb8144 commit e3faa2a

File tree

24 files changed

+830
-264
lines changed

24 files changed

+830
-264
lines changed

.github/workflows/CICD.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ jobs:
321321
# Check that the utils are present
322322
test -f /tmp/usr/local/bin/tty
323323
# Check that the manpage is present
324-
test -f /tmp/usr/local/share/man/man1/whoami.1
324+
test -f /tmp/usr/local/share/man/man1/md5sum.1
325325
# Check that the completion is present
326-
test -f /tmp/usr/local/share/zsh/site-functions/_install
326+
test -f /tmp/usr/local/share/zsh/site-functions/_b2sum
327327
test -f /tmp/usr/local/share/bash-completion/completions/head
328328
test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish
329329
env:
@@ -387,7 +387,6 @@ jobs:
387387
test -h /tmp/usr/local/bin/sha512sum
388388
test -h /tmp/usr/local/bin/shake128sum
389389
test -h /tmp/usr/local/bin/shake256sum
390-
391390
build_rust_stable:
392391
name: Build/stable
393392
needs: [ min_version, deps ]
@@ -1294,20 +1293,40 @@ jobs:
12941293
shell: bash
12951294
run: cargo install cargo-codspeed --locked
12961295

1296+
- name: Get benchmark list
1297+
id: benchmark_list
1298+
shell: bash
1299+
run: |
1300+
echo "Finding all utilities with benchmarks..."
1301+
benchmark_packages=""
1302+
for bench_dir in $(ls -d src/uu/*/benches 2>/dev/null); do
1303+
prog_dir=$(dirname "$bench_dir")
1304+
prog_name=$(basename "$prog_dir")
1305+
echo "Found benchmarks for uu_$prog_name"
1306+
benchmark_packages="$benchmark_packages uu_$prog_name"
1307+
done
1308+
echo "benchmark_packages=${benchmark_packages}" >> $GITHUB_OUTPUT
1309+
echo "Found benchmark packages:${benchmark_packages}"
1310+
1311+
- name: Build benchmarks
1312+
shell: bash
1313+
run: |
1314+
echo "Building benchmarks for packages: ${{ steps.benchmark_list.outputs.benchmark_packages }}"
1315+
for package in ${{ steps.benchmark_list.outputs.benchmark_packages }}; do
1316+
echo "Building benchmarks for $package"
1317+
cargo codspeed build -p $package
1318+
done
1319+
12971320
- name: Run benchmarks
12981321
uses: CodSpeedHQ/action@v4
12991322
env:
13001323
CODSPEED_LOG: debug
13011324
with:
13021325
mode: instrumentation
13031326
run: |
1304-
# Find all utilities with benchmarks and run them individually
1305-
echo "Starting CodSpeed benchmark collection..."
1306-
for bench_dir in $(ls -d src/uu/*/benches 2>/dev/null); do
1307-
prog_dir=$(dirname "$bench_dir")
1308-
prog_name=$(basename "$prog_dir")
1309-
echo "Processing benchmarks for uu_$prog_name"
1310-
cargo codspeed build -p uu_$prog_name
1311-
cargo codspeed run -p uu_$prog_name
1327+
echo "Running benchmarks for packages: ${{ steps.benchmark_list.outputs.benchmark_packages }}"
1328+
for package in ${{ steps.benchmark_list.outputs.benchmark_packages }}; do
1329+
echo "Running benchmarks for $package"
1330+
cargo codspeed run -p $package
13121331
done
13131332
token: ${{ secrets.CODSPEED_TOKEN }}

.github/workflows/GnuTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ env:
2929
TEST_ROOT_FULL_SUMMARY_FILE: 'gnu-root-full-result.json'
3030
TEST_SELINUX_FULL_SUMMARY_FILE: 'selinux-gnu-full-result.json'
3131
TEST_SELINUX_ROOT_FULL_SUMMARY_FILE: 'selinux-root-gnu-full-result.json'
32-
REPO_GNU_REF: "v9.7"
32+
REPO_GNU_REF: "v9.8"
3333

3434
jobs:
3535
native:

Cargo.lock

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

GNUmakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,13 +398,13 @@ distclean: clean
398398
ifeq ($(MANPAGES),y)
399399
manpages: build-coreutils
400400
mkdir -p $(BUILDDIR)/man/
401-
$(foreach prog, $(INSTALLEES), \
401+
$(foreach prog, $(INSTALLEES) $(HASHSUM_PROGS), \
402402
$(BUILDDIR)/coreutils manpage $(prog) > $(BUILDDIR)/man/$(PROG_PREFIX)$(prog).1 $(newline) \
403403
)
404404

405405
install-manpages: manpages
406406
mkdir -p $(DESTDIR)$(DATAROOTDIR)/man/man1
407-
$(foreach prog, $(INSTALLEES), \
407+
$(foreach prog, $(INSTALLEES) $(HASHSUM_PROGS), \
408408
$(INSTALL) -m 644 $(BUILDDIR)/man/$(PROG_PREFIX)$(prog).1 $(DESTDIR)$(DATAROOTDIR)/man/man1/ $(newline) \
409409
)
410410
else
@@ -414,7 +414,7 @@ endif
414414
ifeq ($(COMPLETIONS),y)
415415
completions: build-coreutils
416416
mkdir -p $(BUILDDIR)/completions/zsh $(BUILDDIR)/completions/bash $(BUILDDIR)/completions/fish
417-
$(foreach prog, $(INSTALLEES), \
417+
$(foreach prog, $(INSTALLEES) $(HASHSUM_PROGS) , \
418418
$(BUILDDIR)/coreutils completion $(prog) zsh > $(BUILDDIR)/completions/zsh/_$(PROG_PREFIX)$(prog) $(newline) \
419419
$(BUILDDIR)/coreutils completion $(prog) bash > $(BUILDDIR)/completions/bash/$(PROG_PREFIX)$(prog) $(newline) \
420420
$(BUILDDIR)/coreutils completion $(prog) fish > $(BUILDDIR)/completions/fish/$(PROG_PREFIX)$(prog).fish $(newline) \
@@ -424,7 +424,7 @@ install-completions: completions
424424
mkdir -p $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions
425425
mkdir -p $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions
426426
mkdir -p $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d
427-
$(foreach prog, $(INSTALLEES), \
427+
$(foreach prog, $(INSTALLEES) $(HASHSUM_PROGS) , \
428428
$(INSTALL) -m 644 $(BUILDDIR)/completions/zsh/_$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/ $(newline) \
429429
$(INSTALL) -m 644 $(BUILDDIR)/completions/bash/$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/ $(newline) \
430430
$(INSTALL) -m 644 $(BUILDDIR)/completions/fish/$(PROG_PREFIX)$(prog).fish $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d/ $(newline) \

deny.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ allow = [
2727
"CC0-1.0",
2828
"Unicode-3.0",
2929
"Zlib",
30+
"MPL-2.0",
3031
]
3132
confidence-threshold = 0.8
3233

@@ -106,6 +107,8 @@ skip = [
106107
{ name = "rand_core", version = "0.6.4" },
107108
# utmp-classic
108109
{ name = "zerocopy", version = "0.7.35" },
110+
# divans/codspeed tooling
111+
{ name = "nix", version = "0.29.0" },
109112
]
110113
# spell-checker: enable
111114

fuzz/Cargo.lock

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

src/uu/chmod/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ path = "src/chmod.rs"
2020
[dependencies]
2121
clap = { workspace = true }
2222
thiserror = { workspace = true }
23-
uucore = { workspace = true, features = ["entries", "fs", "mode", "perms"] }
23+
uucore = { workspace = true, features = [
24+
"entries",
25+
"fs",
26+
"mode",
27+
"perms",
28+
"safe-traversal",
29+
] }
2430
fluent = { workspace = true }
2531

2632
[[bin]]

0 commit comments

Comments
 (0)