mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
2475c80201
commit
681b43a6a7
|
@ -1,23 +0,0 @@
|
|||
In 8.8 OpenSSH disabled sha1 rsa-sha keys out of the box,
|
||||
so we need to re-enable them as a workaround for the test
|
||||
suite until upstream updates the tests.
|
||||
|
||||
See: https://github.com/libssh2/libssh2/issues/630
|
||||
|
||||
Upstream-Status: Backport [alternative fixes merged upstream]
|
||||
|
||||
Patch taken from https://github.com/mirror-rpm/libssh2/commit/47f7114f7d0780f3075bad51a71881f45cc933c5
|
||||
|
||||
--- a/tests/ssh2.sh
|
||||
+++ b/tests/ssh2.sh
|
||||
@@ -25,7 +25,8 @@ $SSHD -f /dev/null -h "$srcdir"/etc/host
|
||||
-o 'Port 4711' \
|
||||
-o 'Protocol 2' \
|
||||
-o "AuthorizedKeysFile $srcdir/etc/user.pub" \
|
||||
- -o 'UsePrivilegeSeparation no' \
|
||||
+ -o 'HostKeyAlgorithms +ssh-rsa' \
|
||||
+ -o 'PubkeyAcceptedAlgorithms +ssh-rsa' \
|
||||
-o 'StrictModes no' \
|
||||
-D \
|
||||
$libssh2_sshd_params &
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
ptestdir=$(dirname "$(readlink -f "$0")")
|
||||
cd tests
|
||||
for test in simple mansyntax.sh ssh2.sh
|
||||
for test in mansyntax.sh test_simple test_sshd.test
|
||||
do
|
||||
./../test-driver --test-name $test --log-file ../$test.log --trs-file ../$test.trs --color-tests no --enable-hard-errors yes --expect-failure no -- ./$test
|
||||
done
|
||||
|
|
|
@ -5,14 +5,13 @@ SECTION = "libs"
|
|||
DEPENDS = "zlib"
|
||||
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=3e089ad0cf27edf1e7f261dfcd06acc7"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=24a33237426720395ebb1dd1349ca225"
|
||||
|
||||
SRC_URI = "http://www.libssh2.org/download/${BP}.tar.gz \
|
||||
file://fix-ssh2-test.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "2d64e90f3ded394b91d3a2e774ca203a4179f69aebee03003e5a6fa621e41d51"
|
||||
SRC_URI[sha256sum] = "3736161e41e2693324deb38c26cfdc3efe6209d634ba4258db1cecff6a5ad461"
|
||||
|
||||
inherit autotools pkgconfig ptest
|
||||
|
||||
|
@ -20,6 +19,7 @@ EXTRA_OECONF += "\
|
|||
--with-libz \
|
||||
--with-libz-prefix=${STAGING_LIBDIR} \
|
||||
"
|
||||
DISABLE_STATIC = ""
|
||||
|
||||
# only one of openssl and gcrypt could be set
|
||||
PACKAGECONFIG ??= "openssl"
|
||||
|
@ -29,7 +29,7 @@ PACKAGECONFIG[gcrypt] = "--with-crypto=libgcrypt --with-libgcrypt-prefix=${STAGI
|
|||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
# required for ptest on documentation
|
||||
RDEPENDS:${PN}-ptest = "man-db openssh util-linux-col"
|
||||
RDEPENDS:${PN}-ptest = "bash man-db openssh util-linux-col"
|
||||
RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us"
|
||||
|
||||
do_compile_ptest() {
|
||||
|
@ -41,9 +41,11 @@ do_install_ptest() {
|
|||
install -d ${D}${PTEST_PATH}/tests
|
||||
install -m 0755 ${S}/test-driver ${D}${PTEST_PATH}/
|
||||
cp -rf ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${B}/tests/test_simple ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${S}/tests/mansyntax.sh ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${S}/tests/ssh2.sh ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${S}/tests/etc ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${S}/tests/key* ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${S}/tests/openssh_server/ ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${S}/tests/*.test ${D}${PTEST_PATH}/tests/
|
||||
mkdir -p ${D}${PTEST_PATH}/docs
|
||||
cp -r ${S}/docs/* ${D}${PTEST_PATH}/docs/
|
||||
}
|
Loading…
Reference in New Issue
Block a user