From 246f1eac4e32d074d33b1cf0b186397f61148b28 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 18 Mar 2014 16:08:53 -0400 Subject: Don't install cross packages in stage2. --- diff --git a/bootstrap-stage2-install.sh b/bootstrap-stage2-install.sh index e288bf8..2c001ae 100755 --- a/bootstrap-stage2-install.sh +++ b/bootstrap-stage2-install.sh @@ -89,6 +89,21 @@ install_packages() ../root1/usr/src/*_all_all.opk; do [ -f "${opk}" ] || continue pkg="${opk#../root1/usr/src/}" + case "${pkg}" in + "build-essential-${ARCH}_"*) ;; + 'build-essential-common_'*) ;; + 'build-essential-'*) continue ;; + "gcc-${ARCH}_"*) ;; + "gcc-"*"-${ARCH}_"*) ;; + 'gcc-'*'-common_'*) ;; + 'gcc-'*'-locales_'*) ;; + 'gcc-'*) continue ;; + "g++-${ARCH}_"*) ;; + "g++-"*"-${ARCH}_"*) ;; + 'g++-'*'-common_'*) ;; + 'g++-'*'-locales_'*) ;; + 'g++-'*) continue ;; + esac log 'Installing package %s...' "${pkg%%_*}" tar -xzOf "${opk}" data.tar.gz | tar -xz done @@ -128,6 +143,21 @@ configure_packages() ../root1/usr/src/*_all_all.opk; do [ -f "${opk}" ] || continue pkg="${opk#../root1/usr/src/}" + case "${pkg}" in + "build-essential-${ARCH}_"*) ;; + 'build-essential-common_'*) ;; + 'build-essential-'*) continue ;; + "gcc-${ARCH}_"*) ;; + "gcc-"*"-${ARCH}_"*) ;; + 'gcc-'*'-common_'*) ;; + 'gcc-'*'-locales_'*) ;; + 'gcc-'*) continue ;; + "g++-${ARCH}_"*) ;; + "g++-"*"-${ARCH}_"*) ;; + 'g++-'*'-common_'*) ;; + 'g++-'*'-locales_'*) ;; + 'g++-'*) continue ;; + esac pkg="${pkg%%_*}" for entry in $(tar -xzOf "${opk}" control.tar.gz | tar -tz); do file="${entry##*/}" diff --git a/bootstrap-stage2-test.sh b/bootstrap-stage2-test.sh index dd68aac..8596c57 100755 --- a/bootstrap-stage2-test.sh +++ b/bootstrap-stage2-test.sh @@ -76,6 +76,21 @@ test_packages() ../root1/usr/src/*_all_${PLAT}.opk \ ../root1/usr/src/*_all_all.opk; do [ -f "${opk}" ] || continue + case "${opk#../root1/usr/src/}" in + "build-essential-${ARCH}_"*) ;; + 'build-essential-common_'*) ;; + 'build-essential-'*) continue ;; + "gcc-${ARCH}_"*) ;; + "gcc-"*"-${ARCH}_"*) ;; + 'gcc-'*'-common_'*) ;; + 'gcc-'*'-locales_'*) ;; + 'gcc-'*) continue ;; + "g++-${ARCH}_"*) ;; + "g++-"*"-${ARCH}_"*) ;; + 'g++-'*'-common_'*) ;; + 'g++-'*'-locales_'*) ;; + 'g++-'*) continue ;; + esac cp "${opk}" . done sudo chroot . sh -c 'opkg install /*.opk' -- cgit v0.9.1