# HG changeset patch # User Rob Landley # Date 1280694000 18000 # Node ID 13c22a46b1c9f0dcd421cc8996e4f56f157d1374 # Parent 878dbfe763419f46dfc0842b740b9166029d72b3 Now that extract_packages is separate from setupfor, EXTRACT_ALL=1 should be less brittle. (If not, needs to be fixed, so remove workarounds.) diff -r 878dbfe76341 -r 13c22a46b1c9 sources/native-builds/gentoo-stage1.sh --- a/sources/native-builds/gentoo-stage1.sh Sun Aug 01 15:19:00 2010 -0500 +++ b/sources/native-builds/gentoo-stage1.sh Sun Aug 01 15:20:00 2010 -0500 @@ -24,10 +24,17 @@ [ $# -ne 1 ] && echo "usage: $0 FILENAME" >&2 && exit 1 [ -e "$1" ] && echo "$1" exists && exit 0 +# We use a lot of our own directories because we may have the same packages +# as the aboriginal build, but use different versions. So keep things separate +# so they don't interfere. + NATIVE_BUILDS="$SOURCES/native-builds" PATCHDIR="$NATIVE_BUILDS/gentoo-stage1-patches" SRCDIR="$SRCDIR/gentoo-stage1" && mkdir -p "$SRCDIR" || dienow WORK="$WORK"/gentoo-stage1 && blank_tempdir "$WORK" +SRCTREE="$WORK" + +EXTRACT_ALL=1 echo "=== Download source code." @@ -57,16 +64,6 @@ cleanup_oldfiles -# The reason this is isn't grouped together with the downloads above is when -# you download a new version but haven't deleted the old one yet, setupfor -# gets confused. - -setupfor zlib -setupfor ncurses -setupfor Python -setupfor bash -setupfor portage - cp -a "$NATIVE_BUILDS/gentoo-stage1-files/." "$WORK" && cd "$TOP" && mksquashfs "$WORK" "$1" -noappend -all-root || dienow diff -r 878dbfe76341 -r 13c22a46b1c9 sources/native-builds/static-tools.sh --- a/sources/native-builds/static-tools.sh Sun Aug 01 15:19:00 2010 -0500 +++ b/sources/native-builds/static-tools.sh Sun Aug 01 15:20:00 2010 -0500 @@ -11,9 +11,11 @@ [ -e "$1" ] && echo "$1" exists && exit 0 PATCHDIR="$SOURCES/native-builds/static-tools-patches" -ls $PATCHDIR SRCDIR="$SRCDIR/native" && mkdir -p "$SRCDIR" || dienow WORK="$WORK"/static-tools && blank_tempdir "$WORK" +SRCTREE="$WORK" + +EXTRACT_ALL=1 echo "=== Download source code." @@ -35,10 +37,6 @@ cleanup_oldfiles -setupfor strace -setupfor zlib -setupfor dropbear - cat > "$WORK"/init << 'EOF' || dienow #!/bin/bash