On Wed, 6 Mar 2019, Bruce Dubbs via blfs-dev wrote:

On 3/6/19 5:12 PM, Ryan Marsaw via blfs-dev wrote:
Hello all.

I noticed that when building OpenSSH using the DESTDIR install, the
"ssh-keygen" program fails to generate the host keys due to non-root
access to the /etc/ssh directory.

The install phase of OpenSSH shows this:

[...]
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
[...]

So if building OpenSSH with the DESTDIR method, the ssh-keygen program
needs to be run as root manually after installing the package:

ssh-keygen -v -A

We don't generally use the DESTDIR method in the books. AFAIK, rustc is the only package in the book that uses it. Should we really need to address this every time? What about users using package management?

If you follow the instructions in the book, things work. When deviating, users should be able to figure things out for themselves.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Yeah that's a good point I suppose.  In general DESTDIR works fine.
It's just those packages that need to generate files outside of the tree
that need those special instructions.  Aside from librsvg and openssh
there are no packages (at least the ones I use) that require those
instructions in the DESTDIR builds (well, besides the ones that were
already in the BLFS book before today).

   -- Ryan
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to