Package: chawan Version: 0.4.0-4 Severity: minor Tags: patch Hi,
The package references an obsolete, nonstandard path, /usr/etc, looking for various bits of configuration. Even though it does not install any files under /usr/etc, there is no reason to reference anything under /usr/etc on Debian. The attached patch removes all references to /usr/etc.
From: Teemu Hukkanen <[email protected]> Date: Thu, 21 May 2026 01:51:25 +0300 Subject: [PATCH] Remove all references to /usr/etc /usr is not meant for configuration data in Debian, and is not defined in the FHS. Remove all references to /usr/etc. --- bonus/config.toml | 2 -- doc/cha-config.5 | 4 ++-- doc/cha-mailcap.5 | 2 +- doc/cha-mime.types.5 | 2 +- doc/config.md | 4 ++-- doc/mailcap.md | 2 +- doc/mime.types.md | 2 +- src/config/config.nim | 5 ++--- 8 files changed, 10 insertions(+), 13 deletions(-) diff --git a/bonus/config.toml b/bonus/config.toml index dd9b2ce..6c88216 100644 --- a/bonus/config.toml +++ b/bonus/config.toml @@ -33,14 +33,12 @@ #mailcap = [ # "~/.mailcap", # "/etc/mailcap", -# "/usr/etc/mailcap", # "/usr/local/etc/mailcap" #] #auto-mailcap = "$CHA_DIR/mailcap" #mime-types = [ # "~/.mime.types", # "/etc/mime.types", -# "/usr/etc/mime.types", # "/usr/local/etc/mime.types" #] #urimethodmap = [ diff --git a/doc/cha-config.5 b/doc/cha-config.5 index 0b4cc3d..37a30b0 100644 --- a/doc/cha-config.5 +++ b/doc/cha-config.5 @@ -270,7 +270,7 @@ External editor command. %s is substituted for the file name, %d for the line number. .RE .TP -mailcap = [\(lq\(ti/.mailcap\(rq, \(lq/etc/mailcap\(rq, \(lq/usr/etc/mailcap\(rq, \(lq/usr/local/etc/mailcap\(rq] +mailcap = [\(lq\(ti/.mailcap\(rq, \(lq/etc/mailcap\(rq, \(lq/usr/local/etc/mailcap\(rq] \f[B]array of paths\f[R] .RS Search path for mailcap files. @@ -278,7 +278,7 @@ See \f[B]cha\-mailcap\f[R](5) for details. Directories specified first have higher precedence. .RE .TP -mime\-types = [\(lq\(ti/.mime.types\(rq, \(lq/etc/mime.types\(rq, \(lq/usr/etc/mime.types\(rq, \(lq/usr/local/etc/mime.types\(rq] +mime\-types = [\(lq\(ti/.mime.types\(rq, \(lq/etc/mime.types\(rq, \(lq/usr/local/etc/mime.types\(rq] \f[B]array of paths\f[R] .RS Search path for mime.types files. diff --git a/doc/cha-mailcap.5 b/doc/cha-mailcap.5 index 97b5d4d..5615e3c 100644 --- a/doc/cha-mailcap.5 +++ b/doc/cha-mailcap.5 @@ -23,7 +23,7 @@ The search path for mailcap files is set by the configuration variable This matches the recommended path in the RFC: .IP .EX -$HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap +$HOME/.mailcap:/etc/mailcap:/usr/local/etc/mailcap .EE .PP By default, mailcap entries are only executed if the user types diff --git a/doc/cha-mime.types.5 b/doc/cha-mime.types.5 index de112a1..cb96926 100644 --- a/doc/cha-mime.types.5 +++ b/doc/cha-mime.types.5 @@ -18,7 +18,7 @@ are used. The default search path for mime.types files is: .IP .EX -$HOME/.mime.types:/etc/mime.types:/usr/etc/mime.types:/usr/local/etc/mime.types +$HOME/.mime.types:/etc/mime.types:/usr/local/etc/mime.types .EE .SS Format The mime.types file is a list of whitespace\-separated columns. diff --git a/doc/config.md b/doc/config.md index d23fb56..a368536 100644 --- a/doc/config.md +++ b/doc/config.md @@ -285,13 +285,13 @@ editor = "\${VISUAL:-\${EDITOR:-vi}}" : External editor command. %s is substituted for the file name, %d for the line number. -mailcap = ["~/.mailcap", "/etc/mailcap", "/usr/etc/mailcap", "/usr/local/etc/mailcap"] +mailcap = ["~/.mailcap", "/etc/mailcap", "/usr/local/etc/mailcap"] : **array of paths** : Search path for mailcap files. See [**cha-mailcap**](mailcap.md)(5) for details. Directories specified first have higher precedence. -mime-types = ["~/.mime.types", "/etc/mime.types", "/usr/etc/mime.types", "/usr/local/etc/mime.types"] +mime-types = ["~/.mime.types", "/etc/mime.types", "/usr/local/etc/mime.types"] : **array of paths** : Search path for mime.types files. See [**cha-mime.types**](mime.types.md)(5) diff --git a/doc/mailcap.md b/doc/mailcap.md index 0386be4..2bc8995 100644 --- a/doc/mailcap.md +++ b/doc/mailcap.md @@ -21,7 +21,7 @@ The search path for mailcap files is set by the configuration variable `external.mailcap`. This matches the recommended path in the RFC: ``` -$HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap +$HOME/.mailcap:/etc/mailcap:/usr/local/etc/mailcap ``` By default, mailcap entries are only executed if the user types `r` (run) diff --git a/doc/mime.types.md b/doc/mime.types.md index 99d72ba..77321d3 100644 --- a/doc/mime.types.md +++ b/doc/mime.types.md @@ -17,7 +17,7 @@ no mime.types file is found, the built-in MIME type associations are used. The default search path for mime.types files is: ``` -$HOME/.mime.types:/etc/mime.types:/usr/etc/mime.types:/usr/local/etc/mime.types +$HOME/.mime.types:/etc/mime.types:/usr/local/etc/mime.types ``` ## Format diff --git a/src/config/config.nim b/src/config/config.nim index 6819492..1ae3d87 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -2375,11 +2375,10 @@ const ConfigInitPath = { const ConfigInitPathSeq = { coMailcap: @[ - "~/.mailcap", "/etc/mailcap", "/usr/etc/mailcap", "/usr/local/etc/mailcap" + "~/.mailcap", "/etc/mailcap", "/usr/local/etc/mailcap" ], coMimeTypes: @[ - "~/.mime.types", "/etc/mime.types", "/usr/etc/mime.types", - "/usr/local/etc/mime.types" + "~/.mime.types", "/etc/mime.types", "/usr/local/etc/mime.types" ], coUrimethodmap: @["urimethodmap", "~/.urimethodmap", "/etc/urimethodmap"], coCgiDir: @["cgi-bin", "$CHA_LIBEXEC_DIR/cgi-bin"], -- 2.53.0

