Received: from [78.46.147.237] (helo=gandharva.secretlabs.de) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1MbmFd-0008O7-Kl for openembedded-devel@lists.openembedded.org; Fri, 14 Aug 2009 04:10:41 +0200 Received: from tamarin.localnet (123-192-185-227.dynamic.kbronet.com.tw [123.192.185.227]) by gandharva.secretlabs.de (Postfix) with ESMTPSA id C30BC1B10C11 for ; Fri, 14 Aug 2009 01:57:29 +0000 (UTC) From: Holger Hans Peter Freyther To: openembedded-devel@lists.openembedded.org Date: Fri, 14 Aug 2009 03:53:26 +0200 User-Agent: KMail/1.12.0 (Linux/2.6.31-rc4; KDE/4.3.0; i686; ; ) References: <4A826FF3.9030501@gmail.com> <200908121450.59048.holger+oe@freyther.de> <200908121725.57128.holger+oe@freyther.de> In-Reply-To: <200908121725.57128.holger+oe@freyther.de> MIME-Version: 1.0 Message-Id: <200908140353.26520.holger+oe@freyther.de> Subject: Re: why does glibc_2.9.bb use glibc-ports-2.7? X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2009 02:10:41 -0000 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Wednesday 12 August 2009 17:25:56 Holger Hans Peter Freyther wrote: > On Wednesday 12 August 2009 14:50:58 Holger Hans Peter Freyther wrote: > > On Wednesday 12 August 2009 12:16:33 Graham Gower wrote: > > > I currently don't have resources to test arm builds (or other > > > architectures...). mipsel builds take 16hrs on my workstation as it > > > is. > > > > I'm doing an arm build now. > > Here we go. Compile tested on ARM (mostly) and MIPS. > > z. =46rom d1f8845abdee9fe05c3863e1297c53b82ef04b84 Mon Sep 17 00:00:00 2001 =46rom: Graham Gower Date: Tue, 11 Aug 2009 21:32:03 +0000 Subject: [PATCH 1/2] glibc: Build glibc 2.9 with glibc-ports 2.9 This combination of glibc-2.9 with glibc-ports-2.7 fails to build on mipsel. The reason we have been using glibc-ports 2.7 was that glibc-ports 2.9 was not tagged or we didn't see it for various reasons. Build glibc 2.9 with glibc-port 2.9 and drop the three ARM patches as they have been applied to the upstream glibc-ports tree: http://sourceware.org/git/?p=3Dglibc- ports.git;a=3Dcommitdiff;h=3D7272ed4e474a398b8ce1e7374cdaa8592b840e2a http://sourceware.org/git/?p=3Dglibc- ports.git;a=3Dcommitdiff;h=3De6e41f0f4963bfb0c0e32f8263ae028b288b5453 Patchwork: http://patchwork.openembedded.org/patch/933/ Signed-off-By: Graham Gower Signed-off-By: Holger Hans Peter =2D-- conf/checksums.ini | 4 +++ recipes/glibc/glibc-2.9/glibc-2.9-use-_begin.patch | 28=20 ++++++++++++++++++++ recipes/glibc/glibc_2.9.bb | 11 +++----- 3 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 recipes/glibc/glibc-2.9/glibc-2.9-use-_begin.patch diff --git a/conf/checksums.ini b/conf/checksums.ini index 6769ad7..d4e38f7 100644 =2D-- a/conf/checksums.ini +++ b/conf/checksums.ini @@ -8142,6 +8142,10 @@=20 sha256=3Dd094028bc6d6691f56b4efeff7cd7e1c7ca10733e0cb5efc36e8fb08d8324bf1 md5=3Deaeb8527b8fa286c2d887157214f9998 sha256=3D3e481996259af87c3581da23481970a27de679e3c87cfa9a5a59751cd20c7b44 =20 +[ftp://ftp.gnu.org/pub/gnu/glibc/glibc-ports-2.9.tar.bz2] +md5=3D7d5d86031cb15403e4d246658209ee81 +sha256=3D824c97b83f1ec2894ee0e824db6d542c40b978d2f6c4364c7411777e44b15a64 + [ftp://ftp.gnome.org/pub/GNOME/sources/glibmm/2.16/glibmm-2.16.2.tar.bz2] md5=3D408054366f0acc01014f4c4af2304da5 sha256=3Df033f6f39c32fc17ecce63087e41408671a3a43d698c83de2528af3fc7276d28 diff --git a/recipes/glibc/glibc-2.9/glibc-2.9-use-_begin.patch=20 b/recipes/glibc/glibc-2.9/glibc-2.9-use-_begin.patch new file mode 100644 index 0000000..8d36a05 =2D-- /dev/null +++ b/recipes/glibc/glibc-2.9/glibc-2.9-use-_begin.patch @@ -0,0 +1,28 @@ +From 7c8a67320e26b8c11108bf0a3410d3aef9cf3486 Mon Sep 17 00:00:00 2001 +From: Ulrich Drepper +Date: Sat, 31 Jan 2009 00:21:15 +0000 +Subject: [PATCH] * elf/Makefile (ld.so): Adjust the sed script to insert=20 _begin in to newer linker scripts. +--- +diff --git a/elf/Makefile b/elf/Makefile +index 8079fe9..e44ff1d 100644 +--- a/elf/Makefile ++++ b/elf/Makefile +@@ -1,4 +1,4 @@ +-# Copyright (C) 1995-2007, 2008 Free Software Foundation, Inc. ++# Copyright (C) 1995-2007, 2008, 2009 Free Software Foundation, Inc. + # This file is part of the GNU C Library. +=20 + # The GNU C Library is free software; you can redistribute it and/or +@@ -304,7 +304,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map) + $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 | \ + LC_ALL=3DC \ + sed -e '/^=3D=3D=3D=3D=3D=3D=3D=3D=3D/,/^=3D=3D=3D=3D=3D=3D=3D=3D=3D/= !d;/^=3D=3D=3D=3D=3D=3D=3D=3D=3D/d' \ +- -e 's/\. =3D 0 + SIZEOF_HEADERS;/& _begin =3D . - SIZEOF_HEADERS;= /' \ ++ -e 's/\. =3D .* + SIZEOF_HEADERS;/& _begin =3D . - SIZEOF_HEADERS= ;/' \ + > $@.lds + $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \ + $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \ +--=20 +1.6.3.2 + + diff --git a/recipes/glibc/glibc_2.9.bb b/recipes/glibc/glibc_2.9.bb index 6e323aa..1bf5a3f 100644 =2D-- a/recipes/glibc/glibc_2.9.bb +++ b/recipes/glibc/glibc_2.9.bb @@ -5,7 +5,7 @@ ARM_INSTRUCTION_SET =3D "arm" PACKAGES_DYNAMIC =3D "libc6*" RPROVIDES_${PN}-dev =3D "libc6-dev virtual-libc-dev" =20 =2DPR =3D "${INC_PR}.0" +PR =3D "${INC_PR}.1" =20 # the -isystem in bitbake.conf screws up glibc do_stage BUILD_CPPFLAGS =3D "-I${STAGING_INCDIR_NATIVE}" @@ -43,7 +43,7 @@ RDEPENDS_${PN}-dev =3D "linux-libc-headers-dev" # file://arm-ioperm.patch;patch=3D1;pnum=3D0 \ # file://ldd.patch;patch=3D1;pnum=3D0 \ SRC_URI =3D "ftp://ftp.gnu.org/pub/gnu/glibc/glibc-${PV}.tar.bz2 \ =2D ftp://ftp.gnu.org/pub/gnu/glibc/glibc-ports-2.7.tar.bz2 \ + ftp://ftp.gnu.org/pub/gnu/glibc/glibc-ports-${PV}.tar.bz2 \ ftp://ftp.gnu.org/pub/gnu/glibc/glibc-libidn-${PV}.tar.bz2 \ file://arm-memcpy.patch;patch=3D1 \ file://arm-longlong.patch;patch=3D1 \ @@ -54,9 +54,6 @@ SRC_URI =3D=20 "ftp://ftp.gnu.org/pub/gnu/glibc/glibc-${PV}.tar.bz2 \ file://glibc-check_pf.patch;patch=3D1;pnum=3D0 \ file://ldd-unbash.patch;patch=3D1 \ file://glibc-arm-IO-acquire-lock-fix.diff;patch=3D1 \ =2D file://local-args6.diff;patch=3D1 \ =2D file://arm-check-pf.patch;patch=3D1 \ =2D file://arm-lowlevellock-include-tls.patch;patch=3D1 \ file://generic-bits_select.h \ file://generic-bits_types.h \ file://generic-bits_typesizes.h \ @@ -65,9 +62,9 @@ SRC_URI =3D=20 "ftp://ftp.gnu.org/pub/gnu/glibc/glibc-${PV}.tar.bz2 \ file://generate-supported.mk \ file://march-i686.patch;patch=3D1;pnum=3D0 \ file://tls_i486.patch;patch=3D1 \ + file://glibc-2.9-use-_begin.patch;patch=3D1 \ " =20 =2D # Build fails on sh3 and sh4 without additional patches SRC_URI_append_sh3 =3D " file://no-z-defs.patch;patch=3D1" SRC_URI_append_sh4 =3D " file://no-z-defs.patch;patch=3D1" @@ -90,7 +87,7 @@ EXTRA_OECONF +=3D "${@get_glibc_fpu_setting(bb, d)}" =20 do_munge() { # Integrate ports and libidn into tree =2D mv ${WORKDIR}/glibc-ports-2.7 ${S}/ports + mv ${WORKDIR}/glibc-ports-${PV} ${S}/ports mv ${WORKDIR}/glibc-libidn-${PV} ${S}/libidn =20 # Ports isn't really working... Fix it =2D-=20 1.6.3.3