summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc_2.22.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-01-02 21:37:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-21 09:32:43 +0000
commit91a1baaf57153a86b7e14318c9d36e1cc38e3077 (patch)
tree51bb1d2724bbc5d3b98d9412de9cab8fb7b02524 /meta/recipes-core/glibc/glibc_2.22.bb
parentc1f9507c69cac8cc28fec837a4bbb070c52a8a39 (diff)
downloadpoky-91a1baaf57153a86b7e14318c9d36e1cc38e3077.tar.gz
glibc: Upgrade to 2.23
Drop kconfig and options-group support Forward port cross-localedef support Assume ssp support in libc when building gcc-initial (From OE-Core rev: 9c3d461c4d54d684b38ec4c038a1c3c2fb9923f0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc_2.22.bb')
-rw-r--r--meta/recipes-core/glibc/glibc_2.22.bb147
1 files changed, 0 insertions, 147 deletions
diff --git a/meta/recipes-core/glibc/glibc_2.22.bb b/meta/recipes-core/glibc/glibc_2.22.bb
deleted file mode 100644
index c70d16e05a..0000000000
--- a/meta/recipes-core/glibc/glibc_2.22.bb
+++ /dev/null
@@ -1,147 +0,0 @@
1require glibc.inc
2
3LIC_FILES_CHKSUM = "file://LICENSES;md5=e9a558e243b36d3209f380deb394b213 \
4 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
5 file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \
6 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
7
8DEPENDS += "gperf-native kconfig-frontends-native"
9
10SRCREV ?= "a34d1c6afc86521d6ad17662a3b5362d8481514c"
11
12SRCBRANCH ?= "release/${PV}/master"
13
14GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
15UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
16
17SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
18 file://0004-Backport-https-sourceware.org-ml-libc-ports-2007-12-.patch \
19 file://0005-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch \
20 file://0006-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch \
21 file://0007-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch \
22 file://0008-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch \
23 file://0009-Quote-from-bug-1443-which-explains-what-the-patch-do.patch \
24 file://0010-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch \
25 file://0011-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch \
26 file://0012-Make-ld-version-output-matching-grok-gold-s-output.patch \
27 file://0013-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch \
28 file://0014-Add-unused-attribute.patch \
29 file://0015-When-disabling-SSE-also-make-sure-that-fpmath-is-not.patch \
30 file://0016-yes-within-the-path-sets-wrong-config-variables.patch \
31 file://0017-timezone-re-written-tzselect-as-posix-sh.patch \
32 file://0018-eglibc-Cross-building-and-testing-instructions.patch \
33 file://0019-eglibc-Bring-Eglibc-option-group-infrastructure-to-g.patch \
34 file://0020-eglibc-Help-bootstrap-cross-toolchain.patch \
35 file://0021-eglibc-cherry-picked-from-http-www.eglibc.org-archiv.patch \
36 file://0022-eglibc-Clear-cache-lines-on-ppc8xx.patch \
37 file://0023-eglibc-Resolve-__fpscr_values-on-SH4.patch \
38 file://0024-eglibc-Forward-port-eglibc-options-groups-support.patch \
39 file://0025-eglibc-Install-PIC-archives.patch \
40 file://0026-eglibc-dl_debug_mask-is-controlled-by-__OPTION_EGLIB.patch \
41 file://0027-eglibc-use-option-groups-Conditionally-exclude-c-tes.patch \
42 file://nscd-no-bash.patch \
43 file://0028-Clear-ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA-for-prel.patch \
44 file://strcoll-Remove-incorrect-STRDIFF-based-optimization-.patch \
45 file://0029-fix-getmntent-empty-lines.patch \
46 file://CVE-2015-8777.patch \
47 file://CVE-2015-8779.patch \
48 file://CVE-2015-9761_1.patch \
49 file://CVE-2015-9761_2.patch \
50 file://CVE-2015-8776.patch \
51 file://CVE-2015-7547.patch \
52"
53
54SRC_URI += "\
55 file://etc/ld.so.conf \
56 file://generate-supported.mk \
57"
58
59SRC_URI_append_class-nativesdk = "\
60 file://0001-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch \
61 file://0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch \
62 file://0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch \
63 file://use_64bit_atomics.patch \
64"
65
66S = "${WORKDIR}/git"
67B = "${WORKDIR}/build-${TARGET_SYS}"
68
69PACKAGES_DYNAMIC = ""
70
71# the -isystem in bitbake.conf screws up glibc do_stage
72BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
73TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}"
74
75GLIBC_BROKEN_LOCALES = " _ER _ET so_ET yn_ER sid_ET tr_TR mn_MN gez_ET gez_ER bn_BD te_IN es_CR.ISO-8859-1"
76
77#
78# We will skip parsing glibc when target system C library selection is not glibc
79# this helps in easing out parsing for non-glibc system libraries
80#
81COMPATIBLE_HOST_libc-musl_class-target = "null"
82COMPATIBLE_HOST_libc-uclibc_class-target = "null"
83
84EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
85 --without-cvs --disable-profile \
86 --disable-debug --without-gd \
87 --enable-clocale=gnu \
88 --enable-add-ons \
89 --with-headers=${STAGING_INCDIR} \
90 --without-selinux \
91 --enable-obsolete-rpc \
92 --with-kconfig=${STAGING_BINDIR_NATIVE} \
93 ${GLIBC_EXTRA_OECONF}"
94
95EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
96EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'libc-inet-anl', '--enable-nscd', '--disable-nscd', d)}"
97
98
99do_patch_append() {
100 bb.build.exec_func('do_fix_readlib_c', d)
101}
102
103do_fix_readlib_c () {
104 sed -i -e 's#OECORE_KNOWN_INTERPRETER_NAMES#${EGLIBC_KNOWN_INTERPRETER_NAMES}#' ${S}/elf/readlib.c
105}
106
107do_configure () {
108# override this function to avoid the autoconf/automake/aclocal/autoheader
109# calls for now
110# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
111# version check and doesn't really help with anything
112 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
113 find ${S} -name "configure" | xargs touch
114 CPPFLAGS="" oe_runconf
115}
116
117rpcsvc = "bootparam_prot.x nlm_prot.x rstat.x \
118 yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \
119 rusers.x spray.x nfs_prot.x rquota.x key_prot.x"
120
121do_compile () {
122 # -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if another glibc is in staging
123 unset LDFLAGS
124 base_do_compile
125 (
126 cd ${S}/sunrpc/rpcsvc
127 for r in ${rpcsvc}; do
128 h=`echo $r|sed -e's,\.x$,.h,'`
129 rm -f $h
130 ${B}/sunrpc/cross-rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
131 done
132 )
133 echo "Adjust ldd script"
134 if [ -n "${RTLDLIST}" ]
135 then
136 prevrtld=`cat ${B}/elf/ldd | grep "^RTLDLIST=" | sed 's#^RTLDLIST="\?\([^"]*\)"\?$#\1#'`
137 if [ "${prevrtld}" != "${RTLDLIST}" ]
138 then
139 sed -i ${B}/elf/ldd -e "s#^RTLDLIST=.*\$#RTLDLIST=\"${prevrtld} ${RTLDLIST}\"#"
140 fi
141 fi
142
143}
144
145require glibc-package.inc
146
147BBCLASSEXTEND = "nativesdk"