Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947747 - app-shells/zsh-5.9-r6: Ebuild changes the etcdir from upstream default, zsh(1) page doesn't reflect this
Summary: app-shells/zsh-5.9-r6: Ebuild changes the etcdir from upstream default, zsh(1...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-09 00:25 UTC by Alexis
Modified: 2025-01-09 20:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis 2025-01-09 00:25:20 UTC
Opening this bug as a result of https://forums.gentoo.org/viewtopic-t-1172464-highlight-.html.

The ebuild for Zsh has a src_configure which contains the line:

```
--enable-etcdir="${EPREFIX}"/etc/zsh
```

However, the ebuild doesn't patch the zsh(1) man page to reflect this, with the opening line of the "STARTUP/SHUTDOWN FILES" section stating:

```
Commands are first read from /etc/zshenv; this cannot be overridden.
```

leading to the issue described in the above forum post.

The man page should be patched to instead say something like:

```
On Gentoo, commands are first read from /etc/zsh/zshenv; this cannot be overridden.
```

i'm happy to create a patch with whatever exact wording is deemed appropriate.

Reproducible: Always
Comment 1 Alexis 2025-01-09 00:44:19 UTC
(Of course, this won't help people reading the documentation on the Zsh site at https://zsh.sourceforge.io/Doc/Release/Files.html#Startup_002fShutdown-Files; i'm not sure what can be done about that. Perhaps the zsh binary needs a `--configuration` option to dump information about how it was configured, and the documentation can then tell people to refer to that?)
Comment 2 Mike Gilbert gentoo-dev 2025-01-09 20:14:06 UTC
I would personally prefer to drop the --enable-etcdir option and install the files in the location preferred by upstream.