Commit graph

12816 commits

Author SHA1 Message Date
Sylvestre Ledru
421f3a9371
Merge pull request #6349 from jadijadi/disabling-xattrs-openbsd
Disabling xattrs tests on OpenBSD
2024-05-05 21:52:16 +02:00
ahmadabd
a3d05e5945 fmt: value of minlength should not be negative
closes #6354
2024-05-05 21:08:38 +02:00
Daniel Hofstetter
f9b4fada14
Merge pull request #6355 from BenWiederhake/dev-fmt-repeated-args
fmt: accept repeated arguments
2024-05-05 17:44:14 +02:00
Ben Wiederhake
a13949b4ba fmt: add basic tests for split-only, prefix, and skip-prefix args 2024-05-05 17:03:28 +02:00
Ben Wiederhake
e76f92c212 fmt: accept repeated arguments 2024-05-05 16:13:46 +02:00
Daniel Hofstetter
c2d55b4f84
Merge pull request #6356 from lcheylus/clippy-openbsd
Disable clippy::assigning_clones on OpenBSD
2024-05-05 13:06:33 +02:00
Laurent Cheylus
14258b12ad
tail: disable clippy::assigning_clones on OpenBSD
- Avoid error on OpenBSD stable/7.5 with clippy (lint)
- assigning_clones added in Rust 1.78.0 (1.76 used on OpenBSD 7.5)
https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-05 11:36:35 +02:00
Laurent Cheylus
7a556a6e82
cp: disable clippy::assigning_clones on OpenBSD
- Avoid error on OpenBSD stable/7.5 with clippy (lint)
- assigning_clones added in Rust 1.78.0 (1.76 used on OpenBSD 7.5)
https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-05 11:36:35 +02:00
Laurent Cheylus
225a1052a7
df: disable clippy::assigning_clones on OpenBSD
- Avoid error on OpenBSD stable/7.5 with clippy (lint)
- assigning_clones added in Rust 1.78.0 (1.76 used on OpenBSD 7.5)
https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-05 11:36:35 +02:00
Daniel Hofstetter
945d20a9db
Merge pull request #6347 from uutils/renovate/zip-1.x
chore(deps): update rust crate zip to 1.1.4
2024-05-05 09:33:11 +02:00
Jadi
19d42c0339 Disabling xattrs function and tests on OpenBSD
The test_compare_xattrs test fails on OpenBSD because OpenBSD does
not support xattrs. Disabling this function and its test for
target_os = openbsd resolves the issue.

Fixes #6348
2024-05-05 09:08:35 +03:30
renovate[bot]
a5ac917c89
chore(deps): update rust crate zip to 1.1.4 2024-05-04 17:56:51 +00:00
Jalil David Salamé Messina
ff1a03c284 tr: don't truncate when not translating
An additional issue was found while reviewing #6340, check [this thread][1]. A summary is:

- `tr` ignores the `-t`/`--truncate-set1` flag when not translating
- Not translating is defined as `-d` was passed, or one set was passed.

[1]: https://github.com/uutils/coreutils/pull/6340#discussion_r1590007053
2024-05-04 19:55:49 +02:00
Jalil David Salamé Messina
3c47f27698 tr: calculate complement set early
Fixes #6163 and adds a test to verify that a regression is not caused.

Instead of inverting the conditions to check (e.g. delete characters **not** present in set1) invert
set1 when passed the complement flag (`-c`, `-C`, `--complement`). This is done by calculating set1
then "inverting" it by subtracting from the "full" (universe) set (0..=u8::MAX).

This fixes issue 6163 because it was caused by a combination of the `-c` and `-t` flag. `-c` is the
abovementioned complement flag and `-t`/`--truncate-set1` truncates set1 to the length of set2. What
happened in issue 6163 is that `set1={b'Y'}` and `set2={b'Z'}`, when truncated set1 stays the same
and we proceed. The problem is GNU utils does not consider set1 to be `{b'Y'}`, but the complement
of `{b'Y'}`, that is `U \ {b'Y'}={0, 1, ..., b'X', b'Z', ...}`, thus it is truncated to `{0}`.

We can verify this by doing: `printf '\0' | tr -c -t Y Z`, which prints `Z` to stdout as expected.

Additionally, by calculating the complement of set1 we no longer need to consider the complement
flag when doing the translate operation, this allows us to delete a lot of code.
2024-05-04 19:55:49 +02:00
Laurent Cheylus
3b96ff1d10 show-utils.sh: fix jq query to get coreutils deps
In jq query, the correct regex to select .id is ".*coreutils[ |@]\\d+\\.\\d+\\.\\d+"

- with cargo v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"
- with cargo v1.77, id = "path+file://<coreutils local directory>#coreutils@0.0.26"

