summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch44
-rw-r--r--meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch23
-rw-r--r--meta/recipes-support/libssh2/libssh2/run-ptest (renamed from meta/recipes-support/libssh2/files/run-ptest)3
-rw-r--r--meta/recipes-support/libssh2/libssh2_1.10.0.bb3
4 files changed, 25 insertions, 48 deletions
diff --git a/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch b/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch
deleted file mode 100644
index b1204e49eb..0000000000
--- a/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001
2From: Your Name <you@example.com>
3Date: Mon, 28 Dec 2020 02:08:03 +0000
4Subject: [PATCH] Don't let host enviroment to decide if a test is build
5
6test ssh2.sh need sshd, for cross compile, we need it on target, so
7don't use SSHD on host to decide weither to build a test
8
9Upstream-Status: Inappropriate[oe specific]
10
11Signed-off-by: Changqing Li <changqing.li@windriver.com>
12
13---
14 tests/Makefile.am | 6 +-----
15 1 file changed, 1 insertion(+), 5 deletions(-)
16
17diff --git a/tests/Makefile.am b/tests/Makefile.am
18index dc0922f..6cbc35d 100644
19--- a/tests/Makefile.am
20+++ b/tests/Makefile.am
21@@ -1,16 +1,12 @@
22 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src
23 LDADD = ../src/libssh2.la
24
25-if SSHD
26 noinst_PROGRAMS = ssh2
27 ssh2_SOURCES = ssh2.c
28-endif
29
30 ctests = simple$(EXEEXT)
31 TESTS = $(ctests) mansyntax.sh
32-if SSHD
33 TESTS += ssh2.sh
34-endif
35 check_PROGRAMS = $(ctests)
36
37 TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT)
38@@ -38,4 +34,4 @@ if OPENSSL
39 # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.c
40 # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.c
41 EXTRA_DIST += test_public_key_auth_succeeds_with_correct_rsa_openssh_key.c
42-endif
43\ No newline at end of file
44+endif
diff --git a/meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch b/meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch
new file mode 100644
index 0000000000..ee916c42d4
--- /dev/null
+++ b/meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch
@@ -0,0 +1,23 @@
1In 8.8 OpenSSH disabled sha1 rsa-sha keys out of the box,
2so we need to re-enable them as a workaround for the test
3suite until upstream updates the tests.
4
5See: https://github.com/libssh2/libssh2/issues/630
6
7Upstream-Status: Backport [alternative fixes merged upstream]
8
9Patch taken from https://github.com/mirror-rpm/libssh2/commit/47f7114f7d0780f3075bad51a71881f45cc933c5
10
11--- a/tests/ssh2.sh
12+++ b/tests/ssh2.sh
13@@ -25,7 +25,8 @@ $SSHD -f /dev/null -h "$srcdir"/etc/host
14 -o 'Port 4711' \
15 -o 'Protocol 2' \
16 -o "AuthorizedKeysFile $srcdir/etc/user.pub" \
17- -o 'UsePrivilegeSeparation no' \
18+ -o 'HostKeyAlgorithms +ssh-rsa' \
19+ -o 'PubkeyAcceptedAlgorithms +ssh-rsa' \
20 -o 'StrictModes no' \
21 -D \
22 $libssh2_sshd_params &
23
diff --git a/meta/recipes-support/libssh2/files/run-ptest b/meta/recipes-support/libssh2/libssh2/run-ptest
index 9e2fce2d24..5e7426f79d 100644
--- a/meta/recipes-support/libssh2/files/run-ptest
+++ b/meta/recipes-support/libssh2/libssh2/run-ptest
@@ -2,8 +2,7 @@
2 2
3ptestdir=$(dirname "$(readlink -f "$0")") 3ptestdir=$(dirname "$(readlink -f "$0")")
4cd tests 4cd tests
5# omit ssh2.sh until https://github.com/libssh2/libssh2/issues/630 is fixed 5for test in simple mansyntax.sh ssh2.sh
6for test in simple mansyntax.sh
7do 6do
8 ./../test-driver --test-name $test --log-file ../$test.log --trs-file ../$test.trs --color-tests no --enable-hard-errors yes --expect-failure no -- ./$test 7 ./../test-driver --test-name $test --log-file ../$test.log --trs-file ../$test.trs --color-tests no --enable-hard-errors yes --expect-failure no -- ./$test
9done 8done
diff --git a/meta/recipes-support/libssh2/libssh2_1.10.0.bb b/meta/recipes-support/libssh2/libssh2_1.10.0.bb
index 072d6819c0..d5513373b0 100644
--- a/meta/recipes-support/libssh2/libssh2_1.10.0.bb
+++ b/meta/recipes-support/libssh2/libssh2_1.10.0.bb
@@ -8,11 +8,10 @@ LICENSE = "BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://COPYING;md5=3e089ad0cf27edf1e7f261dfcd06acc7" 8LIC_FILES_CHKSUM = "file://COPYING;md5=3e089ad0cf27edf1e7f261dfcd06acc7"
9 9
10SRC_URI = "http://www.libssh2.org/download/${BP}.tar.gz \ 10SRC_URI = "http://www.libssh2.org/download/${BP}.tar.gz \
11 file://fix-ssh2-test.patch \
11 file://run-ptest \ 12 file://run-ptest \
12 " 13 "
13 14
14SRC_URI:append:ptest = " file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch"
15
16SRC_URI[sha256sum] = "2d64e90f3ded394b91d3a2e774ca203a4179f69aebee03003e5a6fa621e41d51" 15SRC_URI[sha256sum] = "2d64e90f3ded394b91d3a2e774ca203a4179f69aebee03003e5a6fa621e41d51"
17 16
18inherit autotools pkgconfig ptest 17inherit autotools pkgconfig ptest