Check-in [c2e33b6d3e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added SHA256 to many downloads
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c2e33b6d3ed821ce0e55829833858a79fcebfc18
User & Date: rkeene 2017-01-10 13:39:18
Context
2017-01-10
13:41
Build-CC 0.13 check-in: f1ead69217 user: rkeene tags: trunk, 0.13
13:39
Added SHA256 to many downloads check-in: c2e33b6d3e user: rkeene tags: trunk
2016-12-21
19:53
Added SHA256 checksum for the Linux kernel download check-in: 5b7f948afb user: rkeene tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to scripts/post/01-musl.

1
2
3
4
5
6

7
8
9
10
11
12
13
#! /bin/bash

# URLs and versions
MUSL_VERS='1.1.10'
MUSL_URL="http://www.musl-libc.org/releases/musl-${MUSL_VERS}.tar.gz"
MUSL_TARBALL="src/musl-${MUSL_VERS}.tar.gz"

MUSL_DIR="musl-${MUSL_VERS}"

# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"






>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

# URLs and versions
MUSL_VERS='1.1.10'
MUSL_URL="http://www.musl-libc.org/releases/musl-${MUSL_VERS}.tar.gz"
MUSL_TARBALL="src/musl-${MUSL_VERS}.tar.gz"
MUSL_TARBALL_SHA256="45bbe9b1c7f7a0f743477af1e103b6889bfe4dd9815e16f6c89f6c90831c8b7c"
MUSL_DIR="musl-${MUSL_VERS}"

# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99

# Determine if we are a multilib build
archs="$(multilib)"


if [ ! -d "${MUSL_DIR}" ]; then
	# Download source
	download "${MUSL_URL}" "${MUSL_TARBALL}" || exit $fail

	gzip -dc "${MUSL_TARBALL}" | tar -xf -

	# Merge headers for i386/x86_64 to enable multilib support
	(
		cd "${MUSL_DIR}/arch/x86_64" || exit 1
		find . -type f | while read file; do







|







86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

# Determine if we are a multilib build
archs="$(multilib)"


if [ ! -d "${MUSL_DIR}" ]; then
	# Download source
	download "${MUSL_URL}" "${MUSL_TARBALL}" "${MUSL_TARBALL_SHA256}" || exit $fail

	gzip -dc "${MUSL_TARBALL}" | tar -xf -

	# Merge headers for i386/x86_64 to enable multilib support
	(
		cd "${MUSL_DIR}/arch/x86_64" || exit 1
		find . -type f | while read file; do

Changes to scripts/post/01-uclibc.

1
2
3
4
5
6

7
8
9
10
11
12
13
#! /bin/bash

# URLs and versions
UCLIBC_VERS='0.9.32.1'
UCLIBC_URL="http://uclibc.org/downloads/uClibc-${UCLIBC_VERS}.tar.bz2"
UCLIBC_TARBALL="src/uClibc-${UCLIBC_VERS}.tar.bz2"

UCLIBC_DIR="uClibc-${UCLIBC_VERS}"

# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"






>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

# URLs and versions
UCLIBC_VERS='0.9.32.1'
UCLIBC_URL="http://uclibc.org/downloads/uClibc-${UCLIBC_VERS}.tar.bz2"
UCLIBC_TARBALL="src/uClibc-${UCLIBC_VERS}.tar.bz2"
UCLIBC_TARBALL_SHA256=""
UCLIBC_DIR="uClibc-${UCLIBC_VERS}"

# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
		extra_make_options="${extra_make_options} ARCH_LITTLE_ENDIAN=n ARCH_BIG_ENDIAN=y"
		;;
	mipsel-*)
		extra_make_options="${extra_make_options} ARCH_LITTLE_ENDIAN=y ARCH_BIG_ENDIAN=n"
		;;
esac

download "${UCLIBC_URL}" "${UCLIBC_TARBALL}" || exit 1

rm -rf "${UCLIBC_DIR}"
bzip2 -dc "${UCLIBC_TARBALL}" | tar -xf -

(
	cd "${UCLIBC_DIR}" || exit 1








|







56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
		extra_make_options="${extra_make_options} ARCH_LITTLE_ENDIAN=n ARCH_BIG_ENDIAN=y"
		;;
	mipsel-*)
		extra_make_options="${extra_make_options} ARCH_LITTLE_ENDIAN=y ARCH_BIG_ENDIAN=n"
		;;
esac

download "${UCLIBC_URL}" "${UCLIBC_TARBALL}" "${UCLIBC_TARBALL_SHA256}" || exit 1

rm -rf "${UCLIBC_DIR}"
bzip2 -dc "${UCLIBC_TARBALL}" | tar -xf -

(
	cd "${UCLIBC_DIR}" || exit 1

Changes to scripts/post/02-glibc.

1
2
3
4
5

6
7
8
9
10
11
12

13
14
15
16
17
18
19
#! /bin/bash

# URLs and versions
if [ -z "${GLIBC_VERS}" ]; then
	GLIBC_VERS='2.22'

fi
GLIBC_URL="http://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_TARBALL="src/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_DIR="glibc-${GLIBC_VERS}"

if [ -z "${GLIBC_PORTS_VERS}" ]; then
	GLIBC_PORTS_VERS='2.16.0'

fi
GLIBC_PORTS_URL="http://ftp.gnu.org/gnu/glibc/glibc-ports-${GLIBC_PORTS_VERS}.tar.gz"
GLIBC_PORTS_TARBALL="src/glibc-ports-${GLIBC_PORTS_VERS}.tar.gz"
GLIBC_PORTS_DIR="$(pwd)/glibc-ports-${GLIBC_PORTS_VERS}"

# Main script
CCNAME="$1"





>







>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/bash

# URLs and versions
if [ -z "${GLIBC_VERS}" ]; then
	GLIBC_VERS='2.22'
	GLIBC_TARBALL_SHA256="a62610c4084a0fd8cec58eee12ef9e61fdf809c31e7cecbbc28feb8719f08be5"
fi
GLIBC_URL="http://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_TARBALL="src/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_DIR="glibc-${GLIBC_VERS}"

if [ -z "${GLIBC_PORTS_VERS}" ]; then
	GLIBC_PORTS_VERS='2.16.0'
	GLIBC_PORTS_TARBALL_SHA256="1092e81d0c9c1bc29343004c1d01fb0d89eb49dd0fd5339b2f2e64a44b582d10"
fi
GLIBC_PORTS_URL="http://ftp.gnu.org/gnu/glibc/glibc-ports-${GLIBC_PORTS_VERS}.tar.gz"
GLIBC_PORTS_TARBALL="src/glibc-ports-${GLIBC_PORTS_VERS}.tar.gz"
GLIBC_PORTS_DIR="$(pwd)/glibc-ports-${GLIBC_PORTS_VERS}"

# Main script
CCNAME="$1"
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
esac


# Download source
. 'scripts/common'

if [ ! -d "${GLIBC_DIR}" ]; then
	download "${GLIBC_URL}" "${GLIBC_TARBALL}" || exit 1

	gzip -dc "${GLIBC_TARBALL}" | tar -xf -
fi

if [ ! -d "${GLIBC_PORTS_DIR}" ]; then
	download "${GLIBC_PORTS_URL}" "${GLIBC_PORTS_TARBALL}" || exit 1

	gzip -dc "${GLIBC_PORTS_TARBALL}" | tar -xf -
fi

# Ensure that a stdio.h exists, even if it is blank for autoconf scripts
touch "${PREFIX}/include/stdio.h"








|





|







53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
esac


# Download source
. 'scripts/common'

if [ ! -d "${GLIBC_DIR}" ]; then
	download "${GLIBC_URL}" "${GLIBC_TARBALL}" "${GLIBC_TARBALL_SHA256}" || exit 1

	gzip -dc "${GLIBC_TARBALL}" | tar -xf -
fi

if [ ! -d "${GLIBC_PORTS_DIR}" ]; then
	download "${GLIBC_PORTS_URL}" "${GLIBC_PORTS_TARBALL}" "${GLIBC_PORTS_TARBALL_SHA256}" || exit 1

	gzip -dc "${GLIBC_PORTS_TARBALL}" | tar -xf -
fi

# Ensure that a stdio.h exists, even if it is blank for autoconf scripts
touch "${PREFIX}/include/stdio.h"

Changes to scripts/post/10-yasm.

1
2
3
4
5
6

7
8
9
10
11
12
13
#! /usr/bin/env bash

# URLs and versions
YASM_VERS='1.3.0'
YASM_URL="http://www.tortall.net/projects/yasm/releases/yasm-${YASM_VERS}.tar.gz"
YASM_TARBALL="src/yasm-${YASM_VERS}.tar.gz"

YASM_DIR="yasm-${YASM_VERS}"

# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"






>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/env bash

# URLs and versions
YASM_VERS='1.3.0'
YASM_URL="http://www.tortall.net/projects/yasm/releases/yasm-${YASM_VERS}.tar.gz"
YASM_TARBALL="src/yasm-${YASM_VERS}.tar.gz"
YASM_TARBALL_SHA256="3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f"
YASM_DIR="yasm-${YASM_VERS}"

# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
		;;
esac

# Download source
. 'scripts/common'

if [ ! -d "${YASM_DIR}" ]; then
        download "${YASM_URL}" "${YASM_TARBALL}" || exit 1

        gzip -dc "${YASM_TARBALL}" | tar -xf -
fi

# Inform the user of what we are doing
echo " * Building YASM (version ${YASM_VERS}) for ${arch_host}"








|







46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
		;;
esac

# Download source
. 'scripts/common'

if [ ! -d "${YASM_DIR}" ]; then
        download "${YASM_URL}" "${YASM_TARBALL}" "${YASM_TARBALL_SHA256}" || exit 1

        gzip -dc "${YASM_TARBALL}" | tar -xf -
fi

# Inform the user of what we are doing
echo " * Building YASM (version ${YASM_VERS}) for ${arch_host}"

Changes to scripts/post/10-zlib.

1
2
3
4
5
6

7
8
9
10
11
12
13
#! /usr/bin/env bash

# URLs and versions
ZLIB_VERS='1.2.8'
ZLIB_URL="http://zlib.net/zlib-${ZLIB_VERS}.tar.gz"
ZLIB_TARBALL="src/zlib-${ZLIB_VERS}.tar.gz"

ZLIB_DIR="zlib-${ZLIB_VERS}"

# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"






>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/env bash

# URLs and versions
ZLIB_VERS='1.2.8'
ZLIB_URL="http://zlib.net/zlib-${ZLIB_VERS}.tar.gz"
ZLIB_TARBALL="src/zlib-${ZLIB_VERS}.tar.gz"
ZLIB_TARBALL_SHA256="36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d"
ZLIB_DIR="zlib-${ZLIB_VERS}"

# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
        exit 0
fi

# Download source
. 'scripts/common'

if [ ! -d "${ZLIB_DIR}" ]; then
        download "${ZLIB_URL}" "${ZLIB_TARBALL}" || exit 1

        gzip -dc "${ZLIB_TARBALL}" | tar -xf -
fi

CC_SAVE="${CC}"
for arch in $(multilib); do
	CC="${CC_SAVE} $(multilib --cflags "${arch}")"







|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
        exit 0
fi

# Download source
. 'scripts/common'

if [ ! -d "${ZLIB_DIR}" ]; then
        download "${ZLIB_URL}" "${ZLIB_TARBALL}" "${ZLIB_TARBALL_SHA256}" || exit 1

        gzip -dc "${ZLIB_TARBALL}" | tar -xf -
fi

CC_SAVE="${CC}"
for arch in $(multilib); do
	CC="${CC_SAVE} $(multilib --cflags "${arch}")"