]> code.ossystems Code Review - openembedded-core.git/commitdiff
adt-installer: fix package installation issue
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Mon, 17 Sep 2012 08:06:49 +0000 (11:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Sep 2012 10:10:05 +0000 (11:10 +0100)
When the cross canadian toolchains are installed, for different
architectures, they might contain common files. This leads to
installation failures since the opkg, by default, does not overwrite
files. This issue happens, for example, for binutils packages (that
contain the same locale files) or gdb (which installs some syscalls xml
files). The locale files could be removed from the binutils
cross-canadian package but we cannot do the same for the syscalls GDB
files which are used by GDB to display user friendly names for the
syscall numbers. Hence, the best solution is to force opkg to overwrite
these files.

[YOCTO #3109]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal

index 78ea6d051402263cdd651d45a8e4456e10ede944..f113aa4b8038c2aeeba616069b3b5133d741d909 100755 (executable)
@@ -112,7 +112,7 @@ check_result
 
 #install below must sdk-host packages
 OPKG_INSTALL_CMD="$OPKG_CMD "
-OPKG_INSTALL_NATIVE_CMD="$OPKG_INSTALL_CMD  -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR install"
+OPKG_INSTALL_NATIVE_CMD="$OPKG_INSTALL_CMD  --force-overwrite -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR install"
 
 BASE_HOSTSDK_PKGNAMES="pseudo opkg pkgconfig libtool autoconf automake"
 for pkg in $BASE_HOSTSDK_PKGNAMES; do