Currently "openssh" have only one output, which contains both client
and server software, which is redundant -- on most servers I do not need
ssh client, and on most client machines there is no need in "sshd".
It is quite simple to purge unneeded binaries with
which I believe comes from _PATH_STDPATH from defines.h. I think this
is artifact of build system, and sshd actually has no reason to retain
references to anything but sftp-server helper.
Describe the bug
Currently "openssh" have only one output, which contains both client and server software, which is redundant -- on most servers I do not need ssh client, and on most client machines there is no need in "sshd".
It is quite simple to purge unneeded binaries with
but ideally they were separate outputs from the start (after all, we have "man" output, although it is possible to prune manpages in same way).
Following naive approach:
does not work since sshd retains reference to $out:
which I believe comes from
_PATH_STDPATH
fromdefines.h
. I think this is artifact of build system, andsshd
actually has no reason to retain references to anything but sftp-server helper.Thoughts before I start patching build system?
~eelco~ @edolstra @aneeshusa