[oe-commits] org.oe.dev base.bbclass : add check from zecke/OM mtn that errors if libname.lai is not

xora commit oe at amethyst.openembedded.net
Fri May 9 15:32:32 UTC 2008


base.bbclass : add check from zecke/OM mtn that errors if libname.lai is not
unique. Acked by RP

Author: xora at openembedded.org
Branch: org.openembedded.dev
Revision: 85a5e185b6a21e42e4243ad17befe40373025e0e
ViewMTN: http://monotone.openembedded.org/revision/info/85a5e185b6a21e42e4243ad17befe40373025e0e
Files:
1
classes/base.bbclass
Diffs:

#
# mt diff -r3b463c498402546b10ea138f12b6e40e4b06129d -r85a5e185b6a21e42e4243ad17befe40373025e0e
#
#
#
# patch "classes/base.bbclass"
#  from [1271ac943b8b7bf95706c4d16bba4f96f433dc61]
#    to [1f2aa3e857574c705066c6e22b6697bfafc48da0]
#
============================================================
--- classes/base.bbclass	1271ac943b8b7bf95706c4d16bba4f96f433dc61
+++ classes/base.bbclass	1f2aa3e857574c705066c6e22b6697bfafc48da0
@@ -287,7 +287,16 @@ oe_libinstall() {
 	if [ -z "$dir" ]; then
 		dir=`pwd`
 	fi
+
 	dotlai=$libname.lai
+
+	# Sanity check that the libname.lai is unique
+	number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
+	if [ $number_of_files -gt 1 ]; then
+		oefatal "oe_libinstall: $dotlai is not unique in $dir"
+	fi
+
+
 	dir=$dir`(cd $dir;find . -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
 	olddir=`pwd`
 	__runcmd cd $dir






More information about the Openembedded-commits mailing list