Debian Codegraph @

debian/README.Debian

raw
1 General
2 =======
3
4 coreutils is packaged in an unusual way. The binaries are published on
5 crates.io. As we don't want to package them separately, we have to do
6 some voodoo magic to make it more maintainable but not following
7 the typical debcargo process.
8
9 To be coinstallable with GNU coreutils, manpages are called rust-$PROGRAM.
10
11 Install
12 =======
13
14 Because rust-coreutils can easily break a system, it isn't replacing the
15 GNU coreutils.
16 Instead, we are installing the binaries in /usr/lib/cargo/bin/coreutils/.
17
18 Usage
19 =====
20
21 To use rust-coreutils instead GNU, use:
22
23 $ export PATH=/usr/lib/cargo/bin/coreutils/:$PATH
24
25 As rust-coreutils aims at being a drop-in replacement, it is possible
26 to override the GNU coreutils binaries.
27
28 We are NOT installing the binaries in /usr/lib/cargo/bin/ to avoid unexpected errors
29 in case users already added /usr/lib/cargo/bin/ in their PATH to get fd or others binaries.
30
31 Zsh-completion
32 ==============
33
34 Add:
35
36 fpath=(/usr/share/zsh/site-functions/rust-coreutils/ $fpath)
37
38 to your ~/.zshrc
39
40 And maybe run:
41
42 rm -f ~/.zcompdump; compinit
43
44 New upstream version
45 ====================
46
47 1. Check for new upstream versions:
48
49 uscan --verbose --no-download
50
51 2. Repack with the new version:
52
53 debian/repack.sh <version>
54
55 For example:
56 debian/repack.sh 0.8.0
57
58 If the patches do not apply, you will have to do
59 cd build/coreutils
60 quilt push -f
61 and do the rebase dance.
62
63 For now, we are following upstream version.
64 If one day, we want to replace GNU/coreutils package with this one,
65 we will have to follow the version of the GNU version as we have some packages
66 having an explicit minimal dep (ex: initramfs-tools-core, xinit, initscripts)
67
68 -- Sylvestre Ledru <[email protected]>, Mon, 07 Apr 2026 12:00:00 +0200