Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Mike Looijmans <milo-software@users.sourceforge.net>
To: openembedded-devel@lists.openembedded.org
Cc: Mike Looijmans <milo-software@users.sourceforge.net>
Subject: [PATCH] python-twisted: Fix dependencies of twisted modules
Date: Tue, 27 Jan 2015 19:08:36 +0100	[thread overview]
Message-ID: <1422382116-22523-1-git-send-email-milo-software@users.sourceforge.net> (raw)

When installing just "twisted-web" on a device, none of the dependencies
are being copied, it wouldn't even install python-core. Fix the recipe so
that its packages have proper dependencies, and no longer require to install
the empty python-twisted meta recipe.

Add "python-contextlib" to the core dependencies and stop causing systems
to crash with:
  File "/usr/lib/python2.7/site-packages/twisted/python/threadpool.py", line 18, in <module>
    ImportError: No module named contextlib

Signed-off-by: Mike Looijmans <milo-software@users.sourceforge.net>
---
 .../python/python-twisted_13.2.0.bb                |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-twisted_13.2.0.bb b/meta-python/recipes-devtools/python/python-twisted_13.2.0.bb
index 80d64a0..8930169 100644
--- a/meta-python/recipes-devtools/python/python-twisted_13.2.0.bb
+++ b/meta-python/recipes-devtools/python/python-twisted_13.2.0.bb
@@ -38,8 +38,7 @@ PACKAGES += "\
     ${PN}-core \
 "
 
-RDEPENDS_${PN} = "python-core python-zopeinterface"
-RDEPENDS_${PN} += "\
+RDEPENDS_${PN} = "\
     ${PN}-conch \
     ${PN}-lore \
     ${PN}-mail \
@@ -50,6 +49,20 @@ RDEPENDS_${PN} += "\
     ${PN}-words \
 "
 
+RDEPENDS_${PN}-core = "python-core python-zopeinterface python-contextlib"
+RDEPENDS_${PN}-test = "${PN}"
+RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols"
+RDEPENDS_${PN}-lore = "${PN}-core"
+RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
+RDEPENDS_${PN}-names = "${PN}-core"
+RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols"
+RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols"
+RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols"
+RDEPENDS_${PN}-words += "${PN}-core"
+RDEPENDS_${PN}-flow += "${PN}-core"
+RDEPENDS_${PN}-pair += "${PN}-core"
+RDEPENDS_${PN}-dbg = "${PN}"
+
 ALLOW_EMPTY_${PN} = "1"
 FILES_${PN} = ""
 
-- 
1.7.9.5



             reply	other threads:[~2015-01-27 18:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27 18:08 Mike Looijmans [this message]
2015-01-28 10:48 ` [PATCH] python-twisted: Fix dependencies of twisted modules Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1422382116-22523-1-git-send-email-milo-software@users.sourceforge.net \
    --to=milo-software@users.sourceforge.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox