Check-in [f923507a5d]

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

Overview
Comment:Updated to support patching glibc
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f923507a5d7d06e4d2afda9ac9774b7a347fd48d
User & Date: rkeene 2018-02-18 22:58:27
Context
2018-02-18
22:59
Allow different kernel architectures to be specified check-in: ad02e80707 user: rkeene tags: trunk
22:58
Updated to support patching glibc check-in: f923507a5d user: rkeene tags: trunk
2018-02-16
15:47
Upgraded several toolchain components check-in: f4a1af2158 user: rkeene tags: trunk
Changes

Changes to scripts/post/02-glibc.

    70     70   	gzip -dc "${GLIBC_TARBALL}" | tar -xf -
    71     71   fi
    72     72   
    73     73   if [ ! -d "${GLIBC_PORTS_DIR}" ]; then
    74     74   	download "${GLIBC_PORTS_URL}" "${GLIBC_PORTS_TARBALL}" "${GLIBC_PORTS_TARBALL_SHA256}" || exit 1
    75     75   
    76     76   	gzip -dc "${GLIBC_PORTS_TARBALL}" | tar -xf -
           77  +
           78  +	# Apply patches for glibc (only once both packages have been extracted)
           79  +	for patch in patches/glibc/*.diff; do
           80  +		if [ ! -f "${patch}" ]; then
           81  +			continue
           82  +		fi
           83  +
           84  +		echo " ** Applying patches to glibc (version ${GLIBC_VERS})"
           85  +		echo "     ${patch}"
           86  +
           87  +		cat "${patch}" | (
           88  +			cd "${GLIBC_DIR}" || exit 1
           89  +
           90  +			patch -p1
           91  +		) || rm -rf "${GLIBC_DIR}"
           92  +	done
    77     93   fi
    78     94   
    79     95   # Ensure that a stdio.h exists, even if it is blank for autoconf scripts
    80     96   touch "${PREFIX}/include/stdio.h"
    81     97   
    82     98   CC_SAVE="${CC}"
    83     99   rebuild_binutils_needed='0'