[oe-commits] org.oe.dev autotools.bbclass: Revert damage from 4b02add2b83e66d45ff3e840056487a7274d9011, convert autotools_stage_all to use sed on .la files instead of calling oe_libinstall, remove broken enable-mainainer-mode flag

rpurdie commit oe at amethyst.openembedded.net
Mon May 12 13:30:53 UTC 2008


autotools.bbclass: Revert damage from 4b02add2b83e66d45ff3e840056487a7274d9011, convert autotools_stage_all to use sed on .la files instead of calling oe_libinstall, remove broken enable-mainainer-mode flag

Author: rpurdie at openembedded.org
Branch: org.openembedded.dev
Revision: 1019be7986524fea8a63da6199f04430a64cd018
ViewMTN: http://monotone.openembedded.org/revision/info/1019be7986524fea8a63da6199f04430a64cd018
Files:
1
classes/autotools.bbclass
Diffs:

#
# mt diff -r352a68daa258bd3812504d237366304d1a244e55 -r1019be7986524fea8a63da6199f04430a64cd018
#
#
#
# patch "classes/autotools.bbclass"
#  from [77ba9664d4d26f5edd362d75ede90780a2f3c741]
#    to [3acb6dbe08d32ccda69ed2a8b6a695611888de97]
#
============================================================
--- classes/autotools.bbclass	77ba9664d4d26f5edd362d75ede90780a2f3c741
+++ classes/autotools.bbclass	3acb6dbe08d32ccda69ed2a8b6a695611888de97
@@ -58,7 +58,6 @@ oe_runconf () {
 		    --oldincludedir=${oldincludedir} \
 		    --infodir=${infodir} \
 		    --mandir=${mandir} \
-                                --enable-mainainer-mode \
 			${EXTRA_OECONF} \
 		    $@"
 		oenote "Running $cfgcmd..."
@@ -172,7 +171,7 @@ autotools_stage_dir() {
 	rmdir "$from" 2> /dev/null || true
 	if [ -d "$from" ]; then
 		mkdir -p "$to"
-		cp -fpPR -t "$to" "$from"/*
+		cp -fpPR "$from"/* "$to"
 	fi
 }
 
@@ -199,21 +198,14 @@ autotools_stage_all() {
 		las=$(find . -name \*.la -type f)
 		cd $olddir
 		echo "Found la files: $las"		 
-		if [ -n "$las" ]; then
-			# If there are .la files then libtool was used in the
-			# build, so install them with magic mangling.
-			for i in $las
-			do
-				dir=$(dirname $i)
-				echo "oe_libinstall -C ${STAGE_TEMP}/${libdir}/${dir} -so $(basename $i .la) ${STAGING_LIBDIR}/${dir}"
-				oe_libinstall -C ${STAGE_TEMP}/${libdir}/${dir} -so $(basename $i .la) ${STAGING_LIBDIR}/${dir}
-			done
-		else
-			# Otherwise libtool wasn't used, and lib/ can be copied
-			# directly.
-      autotools_stage_dir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR}
-		fi
-	
+		for i in $las
+		do
+			sed -e 's/^installed=yes$/installed=no/' \
+			    -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \
+			    -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \
+			    -i ${STAGE_TEMP}/${libdir}/$i
+		done
+		autotools_stage_dir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR}
 	fi
 	# Ok, this is nasty. pkgconfig.bbclass is usually used to install .pc files,
 	# however some packages rely on the presence of .pc files to enable/disable






More information about the Openembedded-commits mailing list