Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525776 - net-misc/openssh - add USE=server to optionally install sshd
Summary: net-misc/openssh - add USE=server to optionally install sshd
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://bugzilla.mindrot.org/show_bug...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2014-10-18 12:22 UTC by Scall
Modified: 2014-11-15 19:34 UTC (History)
1 user (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 Scall 2014-10-18 12:22:24 UTC
OpenSSH needs a 'server' USE flag to install the client files only, since not everyone wants both the client and the server on all their computers (most binary based distributions provide two distinct OpenSSH packages for this reason).

Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2014-10-18 21:06:51 UTC
(In reply to Scall from comment #0)
> OpenSSH needs a 'server' USE flag to install the client files only, since
> not everyone wants both the client and the server on all their computers
> (most binary based distributions provide two distinct OpenSSH packages for
> this reason).
> 
> Reproducible: Always

ugh no.  I know debian and others do but why really?  Does it bother you having this one extra file?
Comment 2 Scall 2014-10-18 22:45:56 UTC
(In reply to Anthony Basile from comment #1)

I don't see why users should have sshd and related files intalled when they don't need them. Gentoo is about choices, isn't it? I think it's a contradiction in terms that other distributions, like the one you mentioned, give you more choice than Gentoo in this respect.
Comment 3 Michael Orlitzky gentoo-dev 2014-10-19 02:11:54 UTC
This is going to be a pain to do. From the upstream package, there's at least,

  /etc/ssh/sshd_config
  /usr/share/man/man5/sshd_config.5.bz2
  /usr/lib64/misc/sftp-server
  /usr/share/man/man8/sftp-server.8.bz2
  /usr/sbin/sshd
  /usr/share/man/man8/sshd.8.bz2

And Gentoo adds the init, conf, and systemd files. Those are easy enough to wrap in a "use server" block, but the ones that come from upstream will be annoying to remove because we have to either,

  1) Get rid of the emake ... install line, and install everything manually.

  2) Keep the emake ... install, and remove all of the upstream files manually.

I'm not saying the request isn't legitimate, but it would be a lot less intrusive if you could talk upstream into adding a --server option to their ./configure.
Comment 4 Joshua Kinard gentoo-dev 2014-10-19 02:42:35 UTC
Arguably, you could probably use both the 'server' and 'client' USE flags, like what net-fs/samba does, if all you needed were the OpenSSH libraries and no client or server binaries.  But I agree, this should be made into an upstream feature request that we can later implement.
Comment 5 Anthony Basile gentoo-dev 2014-10-19 03:23:15 UTC
(In reply to Joshua Kinard from comment #4)
> Arguably, you could probably use both the 'server' and 'client' USE flags,
> like what net-fs/samba does, if all you needed were the OpenSSH libraries
> and no client or server binaries.  But I agree, this should be made into an
> upstream feature request that we can later implement.

Actually there's a good chance of this being accepted because many distros do this.
Comment 6 Scall 2014-10-19 15:44:47 UTC
(In reply to Joshua Kinard from comment #4)

Yes, a 'client' USE flag would be needed as well.

> But I agree, this should be made into an upstream feature request

Here it is: https://bugzilla.mindrot.org/show_bug.cgi?id=2298