Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] utils.bbclass: remove the unused oe_system
@ 2012-05-24 15:49 Robert Yang
  2012-05-24 15:49 ` [PATCH 1/1] " Robert Yang
  2012-05-25 16:41 ` [PATCH 0/1] " Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2012-05-24 15:49 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

The following changes since commit 6558abda67956e4fab1304b0cdf03c65f18fabd5:

  qemu: disable vnc-jpeg compression (2012-05-24 08:53:57 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib robert/oe_system
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/oe_system

Robert Yang (1):
  utils.bbclass: remove the unused oe_system

 meta/classes/utils.bbclass |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] utils.bbclass: remove the unused oe_system
  2012-05-24 15:49 [PATCH 0/1] utils.bbclass: remove the unused oe_system Robert Yang
@ 2012-05-24 15:49 ` Robert Yang
  2012-05-25 16:41 ` [PATCH 0/1] " Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2012-05-24 15:49 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

The following functions in meta/classes/utils.bbclass were not
used by anyone, and they didn't work when I tried to use them:

def oe_popen_env(d):
def oe_run(d, cmd, **kwargs):
def oe_popen(d, cmd, **kwargs):
def oe_system(d, cmd, **kwargs):

There error was:
AttributeError: type object 'str' has no attribute 'getVar'

We have bitbake/lib/bb/process.py to instead, so remove them.

[YOCTO #2489]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes/utils.bbclass |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index fde8f44..f8b09b4 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -58,32 +58,6 @@ def is_machine_specific(d):
             if any(fetcher.localpath(url).startswith(mp + "/") for mp in machinepaths):
                 return True
 
-def oe_popen_env(d):
-    env = d.getVar("__oe_popen_env", False)
-    if env is None:
-        env = {}
-        for v in d.keys():
-            if d.getVarFlag(v, "export"):
-                env[v] = d.getVar(v, True) or ""
-        d.setVar("__oe_popen_env", env)
-    return env
-
-def oe_run(d, cmd, **kwargs):
-    import oe.process
-    kwargs["env"] = oe_popen_env(d)
-    return oe.process.run(cmd, **kwargs)
-
-def oe_popen(d, cmd, **kwargs):
-    import oe.process
-    kwargs["env"] = oe_popen_env(d)
-    return oe.process.Popen(cmd, **kwargs)
-
-def oe_system(d, cmd, **kwargs):
-    """ Popen based version of os.system. """
-    if not "shell" in kwargs:
-        kwargs["shell"] = True
-    return oe_popen(d, cmd, **kwargs).wait()
-
 oe_soinstall() {
 	# Purpose: Install shared library file and
 	#          create the necessary links
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] utils.bbclass: remove the unused oe_system
  2012-05-24 15:49 [PATCH 0/1] utils.bbclass: remove the unused oe_system Robert Yang
  2012-05-24 15:49 ` [PATCH 1/1] " Robert Yang
@ 2012-05-25 16:41 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-05-25 16:41 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao

On 05/24/2012 08:49 AM, Robert Yang wrote:
> The following changes since commit 6558abda67956e4fab1304b0cdf03c65f18fabd5:
>
>    qemu: disable vnc-jpeg compression (2012-05-24 08:53:57 +0100)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib robert/oe_system
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/oe_system
>
> Robert Yang (1):
>    utils.bbclass: remove the unused oe_system
>
>   meta/classes/utils.bbclass |   26 --------------------------
>   1 files changed, 0 insertions(+), 26 deletions(-)
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

Merged into OE-Core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-25 16:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-24 15:49 [PATCH 0/1] utils.bbclass: remove the unused oe_system Robert Yang
2012-05-24 15:49 ` [PATCH 1/1] " Robert Yang
2012-05-25 16:41 ` [PATCH 0/1] " Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox