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
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
renovate[bot]
2c4c95d09b
chore(deps): update rust crate smallvec to 1.13.2
2024-05-02 07:01:07 +00:00
Daniel Hofstetter
64c574381e
Merge pull request #6318 from uutils/renovate/selinux-0.x
...
chore(deps): update rust crate selinux to 0.4.4
2024-05-02 08:59:57 +02:00
renovate[bot]
3a87db9310
chore(deps): update rust crate sha1 to 0.10.6
2024-05-02 06:14:06 +00:00
renovate[bot]
42beae3443
chore(deps): update rust crate selinux to 0.4.4
2024-05-02 06:13:58 +00:00
Daniel Hofstetter
6abfc7ea58
Merge pull request #6317 from uutils/renovate/redox_syscall-0.x
...
chore(deps): update rust crate redox_syscall to 0.5.1
2024-05-02 08:11:57 +02:00
Daniel Hofstetter
9fb44cd41b
Merge pull request #6316 from uutils/renovate/rand_pcg-0.x
...
chore(deps): update rust crate rand_pcg to 0.3.1
2024-05-02 07:57:08 +02:00
Daniel Hofstetter
1176536e17
Merge pull request #6312 from uutils/renovate/rand_core-0.x
...
chore(deps): update rust crate rand_core to 0.6.4
2024-05-02 07:12:55 +02:00
renovate[bot]
ff68493632
chore(deps): update rust crate redox_syscall to 0.5.1
2024-05-02 05:09:58 +00:00
Daniel Hofstetter
49f9f00f2e
Merge pull request #6311 from uutils/renovate/pretty_assertions-1.x
...
chore(deps): update rust crate pretty_assertions to 1.4.0
2024-05-02 07:08:40 +02:00
renovate[bot]
fc7da18e29
chore(deps): update rust crate rand_pcg to 0.3.1
2024-05-02 05:06:43 +00:00