annotate sources/control-images/lfs-bootstrap/download.sh @ 1299:dcf7da6a6633

Add the sha1sum to the LFS tarball.
author Rob Landley <rob@landley.net>
date Mon, 22 Nov 2010 17:31:51 -0600
parents a4cb2ed0a551
children 07852d3a2e50
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1269
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
1 # Build Linux From Scratch 6.7 packages under target environment.
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
2
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
3 # Note: this doesn't rebuild the toolchain packages (libc, binutils,
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
4 # gcc, linux-headers), but reuses the toolchain we've got, because:
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
5
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
6 # 1) Building a new toolchain is a target-dependent can of worms.
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
7 # 2) Doing so would lose distcc acceleration.
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
8 # 3) Building glibc under uClibc is buggy because glibc expects that a
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
9 # 2.6 kernel will have TLS, and uClibc without NPTL doesn't. (Yes,
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
10 # repeat after me, "autoconf is useless".)
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
11
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
12 # Download upstream tarball
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
13
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
14 URL=http://ftp.osuosl.org/pub/lfs/lfs-packages/lfs-packages-6.7.tar \
1299
dcf7da6a6633 Add the sha1sum to the LFS tarball.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
15 SHA1=9bda969efdfd4d51bda8fafeff082f2397249876 \
1269
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
16 RENAME='s/-sources//' \
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
17 download || dienow
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
18
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
19 cleanup_oldfiles
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
20
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
21 # Extract the individual packages from the upstream tarball
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
22
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
23 SRCDIR="$SRCTREE/lfs-packages"
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
24 PATCHDIR="$SRCDIR"
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
25
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
26 # Fixups for tarball names the Aboriginal extract scripts can't parse
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
27
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
28 mv "$SRCDIR"/sysvinit-2.88{dsf,}.tar.bz2 &&
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
29 mv "$SRCDIR"/tcl{8.5.8-src,-src-8.5.8}.tar.gz &&
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
30 mv "$SRCDIR"/udev-{161-testfiles,testfiles-161}.tar.bz2 || exit 1
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
31
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
32 # Remove damaged patches (whitespace damaged, don't apply without "fuzz").
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
33
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
34 rm "$SRCDIR"/gcc-4.5.1-startfiles_fix-1.patch &&
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
35 rm "$SRCDIR"/tar-1.23-overflow_fix-1.patch || exit 1
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
36
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
37 # Break down upstream tarball
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
38
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
39 for i in $(cd "$SRCDIR"; ls *.tar.*)
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
40 do
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
41 extract_package $(noversion $i)
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
42 done
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
43
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents:
diff changeset
44 rm -rf "$SRCDIR"