[oe-commits] Phil Blundell : package.bbclass: don' t output postinst for ldconfig if USE_LDCONFIG=0
GIT User account
git at amethyst.openembedded.net
Sun Oct 19 10:18:05 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 14cc2181163076440c4cae97fc674d8910f53b09
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=14cc2181163076440c4cae97fc674d8910f53b09
Author: Phil Blundell <philb at gnu.org>
Date: Sun Oct 19 11:16:57 2008 +0100
package.bbclass: don't output postinst for ldconfig if USE_LDCONFIG=0
---
classes/package.bbclass | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/classes/package.bbclass b/classes/package.bbclass
index a12bfb0..0601885 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -594,6 +594,11 @@ python package_do_shlibs() {
else:
snap_symlinks = False
+ if (bb.data.getVar('USE_LDCONFIG', d, True) or "1") == "1":
+ use_ldconfig = True
+ else:
+ use_ldconfig = False
+
needed = {}
private_libs = bb.data.getVar('PRIVATE_LIBS', d, 1)
for pkg in packages.split():
@@ -647,7 +652,7 @@ python package_do_shlibs() {
fd.write(ver + '\n')
fd.close()
package_stagefile(shver_file, d)
- if needs_ldconfig:
+ if needs_ldconfig and use_ldconfig:
bb.debug(1, 'adding ldconfig call to postinst for %s' % pkg)
postinst = bb.data.getVar('pkg_postinst_%s' % pkg, d, 1) or bb.data.getVar('pkg_postinst', d, 1)
if not postinst:
More information about the Openembedded-commits
mailing list