Since with our new stable modular X, all we need to do X11-forwarding via SSH is to have x11-apps/xauth (and dependencies) installed, it would be handy to have this as an RDEPEND in the ebuilds. In order to keep most entirely-non-X servers happy, it should probably be turned on only with a USE flag, say 'X'. This is entirely unnecessary for the building of openssh, but would provide a straight-foward way of letting users know what to do if they want to enable x11-forwarding w/o having xorg-x11 installed, and without having to debug their ssh -X session or delve deeply into documentation.
done, cheers
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b305efd9c1f5c34528aa0022e47b04f758bcd2f commit 1b305efd9c1f5c34528aa0022e47b04f758bcd2f Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-02-19 05:28:30 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-19 06:16:02 +0000 net-misc/openssh: remove pointless USE=X It was originally added in 2006 with the following rationale: > Since with our new stable modular X, all we need to do X11-forwarding > via SSH is to have x11-apps/xauth (and dependencies) installed, it would > be handy to have this as an RDEPEND in the ebuilds. In order to keep > most entirely-non-X servers happy, it should probably be turned on only > with a USE flag, say 'X'. > This is entirely unnecessary for the building of openssh, but would > provide a straight-foward way of letting users know what to do if they > want to enable x11-forwarding w/o having xorg-x11 installed, and without > having to debug their ssh -X session or delve deeply into documentation. It is the textbook rationale for optfeature. However, in 2006, optfeature didn't exist -- it was added in 2014 through bug 498988. (And of course the real solution is GLEP 62 "IUSE_RUNTIME".) It is now 2024 and enabling/disabling USE=X still causes openssh to pointlessly recompile and rebuild itself, invalidating binhosts in the process. Bug: https://bugs.gentoo.org/139235 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> net-misc/openssh/openssh-9.6_p1-r3.ebuild | 399 ++++++++++++++++++++++++++++++ 1 file changed, 399 insertions(+)