diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-06-25 23:22:41 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-27 16:23:40 +0100 |
commit | 681b43a6a75b19e99a8b948d74993401c6711881 (patch) | |
tree | cfb28660251d2751b4c7a0eb0960f7a18c75691d | |
parent | 2475c80201eaaaebf14be483b6ca166dee71d331 (diff) | |
download | poky-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.patch | 23 | ||||
-rw-r--r-- | meta/recipes-support/libssh2/libssh2/run-ptest | 2 | ||||
-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 @@ | |||
1 | In 8.8 OpenSSH disabled sha1 rsa-sha keys out of the box, | ||
2 | so we need to re-enable them as a workaround for the test | ||
3 | suite until upstream updates the tests. | ||
4 | |||
5 | See: https://github.com/libssh2/libssh2/issues/630 | ||
6 | |||
7 | Upstream-Status: Backport [alternative fixes merged upstream] | ||
8 | |||
9 | Patch 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 | ||
3 | ptestdir=$(dirname "$(readlink -f "$0")") | 3 | ptestdir=$(dirname "$(readlink -f "$0")") |
4 | cd tests | 4 | cd tests |
5 | for test in simple mansyntax.sh ssh2.sh | 5 | for test in mansyntax.sh test_simple test_sshd.test |
6 | do | 6 | do |
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 |
8 | done | 8 | done |
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" | |||
5 | DEPENDS = "zlib" | 5 | DEPENDS = "zlib" |
6 | 6 | ||
7 | LICENSE = "BSD-3-Clause" | 7 | LICENSE = "BSD-3-Clause" |
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=3e089ad0cf27edf1e7f261dfcd06acc7" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=24a33237426720395ebb1dd1349ca225" |
9 | 9 | ||
10 | SRC_URI = "http://www.libssh2.org/download/${BP}.tar.gz \ | 10 | SRC_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 | ||
15 | SRC_URI[sha256sum] = "2d64e90f3ded394b91d3a2e774ca203a4179f69aebee03003e5a6fa621e41d51" | 14 | SRC_URI[sha256sum] = "3736161e41e2693324deb38c26cfdc3efe6209d634ba4258db1cecff6a5ad461" |
16 | 15 | ||
17 | inherit autotools pkgconfig ptest | 16 | inherit 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 | " |
22 | DISABLE_STATIC = "" | ||
23 | 23 | ||
24 | # only one of openssl and gcrypt could be set | 24 | # only one of openssl and gcrypt could be set |
25 | PACKAGECONFIG ??= "openssl" | 25 | PACKAGECONFIG ??= "openssl" |
@@ -29,7 +29,7 @@ PACKAGECONFIG[gcrypt] = "--with-crypto=libgcrypt --with-libgcrypt-prefix=${STAGI | |||
29 | BBCLASSEXTEND = "native nativesdk" | 29 | BBCLASSEXTEND = "native nativesdk" |
30 | 30 | ||
31 | # required for ptest on documentation | 31 | # required for ptest on documentation |
32 | RDEPENDS:${PN}-ptest = "man-db openssh util-linux-col" | 32 | RDEPENDS:${PN}-ptest = "bash man-db openssh util-linux-col" |
33 | RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us" | 33 | RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us" |
34 | 34 | ||
35 | do_compile_ptest() { | 35 | do_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 | } |