Fix uutils/coreutils#6242

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-04 18:20:03 +02:00
Daniel Hofstetter
99d234af87 Bump fts-sys and selinux-sys
fts-sys: 0.2.4 -> 0.2.9
selinux-sys: 0.6.2 -> 0.6.9
2024-05-04 12:58:39 +02:00
Daniel Hofstetter
8ad4d783ea
Merge pull request #6338 from uutils/renovate/num-traits-0.x
chore(deps): update rust crate num-traits to 0.2.19
2024-05-04 07:11:03 +02:00
Daniel Hofstetter
c730e0da87
Merge pull request #6337 from uutils/renovate/self_cell-1.x
chore(deps): update rust crate self_cell to 1.0.4
2024-05-04 07:06:39 +02:00
renovate[bot]
bd7d213204
chore(deps): update rust crate num-traits to 0.2.19 2024-05-03 23:02:03 +00:00
renovate[bot]
c00369ba5e
chore(deps): update rust crate self_cell to 1.0.4 2024-05-03 16:54:38 +00:00
Daniel Hofstetter
451be5343f
Merge pull request #6336 from uutils/renovate/similar-2.x
fix(deps): update rust crate similar to 2.5.0
2024-05-03 09:12:21 +02:00
Daniel Hofstetter
c1942daeb1
Merge pull request #6328 from uutils/renovate/proc-macro2-1.x
fix(deps): update rust crate proc-macro2 to 1.0.81
2024-05-03 08:50:52 +02:00
Daniel Hofstetter
eb1616be9d
Merge pull request #6335 from uutils/renovate/wild-2.x
fix(deps): update rust crate wild to 2.2.1
2024-05-03 08:28:04 +02:00
renovate[bot]
13e482b9ac
fix(deps): update rust crate similar to 2.5.0 2024-05-03 06:14:30 +00:00
Daniel Hofstetter
a3c40dec55
Merge pull request #6334 from uutils/renovate/rand-0.x
fix(deps): update rust crate rand to 0.8.5
2024-05-03 08:11:54 +02:00
renovate[bot]
e5c9796c4b
fix(deps): update rust crate proc-macro2 to 1.0.81 2024-05-03 05:41:47 +00:00
renovate[bot]
c075d78efd
fix(deps): update rust crate wild to 2.2.1 2024-05-03 05:40:58 +00:00
Daniel Hofstetter
7ba7501844
Merge pull request #6329 from uutils/renovate/quote-1.x
fix(deps): update rust crate quote to 1.0.36
2024-05-03 07:39:55 +02:00
renovate[bot]
3eeda1e5e9
fix(deps): update rust crate rand to 0.8.5 2024-05-03 05:02:43 +00:00
Daniel Hofstetter
053196c188
Merge pull request #6327 from uutils/renovate/libfuzzer-sys-0.x
fix(deps): update rust crate libfuzzer-sys to 0.4.7
2024-05-03 07:01:43 +02:00
renovate[bot]
5f445871ea
fix(deps): update rust crate quote to 1.0.36 2024-05-03 05:01:12 +00:00
Piotr Kwiecinski
2d71b7c049 fix code coverage windows 2024-05-02 19:07:32 +02:00
Anirban Halder
c5a530f4a1
Changed `/sys/kernel/address_bits to /sys/kernel/profiling` in test_cp (#6294)
* Changed sys/kernel/address_bits to sys/kernel/profiling

* Added comments and fixed formatting

---------

Co-authored-by: Anirban <anirban@pop-os.localdomain>
2024-05-02 18:25:22 +02:00
Sylvestre Ledru
549868b31f
Merge pull request #6330 from cakebaker/clippy_fix_warnings_rust_1_78
clippy: fix warnings introduced with Rust 1.78
2024-05-02 18:15:09 +02:00
Daniel Hofstetter
19901055a2 clippy: fix warnings introduced with Rust 1.78 2024-05-02 16:47:44 +02:00
renovate[bot]
0dd5bd38ab
fix(deps): update rust crate libfuzzer-sys to 0.4.7 2024-05-02 12:27:08 +00:00
Daniel Hofstetter
1c0984911f
Merge pull request #6326 from uutils/renovate/libc-0.x
fix(deps): update rust crate libc to 0.2.154
2024-05-02 14:25:35 +02:00
renovate[bot]
64fd93308b
fix(deps): update rust crate libc to 0.2.154 2024-05-02 11:38:02 +00:00
Daniel Hofstetter
6c666123c1
Merge pull request #6325 from uutils/renovate/cpp-0.x
fix(deps): update rust crate cpp to 0.5.9
2024-05-02 13:37:43 +02:00
Daniel Hofstetter
6d64b2d990
Merge pull request #6324 from uutils/renovate/unindent-0.x
chore(deps): update rust crate unindent to 0.2.3
2024-05-02 13:37:03 +02:00
renovate[bot]
d9ac8a70c1
fix(deps): update rust crate cpp to 0.5.9 2024-05-02 09:48:51 +00:00
renovate[bot]
48c9fb5602
chore(deps): update rust crate unindent to 0.2.3 2024-05-02 09:48:44 +00:00
Daniel Hofstetter
4a1f89a05c
Merge pull request #6323 from uutils/renovate/time-0.x
chore(deps): update rust crate time to 0.3.36
2024-05-02 11:47:11 +02:00
renovate[bot]
a51ac3d069
chore(deps): update rust crate time to 0.3.36 2024-05-02 08:51:50 +00:00
Daniel Hofstetter
2fc40160fd
Merge pull request #6322 from uutils/renovate/thiserror-1.x
chore(deps): update rust crate thiserror to 1.0.59
2024-05-02 10:50:33 +02:00
renovate[bot]
3e1c9eb005
chore(deps): update rust crate thiserror to 1.0.59 2024-05-02 08:06:41 +00:00
Daniel Hofstetter
25d517b2be
Merge pull request #6321 from uutils/renovate/tempfile-3.x
chore(deps): update rust crate tempfile to 3.10.1
2024-05-02 10:05:09 +02:00
Daniel Hofstetter
8b7c063ba4
Merge pull request #6320 from uutils/renovate/smallvec-1.x
chore(deps): update rust crate smallvec to 1.13.2
2024-05-02 09:56:42 +02:00
Daniel Hofstetter
e024798b94
Merge pull request #6319 from uutils/renovate/sha1-0.x
chore(deps): update rust crate sha1 to 0.10.6
2024-05-02 09:09:18 +02:00
renovate[bot]
e76891726a
chore(deps): update rust crate tempfile to 3.10.1 2024-05-02 07:01:17 +00:00