summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc_2.26.bb
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-01 18:26:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-01 22:18:46 +0000
commitbcdfc5c99351f888f71c603667b0bbf5340f5a13 (patch)
tree5ee30812cb81552b86356a18295b2e153cc91a55 /meta/recipes-core/glibc/glibc_2.26.bb
parent2d3e09949732ed48c8c9a328d9ab6ebbf6889b13 (diff)
downloadpoky-bcdfc5c99351f888f71c603667b0bbf5340f5a13.tar.gz
glibc: Upgrade to 2.27 release
(From OE-Core rev: 7c9faaee307585dbab569b4aa0a386658372af4e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc_2.26.bb')
-rw-r--r--meta/recipes-core/glibc/glibc_2.26.bb148
1 files changed, 0 insertions, 148 deletions
diff --git a/meta/recipes-core/glibc/glibc_2.26.bb b/meta/recipes-core/glibc/glibc_2.26.bb
deleted file mode 100644
index 464b65434e..0000000000
--- a/meta/recipes-core/glibc/glibc_2.26.bb
+++ /dev/null
@@ -1,148 +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 bison-native"
9
10SRCREV ?= "d300041c533a3d837c9f37a099bcc95466860e98"
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://etc/ld.so.conf \
19 file://generate-supported.mk \
20 \
21 ${NATIVESDKFIXES} \
22 file://0005-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch \
23 file://0006-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch \
24 file://0007-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch \
25 file://0008-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch \
26 file://0009-Quote-from-bug-1443-which-explains-what-the-patch-do.patch \
27 file://0010-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch \
28 file://0011-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch \
29 file://0012-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch \
30 file://0013-Add-unused-attribute.patch \
31 file://0014-yes-within-the-path-sets-wrong-config-variables.patch \
32 file://0015-timezone-re-written-tzselect-as-posix-sh.patch \
33 file://0016-Remove-bash-dependency-for-nscd-init-script.patch \
34 file://0017-eglibc-Cross-building-and-testing-instructions.patch \
35 file://0018-eglibc-Help-bootstrap-cross-toolchain.patch \
36 file://0019-eglibc-Clear-cache-lines-on-ppc8xx.patch \
37 file://0020-eglibc-Resolve-__fpscr_values-on-SH4.patch \
38 file://0021-eglibc-Install-PIC-archives.patch \
39 file://0022-eglibc-Forward-port-cross-locale-generation-support.patch \
40 file://0023-Define-DUMMY_LOCALE_T-if-not-defined.patch \
41 file://0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch \
42 file://0025-locale-fix-hard-coded-reference-to-gcc-E.patch \
43 file://0027-glibc-reset-dl-load-write-lock-after-forking.patch \
44 file://0028-Bug-4578-add-ld.so-lock-while-fork.patch \
45"
46
47NATIVESDKFIXES ?= ""
48NATIVESDKFIXES_class-nativesdk = "\
49 file://0001-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch \
50 file://0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch \
51 file://0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch \
52 file://0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch \
53"
54
55S = "${WORKDIR}/git"
56B = "${WORKDIR}/build-${TARGET_SYS}"
57
58PACKAGES_DYNAMIC = ""
59
60# the -isystem in bitbake.conf screws up glibc do_stage
61BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
62TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}"
63
64GLIBC_BROKEN_LOCALES = ""
65#
66# We will skip parsing glibc when target system C library selection is not glibc
67# this helps in easing out parsing for non-glibc system libraries
68#
69COMPATIBLE_HOST_libc-musl_class-target = "null"
70
71EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
72 --without-cvs --disable-profile \
73 --disable-debug --without-gd \
74 --enable-clocale=gnu \
75 --enable-add-ons=libidn \
76 --with-headers=${STAGING_INCDIR} \
77 --without-selinux \
78 --enable-obsolete-rpc \
79 --enable-obsolete-nsl \
80 --enable-tunables \
81 --enable-bind-now \
82 --enable-stack-protector=strong \
83 --enable-stackguard-randomization \
84 ${GLIBC_EXTRA_OECONF}"
85
86EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
87EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'libc-inet-anl', '--enable-nscd', '--disable-nscd', d)}"
88
89
90do_patch_append() {
91 bb.build.exec_func('do_fix_readlib_c', d)
92}
93
94do_fix_readlib_c () {
95 sed -i -e 's#OECORE_KNOWN_INTERPRETER_NAMES#${EGLIBC_KNOWN_INTERPRETER_NAMES}#' ${S}/elf/readlib.c
96}
97
98do_configure () {
99# override this function to avoid the autoconf/automake/aclocal/autoheader
100# calls for now
101# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
102# version check and doesn't really help with anything
103 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
104 find ${S} -name "configure" | xargs touch
105 # "plural.c" may or may not get regenerated from "plural.y" so we
106 # touch "plural.y" to make sure it does. (This should not be needed
107 # for glibc version 2.26+)
108 find ${S}/intl -name "plural.y" | xargs touch
109 CPPFLAGS="" oe_runconf
110}
111
112rpcsvc = "bootparam_prot.x nlm_prot.x rstat.x \
113 yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \
114 rusers.x spray.x nfs_prot.x rquota.x key_prot.x"
115
116do_compile () {
117 # -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if another glibc is in staging
118 unset LDFLAGS
119 base_do_compile
120 (
121 cd ${S}/sunrpc/rpcsvc
122 for r in ${rpcsvc}; do
123 h=`echo $r|sed -e's,\.x$,.h,'`
124 rm -f $h
125 ${B}/sunrpc/cross-rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
126 done
127 )
128 echo "Adjust ldd script"
129 if [ -n "${RTLDLIST}" ]
130 then
131 prevrtld=`cat ${B}/elf/ldd | grep "^RTLDLIST=" | sed 's#^RTLDLIST="\?\([^"]*\)"\?$#\1#'`
132 if [ "${prevrtld}" != "${RTLDLIST}" ]
133 then
134 sed -i ${B}/elf/ldd -e "s#^RTLDLIST=.*\$#RTLDLIST=\"${prevrtld} ${RTLDLIST}\"#"
135 fi
136 fi
137
138}
139
140# Use the host locale archive when built for nativesdk so that we don't need to
141# ship a complete (100MB) locale set.
142do_compile_prepend_class-nativesdk() {
143 echo "complocaledir=/usr/lib/locale" >> ${S}/configparms
144}
145
146require glibc-package.inc
147
148BBCLASSEXTEND = "nativesdk"