From patchwork Fri Dec 6 19:57:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 298235 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 18A8F2C00A9 for ; Sat, 7 Dec 2013 06:57:20 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6E2658B9A5; Fri, 6 Dec 2013 19:57:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6_Qcu-a4QDlI; Fri, 6 Dec 2013 19:57:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E84398BD4E; Fri, 6 Dec 2013 19:57:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5421C1BF94B for ; Fri, 6 Dec 2013 19:57:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4DDB08B8FA for ; Fri, 6 Dec 2013 19:57:15 +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 y6mKUZ0GNKDg for ; Fri, 6 Dec 2013 19:57:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5F2A68B7AC for ; Fri, 6 Dec 2013 19:57:14 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id q58so1164396wes.16 for ; Fri, 06 Dec 2013 11:57:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=mmFiAD+EczCGuCS8Oe3f3tmx/wDviR1qWvy4Q3x+aUU=; b=MZ76wR13UZwxn9haexFzJc094aqFBcG/3aWhIovfOKaZ8WNVuTHaPm9R2xDkb4BJhL iG7H4YjqySQwdvK3eBIKYckZcBMZMQcxpg1ClflVlC1EnTh31iPLoRV9FUWL+e3rNU+F uBXEpM3NmSKCJC6gwY83azytPmE/UHVd9GLANCU+dJ3vssaaK9iz0AttF1XAMIN+5wS2 NKx5GCMmmJ1TRLN0Hm3bku3xZfeoHDnGuDl5nDKBByfX20R/n7R8w7BsjLE49bdJf7rG jjaMZeVVNmy3Zd7XlkFA1OOXKKq0GA/0BiQOH1ttJ4w1K+2fbEjg4jBK6YUfyY2ZgWN1 /ZcQ== X-Received: by 10.180.188.100 with SMTP id fz4mr3943335wic.57.1386359832952; Fri, 06 Dec 2013 11:57:12 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id uc18sm9150911wib.11.2013.12.06.11.57.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Dec 2013 11:57:12 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Fri, 6 Dec 2013 20:57:08 +0100 Message-Id: <7340e9cea0b72ac4dbee99d523196cd59281cf87.1386359706.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 1/3] package/parted: relax dependency on lvm2 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net From: "Yann E. MORIN" parted can be configured without support for LVM volumes, so we can relax the dependency on lvm2, and make it an optional feature. Remove now no-longer needed dependency on MMU because of lvm2. (Based on a code-snippet from Thomas.) Cc: Thomas Petazzoni Signed-off-by: "Yann E. MORIN" --- package/parted/Config.in | 3 --- package/parted/parted.mk | 9 ++++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package/parted/Config.in b/package/parted/Config.in index 8af2693..321fdf7 100644 --- a/package/parted/Config.in +++ b/package/parted/Config.in @@ -2,8 +2,6 @@ config BR2_PACKAGE_PARTED bool "parted" depends on BR2_LARGEFILE depends on BR2_USE_WCHAR - depends on BR2_USE_MMU # lvm2 - select BR2_PACKAGE_LVM2 select BR2_PACKAGE_READLINE select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID @@ -13,5 +11,4 @@ config BR2_PACKAGE_PARTED http://www.gnu.org/software/parted/ comment "parted needs a toolchain w/ largefile, wchar" - depends on BR2_USE_MMU depends on !(BR2_LARGEFILE && BR2_USE_WCHAR) diff --git a/package/parted/parted.mk b/package/parted/parted.mk index 773e332..231ab35 100644 --- a/package/parted/parted.mk +++ b/package/parted/parted.mk @@ -7,9 +7,16 @@ PARTED_VERSION = 3.1 PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz PARTED_SITE = $(BR2_GNU_MIRROR)/parted -PARTED_DEPENDENCIES = readline util-linux lvm2 +PARTED_DEPENDENCIES = readline util-linux PARTED_INSTALL_STAGING = YES PARTED_LICENSE = GPLv3+ PARTED_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_LVM2),y) +PARTED_DEPENDENCIES += lvm2 +PARTED_CONF_OPT += --enable-device-mapper +else +PARTED_CONF_OPT += --disable-device-mapper +endif + $(eval $(autotools-package))