[oe-commits] Martin Jansa : lzma: replace oe.process.run with subprocess. call in do_unpack, drop NATIVE_INSTALL_WORKS
git at git.openembedded.org
git at git.openembedded.org
Mon Sep 24 08:10:51 UTC 2012
Module: meta-openembedded.git
Branch: master
Commit: ac89f82dc84c9222318642f6b75d5a3dad324594
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=ac89f82dc84c9222318642f6b75d5a3dad324594
Author: Martin Jansa <Martin.Jansa at gmail.com>
Date: Sat Sep 22 13:59:03 2012 +0200
lzma: replace oe.process.run with subprocess.call in do_unpack, drop NATIVE_INSTALL_WORKS
* oe.process was removed in
http://git.openembedded.org/openembedded-core/commit/meta/lib/oe?id=d56062cbf92ef206bf06c767befacb66927a9a36
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/recipes-support/lzma/lzma.inc | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/meta-oe/recipes-support/lzma/lzma.inc b/meta-oe/recipes-support/lzma/lzma.inc
index 9718600..457d7f4 100644
--- a/meta-oe/recipes-support/lzma/lzma.inc
+++ b/meta-oe/recipes-support/lzma/lzma.inc
@@ -2,7 +2,7 @@ DESCRIPTION = "LZMA is a general compression method. LZMA provides high compress
HOMEPAGE = "http://www.7-zip.org/"
LICENSE = "LGPL"
LIC_FILES_CHKSUM = "file://lzma.txt;md5=20251cdc2e3793cceab11878d0aa11b1"
-INC_PR = "r6"
+INC_PR = "r7"
SRC_URI = "http://downloads.sourceforge.net/sevenzip/lzma${@bb.data.getVar('PV',d,1).replace('.','')}.tar.bz2;subdir=${BPN}-${PV} \
file://001-large_files.patch \
@@ -14,10 +14,10 @@ SRC_URI = "http://downloads.sourceforge.net/sevenzip/lzma${@bb.data.getVar('PV',
EXTRA_OEMAKE = "-f makefile.gcc"
do_unpack_append() {
- import oe.process
+ import subprocess
# Replace MS-DOS line-endings with Unix style line-endings
- oe.process.run("find . -type f -print0 | xargs -0 sed 's/\r$//' -i",
- cwd=d.getVar("S", True))
+ subprocess.call("find . -type f -print0 | xargs -0 sed 's/\r$//' -i",
+ cwd=d.getVar("S", True), shell=True)
}
do_compile() {
@@ -32,5 +32,4 @@ do_install() {
oe_libinstall -a -C C/LzmaUtil liblzma ${D}${libdir}
}
-NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"
More information about the Openembedded-commits
mailing list