Bug 3251 - packagegroup-core-tools-debug has hard dependency on openssh-sftp-server
Summary: packagegroup-core-tools-debug has hard dependency on openssh-sftp-server
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium major
Target Milestone: 1.4 M5
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-10-09 06:50 UTC by tf
Modified: 2013-03-25 11:18 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tf 2012-10-09 06:50:01 UTC
packagegroup-core-tools-debug has hard dependency on openssh-sftp-server, which makes it impossible to select debug-tweaks for images using dropbear. This is a regression from Denzil.
Comment 1 tf 2012-10-09 06:52:49 UTC
Sorry, I obviously meant it's not possible to select tools-debug for images using dropbear.
Comment 2 Saul Wold 2012-10-09 18:37:27 UTC
Based on initial investigation by Paul and myself, we could not directly reproduce this issue, it could be a host issue.  More details about packaging system used, what the actual failure mode is.

I attempted both a RPM and ipk installation and was able to login to both dropbear ssh and sftp with no root password.  I happened to build a qemumips, just because that what I had available.

If you could provide more data that would be very helpful.

I am going to downgrade this to just medium based on the current non-reproducibility.
Comment 3 tf 2012-10-10 07:42:02 UTC
The packaging system is ipkg, and you need to select ssh-server-dropbear, dbg-pkgs and tools-debug image features. The problem is quite simple: open-sftp-server dbg symbols are in openssh-dbg which depends on openssh which conflicts with dropbear, so you get rootfs-time failure:

Collected errors:
 * check_conflicts_for: The following packages conflict with openssh:
 * check_conflicts_for: 	dropbear * 
 * opkg_install_cmd: Cannot install package openssh-dbg.

The easiest fix is to remove open-sftp-server from packagegroup-core-tools-debug, this addition is a new feature in Danny, so it will not be much missed.
Comment 4 Paul Eggleton 2012-10-10 12:53:01 UTC
Ah, so the crucial bit we were missing was dbg-pkgs, which triggers openssh-dbg to be installed since openssh-sftp-server is installed, and openssh-dbg by default depends on the openssh package, which conflicts with dropbear.

I'm not sure what the correct solution is here but somehow the dependency chain needs to be broken. Bug #2605 was how openssh-sftp-server got added to packagegroup-tools-debug; it looks like it was added to support tcf-agent which in turn is there to support Eclipse. One solution would be to move tcf-agent and anything else that is specifically there for Eclipse support to a separate packagegroup that is actually marked as being for Eclipse (e.g. has eclipse in the name) since not everyone needs it.
Comment 5 tf 2012-10-10 14:45:15 UTC
Perhaps I might be better to fix the openssh packaging and add open-sftp-server-dbg instead of bundling it all together?
Comment 6 Paul Eggleton 2013-03-22 19:46:06 UTC
I've posted some RFC patches but I would really like feedback from Jessica (and anyone else who makes use of the tools-debug packagegroup) before they are proposed for merging:

http://lists.linuxtogo.org/pipermail/openembedded-core/2013-March/037205.html
http://lists.linuxtogo.org/pipermail/openembedded-core/2013-March/037206.html
Comment 7 Jessica 2013-03-23 13:29:46 UTC
Paul,

The package group breakup looks reasonable to me.


Thanks,
Jessica
Comment 8 Paul Eggleton 2013-03-25 11:18:44 UTC
Thanks! Patches merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e95ccb7d57b1a2a1cd5cdeb2871c0a0cd334d33e
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1eb2b3dd6363516ffc1ddc4db4af2c2f5dd595cd

Also dropped rsync from packagegroup-tools-debug at the same time (since it was added for Anjuta and is already handled elsewhere):
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=131b66802eea49011ac25d022460ef83dbe86239