diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-02-14 23:19:27 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2014-02-17 09:22:38 -0800 |
commit | af841644dfc682e9774287331ef39c3cd1ede978 (patch) | |
tree | 95b0c4bfe89de5b50efa054967eb159c3959b2b1 | |
parent | 1364536e4a64f5c5f1889021ae78300fda2c3790 (diff) | |
download | openembedded-core-contrib-af841644dfc682e9774287331ef39c3cd1ede978.tar.gz |
rootfs.py: Check for LDCONFIGDEPEND being empty string
We override LDCONFIGDEPEND to be empty string for uclibc
however the current check is for it being None as a result
the function is still executed but ldconfig-native is not
built as dependency for rootfs when building with uclibc
Fixes errors like below
File:
'/home/kraj/work/angstrom-repo/sources/openembedded-core/meta/lib/oe/rootfs.py',
lineno: 191, function: _run_ldconfig
0187: def _run_ldconfig(self):
0188: if self.d.getVar('LDCONFIGDEPEND', True) is not None:
0189: bb.note("Executing: ldconfig -r" +
self.image_rootfs + "-c new -v")
0190: self._exec_shell_cmd(['ldconfig', '-r',
self.image_rootfs, '-c',
*** 0191: 'new', '-v'])
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta/lib/oe/rootfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index d149ca3eff..3bcb812e5f 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -185,7 +185,7 @@ class Rootfs(object): self._handle_intercept_failure(registered_pkgs) def _run_ldconfig(self): - if self.d.getVar('LDCONFIGDEPEND', True) is not None: + if self.d.getVar('LDCONFIGDEPEND', True) != "": bb.note("Executing: ldconfig -r" + self.image_rootfs + "-c new -v") self._exec_shell_cmd(['ldconfig', '-r', self.image_rootfs, '-c', 'new', '-v']) |