From patchwork Thu Aug 8 15:19:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre PAYEN X-Patchwork-Id: 1144068 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="V1l0M4XA"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 464BrQ4KWyz9sNy for ; Fri, 9 Aug 2019 01:20:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 84C018829D; Thu, 8 Aug 2019 15:20:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8J0VS88Y9INP; Thu, 8 Aug 2019 15:20:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1E00B8822A; Thu, 8 Aug 2019 15:20:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4EE4A1BF302 for ; Thu, 8 Aug 2019 15:19:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 480CB20403 for ; Thu, 8 Aug 2019 15:19:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zxVNBYxh0fSl for ; Thu, 8 Aug 2019 15:19:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by silver.osuosl.org (Postfix) with ESMTPS id B60A120402 for ; Thu, 8 Aug 2019 15:19:57 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id f72so2788106wmf.5 for ; Thu, 08 Aug 2019 08:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8u8oRVXYJsYli/Eh7WFPB/HGacCisbmxM6un9bYWplo=; b=V1l0M4XAav9qAbS6JHSmE7+utmANIeNhtgX6CYBcv6GkHC0v+CFJG70GA1q0X4+ZoU yusd0vtJIVHhENXivTAqqzBcx6doLl4jqMxG5l+ssQ2ad5Q6re/x8CRRHePwZ4bKvNDp P7qyG2LmnJdcoFqNbBWVTEkO5rPEeujV9hwlAdphOuFbyt2EtgOJdAc5tf4viLEJys+I 9Yr0XHypNZjpnJbtOeRJm0lzJu9CGxYfJ1gEJ3KP8MqdoTkATUgjtTgVyoH3d1rYbNEA NJ3BUg4B4fGWNxILeh0dJiHf4SZ/+2oKV26SRVPFe/xeGClgkaLnS4ZptbvUiioTA3B2 cb6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8u8oRVXYJsYli/Eh7WFPB/HGacCisbmxM6un9bYWplo=; b=G9/BNR+9TB67ie1IuDUPUfTtofFdz7jaeP7gDS2gLFVZ0+ZnSTKknZpFHOJcBI9pCH eds72LDQN7SewdtgnuYRO/xfPb+izfnBgaigYaFM7HOf39vEyiBTJsEOTHkyJQ4XX2cz 3z0E9gEkwcJ2psJFo46DAntICRyRwUowI5mmDUg0D04zeEPI8RSVHvO78/O1QauAEx7p 5NLLemL20f9t+FMUNnMKN2xtx15kqtUUUcGbfL7MDNBg2KNVhDGRxh0MeP18HC2HWMAr acFrulAa+KNTKGhjtniB+chnHd2F2Ab2Q1BxV2XiOsygTwVC518Gq4LsgHN68gsQBS0+ WVXg== X-Gm-Message-State: APjAAAXyGt8sE4/dFEZogCt3q/2BTzmH7osy+ilTPQ7P2ukUwbivWYQa tf2bI1OlYxTUqGmIIm27NwStV/g36ZI= X-Google-Smtp-Source: APXvYqxGjEdKY7XbnINs9VLW0mm+M372i9Wi4wM2gI4oUTKDjwav9635Sd9BqQ41L3SzbzZGSLwxqA== X-Received: by 2002:a05:600c:2144:: with SMTP id v4mr3302840wml.146.1565277595833; Thu, 08 Aug 2019 08:19:55 -0700 (PDT) Received: from P-NAN-GEORGETOWN.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id e10sm11742859wrn.33.2019.08.08.08.19.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 08:19:55 -0700 (PDT) From: Aalx To: buildroot@buildroot.org Date: Thu, 8 Aug 2019 17:19:50 +0200 Message-Id: <20190808151950.26321-1-alexandre.payen@smile.fr> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] package/python-numpy: add reverse dependency on packages using python-numpy X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre PAYEN , Romain Naour , Alexey Brodkin , Damien DUVAL Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Alexandre PAYEN Since commit 1aa59097e61d524bb55ab1fcd4fbe5098b3e0bed[1] is merged, a new build failure occurs when selecting packages which needs python-numpy as dependency. This fix a build issue[2] by adding the correct reverse dependencies to the following packages : - gnuradio (for python support) - opencv3 (for python support) - piglit - python-matplotlib So : - adding to every listed packages `depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)` and add a comment to explain what happend. [1] https://git.buildroot.net/buildroot/commit/?id=1aa59097e61d524bb55ab1fcd4fbe5098b3e0bed [2] http://autobuild.buildroot.org/results/b76/b76b6cf9602bcf5df69a7276762eab54cf74007b Signed-off-by: Alexandre PAYEN Cc: Alexey Brodkin Cc: Arnout Vandecappelle (Essensium/Mind) Cc: Damien DUVAL Cc: Romain Naour Reviewed-by: Romain Naour --- I also checked there is no more dependecy propagation. v2: Remove gr-osmosdr propagation because it depends on gnuradio which depends on glic or musl. --- package/gnuradio/Config.in | 4 ++++ package/opencv3/Config.in | 4 ++++ package/piglit/Config.in | 4 ++++ package/python-matplotlib/Config.in | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/package/gnuradio/Config.in b/package/gnuradio/Config.in index 6d0669779f..80f6a1c535 100644 --- a/package/gnuradio/Config.in +++ b/package/gnuradio/Config.in @@ -66,11 +66,15 @@ config BR2_PACKAGE_GNURADIO_PYTHON bool "python support" depends on BR2_PACKAGE_PYTHON depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy select BR2_PACKAGE_BOOST_PYTHON select BR2_PACKAGE_PYTHON_NUMPY # runtime help Enable python component +comment "python support needs glibc or musl" + depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) + config BR2_PACKAGE_GNURADIO_UTILS bool "gr-utils support" depends on BR2_PACKAGE_GNURADIO_PYTHON diff --git a/package/opencv3/Config.in b/package/opencv3/Config.in index 3a6ff8e80c..cf7763d4ae 100644 --- a/package/opencv3/Config.in +++ b/package/opencv3/Config.in @@ -158,11 +158,15 @@ config BR2_PACKAGE_OPENCV3_LIB_PYTHON bool "python" depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy select BR2_PACKAGE_PYTHON_NUMPY help Include opencv_python module into the OpenCV build. No python example is installed. +comment "python support needs glibc or musl" + depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) + config BR2_PACKAGE_OPENCV3_LIB_SHAPE bool "shape" # opencv_core dependency is already enabled diff --git a/package/piglit/Config.in b/package/piglit/Config.in index 7a16c94284..736fd95d71 100644 --- a/package/piglit/Config.in +++ b/package/piglit/Config.in @@ -6,6 +6,7 @@ config BR2_PACKAGE_PIGLIT BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND || \ BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL || \ BR2_PACKAGE_WAFFLE_SUPPORTS_GBM + depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_HAS_LIBGL select BR2_PACKAGE_LIBPNG select BR2_PACKAGE_LIBXKBCOMMON if BR2_PACKAGE_WAYLAND @@ -29,3 +30,6 @@ config BR2_PACKAGE_PIGLIT implementations. https://piglit.freedesktop.org + +comment "piglit needs glibc or musl" + depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) diff --git a/package/python-matplotlib/Config.in b/package/python-matplotlib/Config.in index 14f43568f3..07160affd0 100644 --- a/package/python-matplotlib/Config.in +++ b/package/python-matplotlib/Config.in @@ -3,6 +3,7 @@ config BR2_PACKAGE_PYTHON_MATPLOTLIB depends on BR2_INSTALL_LIBSTDCPP depends on BR2_PACKAGE_PYTHON3 depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy select BR2_PACKAGE_FREETYPE # runtime select BR2_PACKAGE_LIBPNG # runtime select BR2_PACKAGE_PYTHON_CYCLER @@ -23,3 +24,6 @@ config BR2_PACKAGE_PYTHON_MATPLOTLIB comment "python-matplotlib needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP + +comment "python-matplotlib needs glibc or musl" + depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)