From patchwork Fri Jul 7 02:22:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 785328 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]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x3dgq0dPcz9s06 for ; Fri, 7 Jul 2017 12:23:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0763288C14; Fri, 7 Jul 2017 02:23:06 +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 VDlKZHIoXWyQ; Fri, 7 Jul 2017 02:23:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D857C88B25; Fri, 7 Jul 2017 02:23:04 +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 1AE801C1677 for ; Fri, 7 Jul 2017 02:23:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1513F88B25 for ; Fri, 7 Jul 2017 02:23:00 +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 LNvYCOs4ETNa for ; Fri, 7 Jul 2017 02:22:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by whitealder.osuosl.org (Postfix) with ESMTPS id 61EE888B33 for ; Fri, 7 Jul 2017 02:22:58 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id A0B211A80C64; Thu, 6 Jul 2017 23:21:20 -0300 (BRT) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id 8F0841A80E4E; Thu, 6 Jul 2017 23:21:20 -0300 (BRT) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VILmCnf3IStU; Thu, 6 Jul 2017 23:21:20 -0300 (BRT) Received: from p7-1130br.casantos.org (unknown [177.134.39.90]) by mail.datacom.ind.br (Postfix) with ESMTPSA id 2F1201A80C64; Thu, 6 Jul 2017 23:21:20 -0300 (BRT) From: Carlos Santos To: buildroot@buildroot.org Date: Thu, 6 Jul 2017 23:22:36 -0300 Message-Id: <20170707022242.20128-2-casantos@datacom.ind.br> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170707022242.20128-1-casantos@datacom.ind.br> References: <20170707022242.20128-1-casantos@datacom.ind.br> Cc: Karoly Kasza , Ezequiel Garcia Subject: [Buildroot] [PATCH 1/7] linux-pam: introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS 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" This will allow us to use the hidden option in dependent packages, instead of repeating the dependencies in each Config.in file. Signed-off-by: Carlos Santos --- package/linux-pam/Config.in | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in index 33e5154..0daffe4 100644 --- a/package/linux-pam/Config.in +++ b/package/linux-pam/Config.in @@ -1,9 +1,20 @@ -config BR2_PACKAGE_LINUX_PAM - bool "linux-pam" +# Use this option instead of duplicating the dependencies in each +# dependent package. +# +# If you change these dependencies then update the comment below +# and the # corresponding ones in other Config.in files. +# +config BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS + bool + default y depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) depends on !BR2_STATIC_LIBS depends on !BR2_TOOLCHAIN_USES_MUSL depends on BR2_USE_MMU # fork() + +config BR2_PACKAGE_LINUX_PAM + bool "linux-pam" + depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS select BR2_PACKAGE_FLEX help A Security Framework that Provides Authentication for Applications @@ -11,5 +22,4 @@ config BR2_PACKAGE_LINUX_PAM http://linux-pam.org comment "linux-pam needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library" - depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \ - || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL + depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS