[oe-commits] org.oe.dev packages/glibc/glibc-packages.bbclass: Oh no, tabs :)

freyther commit openembedded-commits at lists.openembedded.org
Wed Nov 29 13:47:32 UTC 2006


packages/glibc/glibc-packages.bbclass: Oh no, tabs :)

    Use spaces in anonfunc, needed for BitBake trunk
    to speedup parsing a bit

Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: d28ae51c1ef88bcd649c47caa454702e9fa7318e
ViewMTN: http://monotone.openembedded.org/revision.psp?id=d28ae51c1ef88bcd649c47caa454702e9fa7318e
Files:
1
packages/glibc/glibc-package.bbclass
Diffs:

#
# mt diff -r7537d2b19832416ba112bdd781549103674af8cd -rd28ae51c1ef88bcd649c47caa454702e9fa7318e
#
# 
# 
# patch "packages/glibc/glibc-package.bbclass"
#  from [a35b7a1b2020a92913194572208689583aaab9d1]
#    to [21effc34ed378946cee7be3094ae8b03ca50997e]
# 
============================================================
--- packages/glibc/glibc-package.bbclass	a35b7a1b2020a92913194572208689583aaab9d1
+++ packages/glibc/glibc-package.bbclass	21effc34ed378946cee7be3094ae8b03ca50997e
@@ -56,9 +56,9 @@ def get_glibc_fpu_setting(bb, d):
 DESCRIPTION_glibc-utils = "glibc: misc utilities like iconf, local, gencat, tzselect, rpcinfo, ..."
 
 def get_glibc_fpu_setting(bb, d):
-	if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
-		return "--without-fp"
-	return ""
+    if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+        return "--without-fp"
+    return ""
 
 EXTRA_OECONF += "${@get_glibc_fpu_setting(bb, d)}"
 
@@ -116,23 +116,23 @@ python __anonymous () {
 }
 
 python __anonymous () {
-	enabled = bb.data.getVar("ENABLE_BINARY_LOCALE_GENERATION", d, 1)
+    enabled = bb.data.getVar("ENABLE_BINARY_LOCALE_GENERATION", d, 1)
 
-	if enabled and int(enabled):
-		import re
+    if enabled and int(enabled):
+        import re
 
-		target_arch = bb.data.getVar("TARGET_ARCH", d, 1)
-		binary_arches = bb.data.getVar("BINARY_LOCALE_ARCHES", d, 1) or ""
+        target_arch = bb.data.getVar("TARGET_ARCH", d, 1)
+        binary_arches = bb.data.getVar("BINARY_LOCALE_ARCHES", d, 1) or ""
 
-		for regexp in binary_arches.split(" "):
-			r = re.compile(regexp)
+        for regexp in binary_arches.split(" "):
+            r = re.compile(regexp)
 
-			if r.match(target_arch):
-				depends = bb.data.getVar("DEPENDS", d, 1)
-				depends = "%s qemu-native" % depends
-				bb.data.setVar("DEPENDS", depends, d)
-				bb.data.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "1", d)
-				break
+            if r.match(target_arch):
+                depends = bb.data.getVar("DEPENDS", d, 1)
+                depends = "%s qemu-native" % depends
+                bb.data.setVar("DEPENDS", depends, d)
+                bb.data.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "1", d)
+                break
 }
 
 do_prep_locale_tree() {
@@ -308,8 +308,8 @@ python populate_packages_prepend () {
 # We want to do this indirection so that we can safely 'return'
 # from the called function even though we're prepending
 python populate_packages_prepend () {
-	if bb.data.getVar('DEBIAN_NAMES', d, 1):
-		bb.data.setVar('PKG_glibc', 'libc6', d)
-		bb.data.setVar('PKG_glibc-dev', 'libc6-dev', d)
-	bb.build.exec_func('package_do_split_gconvs', d)
+    if bb.data.getVar('DEBIAN_NAMES', d, 1):
+        bb.data.setVar('PKG_glibc', 'libc6', d)
+        bb.data.setVar('PKG_glibc-dev', 'libc6-dev', d)
+    bb.build.exec_func('package_do_split_gconvs', d)
 }






More information about the Openembedded-commits mailing list