Return-Path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mail.openembedded.org (Postfix) with ESMTP id B9414609B2 for ; Wed, 6 Aug 2014 12:03:50 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id lf10so3346549pab.2 for ; Wed, 06 Aug 2014 05:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=a6qAeMRzxZVj6GosQTFjKH54gqh1MGjlHNmkRU3XUs8=; b=TJNGzib3JsqyPh/4xxt5Xyy8Mn2Fgd8OeVQs8A0dGKBNFGG6TdZsWUM3Kp6KHaDOgC 0zLL0AS7y932RWEmT8AgbDF8DGpRYJLb/daJyMUfaKDrZcaACMXhCm943oE898eOLnBY ToSZ3q0IQgn2brDlUvxZiR7Eqfi79Zfz8bKUFrlIpQHZ8N0FgXoRzkxOXH2pqWrzMBLO Vgs8p8BJzPjyQvYXSBEeuSJu9uBQsD3HlmgqE6+18CimHqQKDXuuZ32fX6ePF6kZRoXO 9WvLAxkAARrMpdA5mCzI0PJp3N9US7VTzv63UNoI9R48zjtO1t5TyJMelOo3J8jO1Yli +/7w== X-Received: by 10.66.163.226 with SMTP id yl2mr10802471pab.73.1407326631724; Wed, 06 Aug 2014 05:03:51 -0700 (PDT) Received: from linux-z8xt.inp.mentorg.com ([139.181.35.34]) by mx.google.com with ESMTPSA id ry10sm2974314pab.38.2014.08.06.05.03.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Aug 2014 05:03:50 -0700 (PDT) From: Sujith H To: openembedded-core@lists.openembedded.org Date: Wed, 6 Aug 2014 17:30:25 +0530 Message-Id: <1407326425-7001-1-git-send-email-sujith.h@gmail.com> X-Mailer: git-send-email 1.8.4 Cc: Sujith H Subject: [PATCH] opkg-utils: allow disabling update-alternatives X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2014 12:03:51 -0000 From: Sujith H This is needed to deal with the situation where we're using ipk packaging, so opkg-utils must be built regardless of what update-alternatives provider we prefer. The downside to the current implementation is the need to adjust PACKAGECONFIG as well as PREFERRED_PROVIDER, but it is more explicit that way. Signed-off-by: Christopher Larson Signed-off-by: Sujith H --- meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb index 693c216..952fce4 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb @@ -19,11 +19,17 @@ TARGET_CC_ARCH += "${LDFLAGS}" PYTHONRDEPS = "python python-shell python-io python-math python-crypt python-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold" PYTHONRDEPS_class-native = "" -PACKAGECONFIG = "python" +PACKAGECONFIG = "python update-alternatives" PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}" +PACKAGECONFIG[update-alternatives] = ",,," + +PROVIDES_remove = "${@'virtual/update-alternatives' if 'update-alternatives' not in PACKAGECONFIG.split() else ''}" do_install() { oe_runmake PREFIX=${prefix} DESTDIR=${D} install + if ${@'true' if 'update-alternatives' not in PACKAGECONFIG.split() else 'false'}; then + rm -f "${D}${bindir}/update-alternatives" + fi } PACKAGES =+ "update-alternatives-opkg" -- 1.8.4