From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13])
by mail.openembedded.org (Postfix) with ESMTP id 43546755F1
for ;
Tue, 26 May 2015 07:26:36 +0000 (UTC)
Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com
[147.11.189.41])
by mail1.windriver.com (8.15.1/8.15.1) with ESMTPS id t4Q7QcNT013807
(version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL)
for ;
Tue, 26 May 2015 00:26:38 -0700 (PDT)
Received: from pek-lzhou2-d1.corp.ad.wrs.com (128.224.162.243) by
ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server
(TLS) id 14.3.224.2; Tue, 26 May 2015 00:26:37 -0700
From: Li Zhou
To:
Date: Tue, 26 May 2015 15:26:25 +0800
Message-ID: <1432625185-12163-1-git-send-email-li.zhou@windriver.com>
X-Mailer: git-send-email 1.7.9.5
MIME-Version: 1.0
X-Originating-IP: [128.224.162.243]
Subject: [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg
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: Tue, 26 May 2015 07:26:37 -0000
Content-Type: text/plain
When update-alternatives is moved from opkg to opkg-utils, a line in
the file is changed
from
to .
But opkglibdir doesn't equal to "/usr/lib" here, but equal to "/var/lib"
in oe-core build by configuring --with-opkglibdir.
opkg-utils can't get the var value in opkg, so here define OPKGLIBDIR to
set the path.
Signed-off-by: Li Zhou
---
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 2800a5d..9c1c995 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -22,8 +22,11 @@ PYTHONRDEPS_class-native = ""
PACKAGECONFIG = "python"
PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}"
+OPKGLIBDIR ?= "/var/lib"
+
do_install() {
oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+ sed -i s:/usr/lib/opkg:${OPKGLIBDIR}/opkg: ${D}${bindir}/update-alternatives
}
PACKAGES =+ "update-alternatives-opkg"
--
1.7.9.5