Skip to contentSkip to conversation

libssh2: Update patch to apply and fix malformed Upstream-Status

RFC PATCH In review Martin Jansa 4 participants 8 messages Feb 15, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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
index b1204e49eb..e0000b2658 100644
@@ -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
#1 lore raw
Quoted 45 lines · Martin Jansa

* 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 +2 -2
index b1204e49eb..e0000b2658 100644
@@ -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 -1
 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]>

The patch is to fix ssh2.sh as a test. The test was disabled here:

https://git.yoctoproject.org/poky/commit/meta/recipes-support/libssh2?id=af067d427fc1000c2dcce84c5578ea26f9048208

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

#2 lore raw
In reply to Martin Jansa
Quoted 44 lines · Martin Jansa

* 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 +0 -2
index b1204e49eb..e0000b2658 100644
@@ -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 -13
 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
--

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]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

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.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"

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_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

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.patch

Quoted 1 line

Please correct according to

https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status
:

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
---
 ...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.patch b/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch

Quoted 2 lines

index b1204e49eb..e0000b2658 100644
---

a/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch

Quoted 1 line

+++

b/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch

meta/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 -3
 Signed-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 -2
  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

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.c

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.c

Quoted 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]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
In reply to Khem Raj
Quoted 54 lines · Khem Raj
Quoted 52 lines · Martin Jansa

* 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 +2 -2
index b1204e49eb..e0000b2658 100644
@@ -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 -13
 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
--

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]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

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.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"

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_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

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.patch

Quoted 1 line
Quoted 1 line

Please correct according to

https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status
:

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
---
 ...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.patch b/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch

Quoted 2 lines
Quoted 2 lines

index b1204e49eb..e0000b2658 100644
---

a/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch

Quoted 1 line
Quoted 1 line

+++

b/meta/recipes-support/libssh2/files/0001-Don-t-let-host-enviroment-to-decide-if-a-test-is-bui.patch

Quoted 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 is

build

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 -1
 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.

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 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 -3
 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(-)
 
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 -2
 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

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 -2
  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

Quoted 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.c

Quoted 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.c

Quoted 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/unsub

[[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw
Quoted 3 lines · Martin Jansa

patchreview.py will 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.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 +2 -2
index b1204e49eb..e0000b2658 100644
@@ -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 -13
 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
--

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]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 65 lines · Richard Purdie via lists.openembedded.org
Quoted 45 lines · Martin Jansa

* 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 +2 -2
index b1204e49eb..e0000b2658 100644
@@ -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 -1
 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]>

The patch is to fix ssh2.sh as a test. The test was disabled here:

https://git.yoctoproject.org/poky/commit/meta/recipes-support/libssh2?id=af067d427fc1000c2dcce84c5578ea26f9048208

referencing:

https://github.com/libssh2/libssh2/issues/630

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