summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-06-25 23:22:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-27 16:23:40 +0100
commit681b43a6a75b19e99a8b948d74993401c6711881 (patch)
treecfb28660251d2751b4c7a0eb0960f7a18c75691d
parent2475c80201eaaaebf14be483b6ca166dee71d331 (diff)
downloadpoky-681b43a6a75b19e99a8b948d74993401c6711881.tar.gz
libssh2: update 1.10.0 -> 1.11.0
License-update: copyright years Enable static libs as some tests need them. Fix up ptests; the set being run is the same. test_simple is statically linked, hence DISABLE_STATIC is overriden. (From OE-Core rev: c3c5b74e428a13335f8c09bf4cc74dd009c8bc06) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch23
-rw-r--r--meta/recipes-support/libssh2/libssh2/run-ptest2
-rw-r--r--meta/recipes-support/libssh2/libssh2_1.11.0.bb (renamed from meta/recipes-support/libssh2/libssh2_1.10.0.bb)14
3 files changed, 9 insertions, 30 deletions
diff --git a/meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch b/meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch
deleted file mode 100644
index ee916c42d4..0000000000
--- a/meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch
+++ /dev/null
@@ -1,23 +0,0 @@
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/libssh2/run-ptest b/meta/recipes-support/libssh2/libssh2/run-ptest
index 5e7426f79d..0f5526e316 100644
--- a/meta/recipes-support/libssh2/libssh2/run-ptest
+++ b/meta/recipes-support/libssh2/libssh2/run-ptest
@@ -2,7 +2,7 @@
2 2
3ptestdir=$(dirname "$(readlink -f "$0")") 3ptestdir=$(dirname "$(readlink -f "$0")")
4cd tests 4cd tests
5for test in simple mansyntax.sh ssh2.sh 5for test in mansyntax.sh test_simple test_sshd.test
6do 6do
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 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
8done 8done
diff --git a/meta/recipes-support/libssh2/libssh2_1.10.0.bb b/meta/recipes-support/libssh2/libssh2_1.11.0.bb
index d5513373b0..711bf937f5 100644
--- a/meta/recipes-support/libssh2/libssh2_1.10.0.bb
+++ b/meta/recipes-support/libssh2/libssh2_1.11.0.bb
@@ -5,14 +5,13 @@ SECTION = "libs"
5DEPENDS = "zlib" 5DEPENDS = "zlib"
6 6
7LICENSE = "BSD-3-Clause" 7LICENSE = "BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://COPYING;md5=3e089ad0cf27edf1e7f261dfcd06acc7" 8LIC_FILES_CHKSUM = "file://COPYING;md5=24a33237426720395ebb1dd1349ca225"
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 \
12 file://run-ptest \ 11 file://run-ptest \
13 " 12 "
14 13
15SRC_URI[sha256sum] = "2d64e90f3ded394b91d3a2e774ca203a4179f69aebee03003e5a6fa621e41d51" 14SRC_URI[sha256sum] = "3736161e41e2693324deb38c26cfdc3efe6209d634ba4258db1cecff6a5ad461"
16 15
17inherit autotools pkgconfig ptest 16inherit autotools pkgconfig ptest
18 17
@@ -20,6 +19,7 @@ EXTRA_OECONF += "\
20 --with-libz \ 19 --with-libz \
21 --with-libz-prefix=${STAGING_LIBDIR} \ 20 --with-libz-prefix=${STAGING_LIBDIR} \
22 " 21 "
22DISABLE_STATIC = ""
23 23
24# only one of openssl and gcrypt could be set 24# only one of openssl and gcrypt could be set
25PACKAGECONFIG ??= "openssl" 25PACKAGECONFIG ??= "openssl"
@@ -29,7 +29,7 @@ PACKAGECONFIG[gcrypt] = "--with-crypto=libgcrypt --with-libgcrypt-prefix=${STAGI
29BBCLASSEXTEND = "native nativesdk" 29BBCLASSEXTEND = "native nativesdk"
30 30
31# required for ptest on documentation 31# required for ptest on documentation
32RDEPENDS:${PN}-ptest = "man-db openssh util-linux-col" 32RDEPENDS:${PN}-ptest = "bash man-db openssh util-linux-col"
33RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us" 33RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us"
34 34
35do_compile_ptest() { 35do_compile_ptest() {
@@ -41,9 +41,11 @@ do_install_ptest() {
41 install -d ${D}${PTEST_PATH}/tests 41 install -d ${D}${PTEST_PATH}/tests
42 install -m 0755 ${S}/test-driver ${D}${PTEST_PATH}/ 42 install -m 0755 ${S}/test-driver ${D}${PTEST_PATH}/
43 cp -rf ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests/ 43 cp -rf ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests/
44 cp -rf ${B}/tests/test_simple ${D}${PTEST_PATH}/tests/
44 cp -rf ${S}/tests/mansyntax.sh ${D}${PTEST_PATH}/tests/ 45 cp -rf ${S}/tests/mansyntax.sh ${D}${PTEST_PATH}/tests/
45 cp -rf ${S}/tests/ssh2.sh ${D}${PTEST_PATH}/tests/ 46 cp -rf ${S}/tests/key* ${D}${PTEST_PATH}/tests/
46 cp -rf ${S}/tests/etc ${D}${PTEST_PATH}/tests/ 47 cp -rf ${S}/tests/openssh_server/ ${D}${PTEST_PATH}/tests/
48 cp -rf ${S}/tests/*.test ${D}${PTEST_PATH}/tests/
47 mkdir -p ${D}${PTEST_PATH}/docs 49 mkdir -p ${D}${PTEST_PATH}/docs
48 cp -r ${S}/docs/* ${D}${PTEST_PATH}/docs/ 50 cp -r ${S}/docs/* ${D}${PTEST_PATH}/docs/
49} 51}