Summary: | app-editors/nano: the split-usr use flag adds no value | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | William Hubbs <williamh> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=690294 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
0001-app-editors-nano-remove-the-split-usr-use-flag.patch
nano-4.4-r1.ebuild |
Description
William Hubbs
![]() Created attachment 588610 [details, diff]
0001-app-editors-nano-remove-the-split-usr-use-flag.patch
Here is the patch.
This may cause some small amount of confusion for anybody who has EDITOR=/usr/bin/nano set in their environment. I expect this population is quite tiny. Created attachment 588642 [details]
nano-4.4-r1.ebuild
If you forget about the previous patch, another possibility is to move
nano bac to /usr/bin as shown in this revbump.
This is nano-4.4-r1.ebuild.
Maybe there was some confusion back in 2019 regarding the purpose of USE="split-usr"? Rationally, the app-editors/nano ebuild should make this change: local myconfargs=( $(usex split-usr --bindir="${EPREFIX}/bin" '') ... ) This means, if USE="split-usr", then the nano binary will be installed to /bin/nano, where it can be used even without /usr mounted. However, if USE="-split-usr", then the nano binary will be installed to the autoconf-default location of /usr/bin/nano, which is expected to live in the same file system as /bin. Furthermore, on a merged-usr system (which is the intended use case for USE="-split-usr"), /bin is a symlink to /usr/bin, so /bin/nano will resolve to /usr/bin/nano, and thus either of those path names will work as EDITOR. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6afd21d9b4340c875b2739ee7d8f0275914921e1 commit 6afd21d9b4340c875b2739ee7d8f0275914921e1 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2022-12-06 19:01:05 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2022-12-06 19:03:25 +0000 app-editors/nano: drop /usr/bin/nano symlink Closes: https://bugs.gentoo.org/693244 Signed-off-by: Mike Gilbert <floppym@gentoo.org> app-editors/nano/{nano-7.0.ebuild => nano-7.0-r1.ebuild} | 4 +--- app-editors/nano/nano-9999.ebuild | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) |