Skip to contentSkip to conversation

packagegroup-core-ssh-dropbear: Add openssh-sftp-server recommendation

PATCH In review Richard Purdie 2 participants 2 messages Jun 24, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 packagegroup-core-ssh-dropbear: Add openssh-sftp-server recommendation

Seems sad to have to do this but openssh is moving to use sftp instead of scp to move files. This means scp from Fedora 36 will no longer be able to move files to/from a dropbear based image. This breaks a number of our key QA tests and I suspect will cause users pain too.

The sftp server from openssh is small (200kb uncompressed) and standalone so adding it to the packagegroup seems to be the best way to preserve user sanity. If people really don't want it, they can just use dropbear instead of the packageground.

---
 .../recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb | 1 +
 1 file changed, 1 insertion(+)

v2: Make a reccomentation, tweak commit message

meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb +1 -0
index 4f844ad9255..d06c6a56095 100644
@@ -4,3 +4,4 @@ PR = "r1"
 inherit packagegroup
 
 RDEPENDS:${PN} = "dropbear"
+RRECOMMENDS:${PN} = "openssh-sftp-server"
Signature · 1 line
2.34.1
#1 lore raw

Hi Richard,

Quoted 23 lines · On Fri, 24 Jun 2022 14:58:17 +0100 "Richard Purdie"…

Seems sad to have to do this but openssh is moving to use sftp instead of scp to move files. This means scp from Fedora 36 will no longer be able to move files to/from a dropbear based image. This breaks a number of our key QA tests and I suspect will cause users pain too.

The sftp server from openssh is small (200kb uncompressed) and standalone so adding it to the packagegroup seems to be the best way to preserve user sanity. If people really don't want it, they can just use dropbear instead of the packageground.

---
 .../recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb | 1 +
 1 file changed, 1 insertion(+)

v2: Make a reccomentation, tweak commit message

meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb +0 -0
index 4f844ad9255..d06c6a56095 100644

meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb PR = "r1" · line 7

Quoted 4 lines
meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb +1 -0
@@ -4,3 +4,4 @@ PR = "r1"
 inherit packagegroup
 
 RDEPENDS:${PN} = "dropbear"
+RRECOMMENDS:${PN} = "openssh-sftp-server"

This fixes some failures but triggers some new ones:

Error:
Problem: package dropbear-dev-2022.82-r0.mips64 requires dropbear = 2022.82-r0, but none of the providers can be installed
- package dropbear-2022.82-r0.mips64 conflicts with openssh provided by openssh-9.0p1-r0.mips64
- package openssh-9.0p1-r0.mips64 conflicts with dropbear provided by dropbear-2022.82-r0.mips64
- package openssh-dev-9.0p1-r0.mips64 requires openssh = 9.0p1-r0, but none of the providers can be installed
- conflicting requests

https://autobuilder.yoctoproject.org/typhoon/#/builders/37/builds/5414/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/62/builds/5414/steps/11/logs/stdio

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com