python-treq: add missing BR2_INSTALL_LIBSTDCPP dependency
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 17 May 2016 21:39:59 +0000 (23:39 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 24 May 2016 15:18:11 +0000 (17:18 +0200)
python-treq selects python-pyopenssl, which depends on C++ support, but
this dependency was not propagated to python-treq, causing the following
kconfig warning:

warning: (BR2_PACKAGE_PYTHON_TREQ) selects BR2_PACKAGE_PYTHON_PYOPENSSL which has unmet direct dependencies ((BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3) && BR2_INSTALL_LIBSTDCPP)

This commit fixes that by adding the appropriate dependency.

Cc: Yegor Yefremov <yegorslists@googlemail.com>
[Thomas: add Config.in comment.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python-treq/Config.in

index a8590a97408b8d20dad6983c40da3c02616344b0..4a237373d1830505bd581989a21c5f1f1b8cb5ea 100644 (file)
@@ -5,9 +5,13 @@ config BR2_PACKAGE_PYTHON_TREQ
        select BR2_PACKAGE_PYTHON_SIX # runtime
        select BR2_PACKAGE_PYTHON_TWISTED # runtime
        select BR2_PACKAGE_PYTHON_PYOPENSSL # runtime
+       depends on BR2_INSTALL_LIBSTDCPP # python-pyopenssl
        help
          treq is an HTTP library inspired by requests but written on
          top of Twisted's Agents.  It provides a simple, higher level
          API for making HTTP requests when using Twisted.
 
          https://github.com/twisted/treq
+
+comment "python-treq needs a toolchain w/ C++"
+       depends on !BR2_INSTALL_LIBSTDCPP