From patchwork Mon Oct 5 14:01:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwenhael Goavec-Merou X-Patchwork-Id: 526328 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 2AD5514090A for ; Tue, 6 Oct 2015 01:05:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6586C918B9; Mon, 5 Oct 2015 14:05:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id STuyjD7g5bw1; Mon, 5 Oct 2015 14:05:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3B56191878; Mon, 5 Oct 2015 14:05:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 937021C2962 for ; Mon, 5 Oct 2015 14:05:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8C9C791878 for ; Mon, 5 Oct 2015 14:05:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5GoSUHZXOs3v for ; Mon, 5 Oct 2015 14:05:54 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6764B91874 for ; Mon, 5 Oct 2015 14:05:54 +0000 (UTC) Received: from serveur.trabucayre.com (unknown [78.252.129.8]) by smtp3-g21.free.fr (Postfix) with ESMTP id 943B1A623A; Mon, 5 Oct 2015 16:05:51 +0200 (CEST) From: Gwenhael Goavec-Merou To: buildroot@busybox.net Date: Mon, 5 Oct 2015 16:01:26 +0200 Message-Id: <1444053686-6756-1-git-send-email-gwenj@trabucayre.com> X-Mailer: git-send-email 2.1.4 Cc: Gwenhael Goavec-Merou Subject: [Buildroot] [PATCH v4 1/1] gnuradio: gnuradio-python: add missing runtime dependency to python-numpy X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Gwenhael Goavec-Merou Some gnuradio python blocks needs python-numpy present. Without python-numpy, gnuradio-python based apps fails, on runtime, with traceback like: Traceback (most recent call last): File "./top_block.py", line 18, in from gnuradio import analog File "/usr/lib/python2.7/site-packages/gnuradio/analog/__init__.py", line 35, in from am_demod import * File "/usr/lib/python2.7/site-packages/gnuradio/analog/am_demod.py", line 22, in from gnuradio import gr File "/usr/lib/python2.7/site-packages/gnuradio/gr/__init__.py", line 44, in from top_block import * File "/usr/lib/python2.7/site-packages/gnuradio/gr/top_block.py", line 30, in from hier_block2 import hier_block2 File "/usr/lib/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 26, in import pmt File "/usr/lib/python2.7/site-packages/pmt/__init__.py", line 58, in from pmt_to_python import pmt_to_python as to_python File "/usr/lib/python2.7/site-packages/pmt/pmt_to_python.py", line 22, in import numpy ImportError: No module named numpy Signed-off-by: Gwenhael Goavec-Merou --- Changes v3 -> v4: * add #runtime comment to BR2_PACKAGE_PYTHON_NUMPY select; * suppress python-numpy in GNURADIO_DEPENDENCIES variable (not needed for buildtime) Changes v2 -> v3: * Since commit 826a2bc18bc0be0b08f2926c9fa1819fe909557c no special attentions is needed to select python-numpy. So BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS is no more needed Changes v1 -> v2: * Add dependy to BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS; * gnuradio-python select numpy; * gnuradio-utils select again gnuradio-python; * fix commit message --- package/gnuradio/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/gnuradio/Config.in b/package/gnuradio/Config.in index e264a21..8da1a13 100644 --- a/package/gnuradio/Config.in +++ b/package/gnuradio/Config.in @@ -47,6 +47,7 @@ config BR2_PACKAGE_GNURADIO_PYTHON bool "python support" select BR2_PACKAGE_BOOST_PYTHON select BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_NUMPY #runtime help Enable python component