libssh2: Update patch to apply and fix malformed Upstream-Status
RFC PATCH 1/1 libssh2: Update patch to apply and fix malformed Upstream-Status
* I've noticed this, because patchreview.py reports Malformed Upstream-Status in this one now, but the QA check in insane.bbclass wasn't reporting it before
* the reason why insane.bbclass doesn't report it is because:
SRC_URI:append:ptest = " file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch" doesn't work and probably never did as "ptest" is not an override
and patch-status-core checks only the .patch files which are really
in SRC_URI.
* I've added it directly to SRC_URI and it also didn't apply:
http://errors.yoctoproject.org/Errors/Details/689955/
as the "endif" at the end was removed in 1.10.0 version:
https://github.com/libssh2/libssh2/commit/ecd6a74e44562797a1e92186ad4a402c5641720e#diff-32103f666ff2fb42b025a47ccf1b959bbcc6db89f217e5943b1de73c81a4f9db
after updating the patch to apply I got expected patch-status-core failure:
http://errors.yoctoproject.org/Errors/Details/689956/
ERROR: QA Issue: Malformed Upstream-Status in patch TOPDIR/openembedded-core/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch Please correct according to https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status :
Upstream-Status: Inappropriate[oe specific] [patch-status-core]
* so the mystery is solved, but what should be do with this never-used patch, I think we should just delete it together with SRC_URI:append:ptest, but please Changqing Li confirm it's not needed
* it was originally added by Changqing Li in meta-oe with:
https://git.openembedded.org/meta-openembedded/commit/?id=d7aa7173405c3b36235af736cd31dbe110708787
then imported to oe-core by Randy MacLeod with:
https://git.openembedded.org/openembedded-core/commit/?id=57df134b1be56a688f41851e5ff014dd859c0bc3
--- ...nviroment-to-decide-if-a-test-is-bui.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-)
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +7 -15
@@ -1,24 +1,23 @@ -From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001 -From: Your Name <[email protected]> +From 7ffa1773be8d262bed0f5c8bdcb4dd8f906de095 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> Date: Mon, 28 Dec 2020 02:08:03 +0000 Subject: [PATCH] Don't let host enviroment to decide if a test is build test ssh2.sh need sshd, for cross compile, we need it on target, so don't use SSHD on host to decide weither to build a test -Upstream-Status: Inappropriate[oe specific] +Upstream-Status: Inappropriate [oe specific] Signed-off-by: Changqing Li <[email protected]> - --- - tests/Makefile.am | 6 +----- - 1 file changed, 1 insertion(+), 5 deletions(-) + tests/Makefile.am | 4 ---- + 1 file changed, 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am -index dc0922f..6cbc35d 100644 +index 27ddc2d..13de8ab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -1,16 +1,12 @@ +@@ -3,16 +3,12 @@ SUBDIRS = ossfuzz AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src LDADD = ../src/libssh2.la
@@ -35,10 +34,3 @@ index dc0922f..6cbc35d 100644 check_PROGRAMS = $(ctests) TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT) -@@ -38,4 +34,4 @@ if OPENSSL - # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.c - # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.c - EXTRA_DIST += test_public_key_auth_succeeds_with_correct_rsa_openssh_key.c --endif -\ No newline at end of file -+endif
Signature · 1 line
2.39.2
Quoted 45 lines · Martin Jansa
* I've noticed this, because
patchreview.pyreports Malformed Upstream-Status in this one now, but the QA check in insane.bbclass wasn't reporting it before* the reason why insane.bbclass doesn't report it is because:
SRC_URI:append:ptest = " file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch" doesn't work and probably never did as "ptest" is not an override
and patch-status-core checks only the .patch files which are really
inSRC_URI.* I've added it directly to
SRC_URIand it also didn't apply:
http://errors.yoctoproject.org/Errors/Details/689955/
as the "endif" at the end was removed in 1.10.0 version:
https://github.com/libssh2/libssh2/commit/ecd6a74e44562797a1e92186ad4a402c5641720e#diff-32103f666ff2fb42b025a47ccf1b959bbcc6db89f217e5943b1de73c81a4f9dbafter updating the patch to apply I got expected patch-status-core failure:
http://errors.yoctoproject.org/Errors/Details/689956/
ERROR: QA Issue: Malformed Upstream-Status in patchTOPDIR/openembedded-core/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchPlease correct according to https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status :
Upstream-Status: Inappropriate[oe specific] [patch-status-core]* so the mystery is solved, but what should be do with this never-used patch, I think we should just delete it together with SRC_URI:append:ptest, but please Changqing Li confirm it's not needed
* it was originally added by Changqing Li in meta-oe with:
https://git.openembedded.org/meta-openembedded/commit/?id=d7aa7173405c3b36235af736cd31dbe110708787
then imported to oe-core by Randy MacLeod with:
https://git.openembedded.org/openembedded-core/commit/?id=57df134b1be56a688f41851e5ff014dd859c0bc3Signed-off-by Martin Jansa <[email protected]>--- ...nviroment-to-decide-if-a-test-is-bui.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-)meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +2
-2@@ -1,24 +1,23 @@ -From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001 -From: Your Name <[email protected]> +From 7ffa1773be8d262bed0f5c8bdcb4dd8f906de095 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]>
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch line 11
Quoted 10 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +1
-1Date: Mon, 28 Dec 2020 02:08:03 +0000 Subject: [PATCH] Don't let host enviroment to decide if a test is build test ssh2.sh need sshd, for cross compile, we need it on target, so don't use SSHD on host to decide weither to build a test -Upstream-Status: Inappropriate[oe specific] +Upstream-Status: Inappropriate [oe specific] Signed-off-by: Changqing Li <[email protected]>
The patch is to fix ssh2.sh as a test. The test was disabled here:
referencing:
https://github.com/libssh2/libssh2/issues/630
which is now fixed.
The autobuilder doesn't currently run the test:
https://autobuilder.yocto.io/pub/non-release/20230215-12/testresults/qemux86-64-ptest/libssh2.log
I don't know if the test still needs the patch to fix it.
Cheers,
Richard
Quoted 44 lines · Martin Jansa
* I've noticed this, because
patchreview.pyreports Malformed Upstream-Status in this one now, but the QA check in insane.bbclass wasn't reporting it before* the reason why insane.bbclass doesn't report it is because:
SRC_URI:append:ptest = " file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch" doesn't work and probably never did as "ptest" is not an override
and patch-status-core checks only the .patch files which are really
inSRC_URI.* I've added it directly to
SRC_URIand it also didn't apply:
http://errors.yoctoproject.org/Errors/Details/689955/
as the "endif" at the end was removed in 1.10.0 version:
https://github.com/libssh2/libssh2/commit/ecd6a74e44562797a1e92186ad4a402c5641720e#diff-32103f666ff2fb42b025a47ccf1b959bbcc6db89f217e5943b1de73c81a4f9dbafter updating the patch to apply I got expected patch-status-core failure:
http://errors.yoctoproject.org/Errors/Details/689956/
ERROR: QA Issue: Malformed Upstream-Status in patchTOPDIR/openembedded-core/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchPlease correct according to https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status :
Upstream-Status: Inappropriate[oe specific] [patch-status-core]* so the mystery is solved, but what should be do with this never-used patch, I think we should just delete it together with SRC_URI:append:ptest, but please Changqing Li confirm it's not needed
* it was originally added by Changqing Li in meta-oe with:
https://git.openembedded.org/meta-openembedded/commit/?id=d7aa7173405c3b36235af736cd31dbe110708787
then imported to oe-core by Randy MacLeod with:
https://git.openembedded.org/openembedded-core/commit/?id=57df134b1be56a688f41851e5ff014dd859c0bc3Signed-off-by Martin Jansa <[email protected]>--- ...nviroment-to-decide-if-a-test-is-bui.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-)meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +0
-2@@ -1,24 +1,23 @@ -From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001 -From: Your Name <[email protected]>
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch line 9
Quoted 10 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +3
-1+From 7ffa1773be8d262bed0f5c8bdcb4dd8f906de095 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> Date: Mon, 28 Dec 2020 02:08:03 +0000 Subject: [PATCH] Don't let host enviroment to decide if a test is build test ssh2.sh need sshd, for cross compile, we need it on target, so don't use SSHD on host to decide weither to build a test -Upstream-Status: Inappropriate[oe specific] +Upstream-Status: Inappropriate [oe specific]
Since we are already using a special token '[' to separate reason from status, I always wondered if having this space before '[' is something that could be ignored.
Quoted 42 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +4
-13Signed-off-by: Changqing Li <[email protected]> - --- - tests/Makefile.am | 6 +----- - 1 file changed, 1 insertion(+), 5 deletions(-) + tests/Makefile.am | 4 ---- + 1 file changed, 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am -index dc0922f..6cbc35d 100644 +index 27ddc2d..13de8ab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -1,16 +1,12 @@ +@@ -3,16 +3,12 @@ SUBDIRS = ossfuzz AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src LDADD = ../src/libssh2.la@@ -35,10 +34,3 @@ index dc0922f..6cbc35d 100644 check_PROGRAMS = $(ctests) TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT) -@@ -38,4 +34,4 @@ if OPENSSL - # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.c - # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.c - EXTRA_DIST += test_public_key_auth_succeeds_with_correct_rsa_openssh_key.c --endif -\ No newline at end of file -+endif --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177204): https://lists.openembedded.org/g/openembedded-core/message/177204
Mute This Topic: https://lists.openembedded.org/mt/96987532/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Please no. Much less readable without a space.
Alex
Quoted 125 lines · Khem Raj
Quoted 7 lines · Martin Jansa
* I've noticed this, because
patchreview.pyreports Malformed Upstream-Status in this one now, but the QA check in insane.bbclass wasn't reporting it before* the reason why insane.bbclass doesn't report it is because:
SRC_URI:append:ptest = "file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch"
Quoted 8 lines
doesn't work and probably never did as "ptest" is not an override and patch-status-core checks only the .patch files which are really in
SRC_URI.* I've added it directly to
SRC_URIand it also didn't apply:
http://errors.yoctoproject.org/Errors/Details/689955/
as the "endif" at the end was removed in 1.10.0 version:Quoted 2 lines
after updating the patch to apply I got expected patch-status-core
failure:
Quoted 3 lines
http://errors.yoctoproject.org/Errors/Details/689956/
ERROR: QA Issue: Malformed Upstream-Status in patch
TOPDIR/openembedded-core/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchQuoted 1 line
Please correct according to
Quoted 8 lines
Upstream-Status: Inappropriate[oe specific] [patch-status-core]
* so the mystery is solved, but what should be do with this never-used patch, I think we should just delete it together with SRC_URI:append:ptest, but please Changqing Li confirm it's not needed
* it was originally added by Changqing Li in meta-oe with:
https://git.openembedded.org/meta-openembedded/commit/?id=d7aa7173405c3b36235af736cd31dbe110708787
Quoted 2 lines
then imported to oe-core by Randy MacLeod with:
https://git.openembedded.org/openembedded-core/commit/?id=57df134b1be56a688f41851e5ff014dd859c0bc3
Quoted 7 lines
Signed-off-by Martin Jansa <[email protected]>--- ...nviroment-to-decide-if-a-test-is-bui.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-)diff --git
a/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchb/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchQuoted 2 lines
index
b1204e49eb..e0000b2658100644
---
a/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchQuoted 1 line
+++
b/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchmeta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch line 9
Quoted 13 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +3
-3@@ -1,24 +1,23 @@ -From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001 -From: Your Name <[email protected]> +From 7ffa1773be8d262bed0f5c8bdcb4dd8f906de095 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> Date: Mon, 28 Dec 2020 02:08:03 +0000 Subject: [PATCH] Don't let host enviroment to decide if a test is build test ssh2.sh need sshd, for cross compile, we need it on target, so don't use SSHD on host to decide weither to build a test -Upstream-Status: Inappropriate[oe specific] +Upstream-Status: Inappropriate [oe specific]Since we are already using a special token '[' to separate reason from status, I always wondered if having this space before '[' is something that could be ignored.
Quoted 7 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +1
-3Signed-off-by: Changqing Li <[email protected]> - --- - tests/Makefile.am | 6 +----- - 1 file changed, 1 insertion(+), 5 deletions(-) + tests/Makefile.am | 4 ----meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch
Quoted 10 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +3
-2+ 1 file changed, 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am -index dc0922f..6cbc35d 100644 +index 27ddc2d..13de8ab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -1,16 +1,12 @@ +@@ -3,16 +3,12 @@ SUBDIRS = ossfuzz AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include-I$(top_builddir)/src
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch index dc0922f..6cbc35d 100644 · line 39
Quoted 8 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +0
-2LDADD = ../src/libssh2.la@@ -35,10 +34,3 @@ index dc0922f..6cbc35d 100644 check_PROGRAMS = $(ctests) TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT) -@@ -38,4 +34,4 @@ if OPENSSL - # EXTRA_DIST +=
test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.cReview index dc0922f..6cbc35d 100644 · line 40
Quoted 1 line
(quoted diff) +0
-1- # EXTRA_DIST +=
test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.cReview index dc0922f..6cbc35d 100644 · line 41
Quoted 1 line
(quoted diff) +0
-1- EXTRA_DIST +=
test_public_key_auth_succeeds_with_correct_rsa_openssh_key.cQuoted 9 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +0
-4--endif -\ No newline at end of file -+endif --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#177209):
https://lists.openembedded.org/g/openembedded-core/message/177209
Mute This Topic: https://lists.openembedded.org/mt/96987532/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 54 lines · Khem Raj
Quoted 52 lines · Martin Jansa
* I've noticed this, because
patchreview.pyreports Malformed Upstream-Status in this one now, but the QA check in insane.bbclass wasn't reporting it before* the reason why insane.bbclass doesn't report it is because:
SRC_URI:append:ptest = " file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch" doesn't work and probably never did as "ptest" is not an override
and patch-status-core checks only the .patch files which are really
inSRC_URI.* I've added it directly to
SRC_URIand it also didn't apply:
http://errors.yoctoproject.org/Errors/Details/689955/
as the "endif" at the end was removed in 1.10.0 version:
https://github.com/libssh2/libssh2/commit/ecd6a74e44562797a1e92186ad4a402c5641720e#diff-32103f666ff2fb42b025a47ccf1b959bbcc6db89f217e5943b1de73c81a4f9dbafter updating the patch to apply I got expected patch-status-core failure:
http://errors.yoctoproject.org/Errors/Details/689956/
ERROR: QA Issue: Malformed Upstream-Status in patchTOPDIR/openembedded-core/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchPlease correct according to https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status :
Upstream-Status: Inappropriate[oe specific] [patch-status-core]* so the mystery is solved, but what should be do with this never-used patch, I think we should just delete it together with SRC_URI:append:ptest, but please Changqing Li confirm it's not needed
* it was originally added by Changqing Li in meta-oe with:
https://git.openembedded.org/meta-openembedded/commit/?id=d7aa7173405c3b36235af736cd31dbe110708787
then imported to oe-core by Randy MacLeod with:
https://git.openembedded.org/openembedded-core/commit/?id=57df134b1be56a688f41851e5ff014dd859c0bc3Signed-off-by Martin Jansa <[email protected]>--- ...nviroment-to-decide-if-a-test-is-bui.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-)meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +2
-2@@ -1,24 +1,23 @@ -From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001 -From: Your Name <[email protected]> +From 7ffa1773be8d262bed0f5c8bdcb4dd8f906de095 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> Date: Mon, 28 Dec 2020 02:08:03 +0000 Subject: [PATCH] Don't let host enviroment to decide if a test is build test ssh2.sh need sshd, for cross compile, we need it on target, so don't use SSHD on host to decide weither to build a test
Quoted 7 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch line 9
Quoted 2 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +1
-1-Upstream-Status: Inappropriate[oe specific] +Upstream-Status: Inappropriate [oe specific]Since we are already using a special token '[' to separate reason from status, I always wondered if having this space before '[' is something that could be ignored.
I see that scripts/contrib/patchreview.py does not care for space, that answers my question. Maybe it would be
good to tabulate reason as well perhaps.
Quoted 42 lines
Quoted 42 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +4
-13Signed-off-by: Changqing Li <[email protected]> - --- - tests/Makefile.am | 6 +----- - 1 file changed, 1 insertion(+), 5 deletions(-) + tests/Makefile.am | 4 ---- + 1 file changed, 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am -index dc0922f..6cbc35d 100644 +index 27ddc2d..13de8ab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -1,16 +1,12 @@ +@@ -3,16 +3,12 @@ SUBDIRS = ossfuzz AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src LDADD = ../src/libssh2.la@@ -35,10 +34,3 @@ index dc0922f..6cbc35d 100644 check_PROGRAMS = $(ctests) TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT) -@@ -38,4 +34,4 @@ if OPENSSL - # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.c - # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.c - EXTRA_DIST += test_public_key_auth_succeeds_with_correct_rsa_openssh_key.c --endif -\ No newline at end of file -+endif --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177204): https://lists.openembedded.org/g/openembedded-core/message/177204
Mute This Topic: https://lists.openembedded.org/mt/96987532/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
patchreview.py will care about the space (like insane.bbclass does) if
https://lists.openembedded.org/g/openembedded-core/message/177207 is merged
Quoted 130 lines · Khem Raj
Quoted 2 lines · Khem Raj
On Wed, Feb 15, 2023 at 9:18 AM Martin Jansa <[email protected]>
Quoted 7 lines · wrote:
Quoted 7 lines
* I've noticed this, because
patchreview.pyreports Malformed Upstream-Status in this one now, but the QA check in insane.bbclass wasn't reporting it before* the reason why insane.bbclass doesn't report it is because:
SRC_URI:append:ptest = "file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch"
Quoted 8 lines
Quoted 8 lines
doesn't work and probably never did as "ptest" is not an override and patch-status-core checks only the .patch files which are really in
SRC_URI.* I've added it directly to
SRC_URIand it also didn't apply:
http://errors.yoctoproject.org/Errors/Details/689955/
as the "endif" at the end was removed in 1.10.0 version:Quoted 2 lines
Quoted 2 lines
after updating the patch to apply I got expected patch-status-core
failure:
Quoted 3 lines
Quoted 3 lines
http://errors.yoctoproject.org/Errors/Details/689956/
ERROR: QA Issue: Malformed Upstream-Status in patch
TOPDIR/openembedded-core/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchQuoted 1 line
Quoted 1 line
Please correct according to
Quoted 8 lines
Quoted 8 lines
Upstream-Status: Inappropriate[oe specific] [patch-status-core]
* so the mystery is solved, but what should be do with this never-used patch, I think we should just delete it together with SRC_URI:append:ptest, but please Changqing Li confirm it's not needed
* it was originally added by Changqing Li in meta-oe with:
https://git.openembedded.org/meta-openembedded/commit/?id=d7aa7173405c3b36235af736cd31dbe110708787
Quoted 2 lines
Quoted 2 lines
then imported to oe-core by Randy MacLeod with:
https://git.openembedded.org/openembedded-core/commit/?id=57df134b1be56a688f41851e5ff014dd859c0bc3
Quoted 7 lines
Quoted 7 lines
Signed-off-by Martin Jansa <[email protected]>--- ...nviroment-to-decide-if-a-test-is-bui.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-)diff --git
a/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchb/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchQuoted 2 lines
Quoted 2 lines
index
b1204e49eb..e0000b2658100644
---
a/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchQuoted 1 line
Quoted 1 line
+++
b/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchQuoted 7 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch line 4
Quoted 7 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +2
-2@@ -1,24 +1,23 @@ -From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001 -From: Your Name <[email protected]> +From 7ffa1773be8d262bed0f5c8bdcb4dd8f906de095 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> Date: Mon, 28 Dec 2020 02:08:03 +0000 Subject: [PATCH] Don't let host enviroment to decide if a test isbuild
Quoted 11 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch line 9
Quoted 6 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +1
-1test ssh2.sh need sshd, for cross compile, we need it on target, so don't use SSHD on host to decide weither to build a test -Upstream-Status: Inappropriate[oe specific] +Upstream-Status: Inappropriate [oe specific]Since we are already using a special token '[' to separate reason from status, I always wondered if having this space before '[' is something that could be ignored.
I see that
scripts/contrib/patchreview.pydoes not care for space, that answers my question. Maybe it would be
good to tabulate reason as well perhaps.Quoted 9 lines
Quoted 9 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +2
-3Signed-off-by: Changqing Li <[email protected]> - --- - tests/Makefile.am | 6 +----- - 1 file changed, 1 insertion(+), 5 deletions(-) + tests/Makefile.am | 4 ---- + 1 file changed, 4 deletions(-)Quoted 8 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch
Quoted 8 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +2
-2diff --git a/tests/Makefile.am b/tests/Makefile.am -index dc0922f..6cbc35d 100644 +index 27ddc2d..13de8ab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -1,16 +1,12 @@ +@@ -3,16 +3,12 @@ SUBDIRS = ossfuzz AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include-I$(top_builddir)/src
Quoted 8 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch index dc0922f..6cbc35d 100644 · line 39
Quoted 8 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +0
-2LDADD = ../src/libssh2.la@@ -35,10 +34,3 @@ index dc0922f..6cbc35d 100644 check_PROGRAMS = $(ctests) TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT) -@@ -38,4 +34,4 @@ if OPENSSL - # EXTRA_DIST +=
test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.cQuoted 1 line
Review index dc0922f..6cbc35d 100644 · line 40
Quoted 1 line
(quoted diff) +0
-1- # EXTRA_DIST +=
test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.cQuoted 1 line
Review index dc0922f..6cbc35d 100644 · line 41
Quoted 1 line
(quoted diff) +0
-1- EXTRA_DIST +=
test_public_key_auth_succeeds_with_correct_rsa_openssh_key.cQuoted 10 lines
Quoted 10 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +0
-4--endif -\ No newline at end of file -+endif --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#177204):https://lists.openembedded.org/g/openembedded-core/message/177204
Quoted 3 lines
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/96987532/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsubQuoted 2 lines
Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 3 lines · Martin Jansa
patchreview.pywill care about the space (like insane.bbclass does) if https://lists.openembedded.org/g/openembedded-core/message/177207 is merged
I see. thanks. I think this should be something every developer should then be able to run on the patchset they are about to post for review. Otherwise, it just
add on to upstreaming friction that developer experiences and it won't scale.
Quoted 111 lines · Khem Raj
Quoted 110 lines · Khem Raj
Quoted 54 lines · Martin Jansa
Quoted 52 lines
* I've noticed this, because
patchreview.pyreports Malformed Upstream-Status in this one now, but the QA check in insane.bbclass wasn't reporting it before* the reason why insane.bbclass doesn't report it is because:
SRC_URI:append:ptest = " file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch" doesn't work and probably never did as "ptest" is not an override
and patch-status-core checks only the .patch files which are really
inSRC_URI.* I've added it directly to
SRC_URIand it also didn't apply:
http://errors.yoctoproject.org/Errors/Details/689955/
as the "endif" at the end was removed in 1.10.0 version:
https://github.com/libssh2/libssh2/commit/ecd6a74e44562797a1e92186ad4a402c5641720e#diff-32103f666ff2fb42b025a47ccf1b959bbcc6db89f217e5943b1de73c81a4f9dbafter updating the patch to apply I got expected patch-status-core failure:
http://errors.yoctoproject.org/Errors/Details/689956/
ERROR: QA Issue: Malformed Upstream-Status in patchTOPDIR/openembedded-core/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchPlease correct according to https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status :
Upstream-Status: Inappropriate[oe specific] [patch-status-core]* so the mystery is solved, but what should be do with this never-used patch, I think we should just delete it together with SRC_URI:append:ptest, but please Changqing Li confirm it's not needed
* it was originally added by Changqing Li in meta-oe with:
https://git.openembedded.org/meta-openembedded/commit/?id=d7aa7173405c3b36235af736cd31dbe110708787
then imported to oe-core by Randy MacLeod with:
https://git.openembedded.org/openembedded-core/commit/?id=57df134b1be56a688f41851e5ff014dd859c0bc3Signed-off-by Martin Jansa <[email protected]>--- ...nviroment-to-decide-if-a-test-is-bui.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-)meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +2
-2@@ -1,24 +1,23 @@ -From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001 -From: Your Name <[email protected]> +From 7ffa1773be8d262bed0f5c8bdcb4dd8f906de095 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> Date: Mon, 28 Dec 2020 02:08:03 +0000 Subject: [PATCH] Don't let host enviroment to decide if a test is build test ssh2.sh need sshd, for cross compile, we need it on target, so don't use SSHD on host to decide weither to build a testQuoted 7 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch line 9
Quoted 2 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +1
-1-Upstream-Status: Inappropriate[oe specific] +Upstream-Status: Inappropriate [oe specific]Since we are already using a special token '[' to separate reason from status, I always wondered if having this space before '[' is something that could be ignored.
I see that
scripts/contrib/patchreview.pydoes not care for space, that answers my question. Maybe it would be
good to tabulate reason as well perhaps.Quoted 42 lines
Quoted 42 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +4
-13Signed-off-by: Changqing Li <[email protected]> - --- - tests/Makefile.am | 6 +----- - 1 file changed, 1 insertion(+), 5 deletions(-) + tests/Makefile.am | 4 ---- + 1 file changed, 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am -index dc0922f..6cbc35d 100644 +index 27ddc2d..13de8ab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -1,16 +1,12 @@ +@@ -3,16 +3,12 @@ SUBDIRS = ossfuzz AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src LDADD = ../src/libssh2.la@@ -35,10 +34,3 @@ index dc0922f..6cbc35d 100644 check_PROGRAMS = $(ctests) TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT) -@@ -38,4 +34,4 @@ if OPENSSL - # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.c - # EXTRA_DIST += test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.c - EXTRA_DIST += test_public_key_auth_succeeds_with_correct_rsa_openssh_key.c --endif -\ No newline at end of file -+endif --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177204): https://lists.openembedded.org/g/openembedded-core/message/177204
Mute This Topic: https://lists.openembedded.org/mt/96987532/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 65 lines · Richard Purdie via lists.openembedded.org
Quoted 45 lines · Martin Jansa
* I've noticed this, because
patchreview.pyreports Malformed Upstream-Status in this one now, but the QA check in insane.bbclass wasn't reporting it before* the reason why insane.bbclass doesn't report it is because:
SRC_URI:append:ptest = " file://0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch" doesn't work and probably never did as "ptest" is not an override
and patch-status-core checks only the .patch files which are really
inSRC_URI.* I've added it directly to
SRC_URIand it also didn't apply:
http://errors.yoctoproject.org/Errors/Details/689955/
as the "endif" at the end was removed in 1.10.0 version:
https://github.com/libssh2/libssh2/commit/ecd6a74e44562797a1e92186ad4a402c5641720e#diff-32103f666ff2fb42b025a47ccf1b959bbcc6db89f217e5943b1de73c81a4f9dbafter updating the patch to apply I got expected patch-status-core failure:
http://errors.yoctoproject.org/Errors/Details/689956/
ERROR: QA Issue: Malformed Upstream-Status in patchTOPDIR/openembedded-core/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patchPlease correct according to https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status :
Upstream-Status: Inappropriate[oe specific] [patch-status-core]* so the mystery is solved, but what should be do with this never-used patch, I think we should just delete it together with SRC_URI:append:ptest, but please Changqing Li confirm it's not needed
* it was originally added by Changqing Li in meta-oe with:
https://git.openembedded.org/meta-openembedded/commit/?id=d7aa7173405c3b36235af736cd31dbe110708787
then imported to oe-core by Randy MacLeod with:
https://git.openembedded.org/openembedded-core/commit/?id=57df134b1be56a688f41851e5ff014dd859c0bc3Signed-off-by Martin Jansa <[email protected]>--- ...nviroment-to-decide-if-a-test-is-bui.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-)meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +2
-2@@ -1,24 +1,23 @@ -From f6abce5ba41a412a247250dcd80e387e53474466 Mon Sep 17 00:00:00 2001 -From: Your Name <[email protected]> +From 7ffa1773be8d262bed0f5c8bdcb4dd8f906de095 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]>meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch line 11
Quoted 10 lines
meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch +1
-1Date: Mon, 28 Dec 2020 02:08:03 +0000 Subject: [PATCH] Don't let host enviroment to decide if a test is build test ssh2.sh need sshd, for cross compile, we need it on target, so don't use SSHD on host to decide weither to build a test -Upstream-Status: Inappropriate[oe specific] +Upstream-Status: Inappropriate [oe specific] Signed-off-by: Changqing Li <[email protected]>The patch is to fix
ssh2.shas a test. The test was disabled here:referencing:
Quoted 7 lines
which is now fixed.
The autobuilder doesn't currently run the test:
https://autobuilder.yocto.io/pub/non-release/20230215-12/testresults/qemux86-64-ptest/libssh2.log
I don't know if the test still needs the patch to fix it.
I did some tests and there is a patch to fix issue 630 which then does allow ssh2.sh to pass without this patch. We can therefore remove it. We should also add a patch to sort issue 630 and enable the test.
Cheers,
Richard