[oe-commits] Denys Dmytriyenko : package.bbclass: skip symlinks when generating shlib info in package_do_shlibs()

GIT User account git at amethyst.openembedded.net
Mon Jan 19 20:52:33 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f45f10e5f35a0c26c67d56cebeda085799419b8f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f45f10e5f35a0c26c67d56cebeda085799419b8f

Author: Denys Dmytriyenko <denis at denix.org>
Date:   Mon Jan 19 15:51:05 2009 -0500

package.bbclass: skip symlinks when generating shlib info in package_do_shlibs()

---

 classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/classes/package.bbclass b/classes/package.bbclass
index 8b7d649..a7cdb5f 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -615,7 +615,7 @@ python package_do_shlibs() {
 			for file in files:
 				soname = None
 				path = os.path.join(root, file)
-				if os.access(path, os.X_OK) or lib_re.match(file):
+				if (os.access(path, os.X_OK) or lib_re.match(file)) and not os.path.islink(path):
 					cmd = bb.data.getVar('OBJDUMP', d, 1) + " -p " + path + " 2>/dev/null"
 					cmd = "PATH=\"%s\" %s" % (bb.data.getVar('PATH', d, 1), cmd)
 					fd = os.popen(cmd)





More information about the Openembedded-commits mailing list