From 80729a9dcfdc5cb8dc774279ff7afb872836a511 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 17 Nov 2017 13:15:07 +0200 Subject: openssh: extend to -native [YOCTO #9338] Signed-off-by: Markus Lehtonen --- ...1-don-t-use-absolute-path-for-ssh-program.patch | 31 ++++++++++++++++++++++ meta/recipes-connectivity/openssh/openssh_7.6p1.bb | 8 +++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-connectivity/openssh/openssh/0001-don-t-use-absolute-path-for-ssh-program.patch diff --git a/meta/recipes-connectivity/openssh/openssh/0001-don-t-use-absolute-path-for-ssh-program.patch b/meta/recipes-connectivity/openssh/openssh/0001-don-t-use-absolute-path-for-ssh-program.patch new file mode 100644 index 0000000000..e9a1c35390 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/0001-don-t-use-absolute-path-for-ssh-program.patch @@ -0,0 +1,31 @@ +From fb78bd8142f48d0909d8839e8bab48abe39d5ab7 Mon Sep 17 00:00:00 2001 +From: Markus Lehtonen +Date: Mon, 20 Nov 2017 12:08:56 +0200 +Subject: [PATCH] don't use absolute path for ssh program + +Makes it possible to relocate openssh binaries referencing to the ssh +binary. + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Markus Lehtonen +--- + Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index c52ce19..752f7d0 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -21,7 +21,7 @@ top_srcdir=@top_srcdir@ + + DESTDIR= + VPATH=@srcdir@ +-SSH_PROGRAM=@bindir@/ssh ++SSH_PROGRAM=ssh + ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass + SFTP_SERVER=$(libexecdir)/sftp-server + SSH_KEYSIGN=$(libexecdir)/ssh-keysign +-- +2.13.6 + diff --git a/meta/recipes-connectivity/openssh/openssh_7.6p1.bb b/meta/recipes-connectivity/openssh/openssh_7.6p1.bb index a2288dfe08..6c0c407811 100644 --- a/meta/recipes-connectivity/openssh/openssh_7.6p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_7.6p1.bb @@ -27,6 +27,8 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar file://add-test-support-for-busybox.patch \ " +SRC_URI_append_class-native = " file://0001-don-t-use-absolute-path-for-ssh-program.patch" + PAM_SRC_URI = "file://sshd" SRC_URI[md5sum] = "06a88699018e5fef13d4655abfed1f63" @@ -54,7 +56,7 @@ EXTRA_AUTORECONF += "--exclude=aclocal" EXTRA_OECONF = "'LOGIN_PROGRAM=${base_bindir}/login' \ ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \ --without-zlib-version-check \ - --with-privsep-path=/var/run/sshd \ + --with-privsep-path=${localstatedir}/run/sshd \ --sysconfdir=${sysconfdir}/ssh \ --with-xauth=/usr/bin/xauth \ --disable-strip \ @@ -151,6 +153,8 @@ RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen" RDEPENDS_${PN}-sshd += "${PN}-keygen ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-keyinit pam-plugin-loginuid', '', d)}" RDEPENDS_${PN}-ptest += "${PN}-sftp ${PN}-misc ${PN}-sftp-server make" +RDEPENDS_${PN}_class-native = "" + RPROVIDES_${PN}-ssh = "ssh" RPROVIDES_${PN}-sshd = "sshd" @@ -164,3 +168,5 @@ CONFFILES_${PN}-ssh = "${sysconfdir}/ssh/ssh_config" ALTERNATIVE_PRIORITY = "90" ALTERNATIVE_${PN}-scp = "scp" ALTERNATIVE_${PN}-ssh = "ssh" + +BBCLASSEXTEND = "native" -- cgit 1.2.3-korg