components/openssh/patches/001-skip_config_check.patch
author Ivo Raisr <ivo.raisr@oracle.com>
Mon, 03 Aug 2015 15:31:47 -0700
branchs11-update
changeset 4752 3409fc90e641
parent 3946 b1e0e68de63b
permissions -rw-r--r--
21509846 problem in UTILITY/OPENSSH

#
# This change is to remove some misleading error messages when running 
# "gmake install". OpenSSH mixes the building and running together. Some 
# system setup checking for running the program needs to be removed, because
# they are not suitable in a build system.  This is for Solaris only, so we
# will not contribute back this change to the upstream community.
#
--- orig/Makefile.in	Wed Mar 27 16:56:36 2013
+++ new/Makefile.in	Wed Mar 27 17:05:06 2013
@@ -237,7 +237,16 @@
 install-nosysconf: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
 
 check-config:
-	-$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
+# On Solaris, to workaround OpenSSH's unlucky mixing of 'building ssh' and
+# 'running ssh', on build machine the following requisites shouldn't be
+# enforced:
+#     1) existence of privsep user sshd
+#     2) existence of privsep directory /var/empty
+#     3) read permissions for /etc/ssh/ssh_host_[rsa,dsa]_key 
+#
+#	-$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
+#
+	@echo 'Oracle Solaris: skipping check-config'
 
 install-files:
 	$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)