/[gentoo-x86]/app-emulation/emul-linux-x86-glibc-errno-compat/emul-linux-x86-glibc-errno-compat-2.5.ebuild
Gentoo

Contents of /app-emulation/emul-linux-x86-glibc-errno-compat/emul-linux-x86-glibc-errno-compat-2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu May 31 22:32:20 2012 UTC (11 months, 3 weeks ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
inherit eutils for epatch

(Portage version: 2.2.0_alpha108_p9/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-glibc-errno-compat/emul-linux-x86-glibc-errno-compat-2.5.ebuild,v 1.2 2009/11/05 22:13:27 vapier Exp $
4
5 inherit eutils flag-o-matic
6
7 PATCH_VER="1.8"
8
9 DESCRIPTION="standalone glibc for old x86 binaries that require errno compat"
10 HOMEPAGE="http://dev.gentoo.org/~vapier/old-broken-errno-apps"
11 SRC_URI="mirror://gnu/glibc/glibc-${PV}.tar.bz2
12 mirror://gnu/glibc/glibc-linuxthreads-${PV}.tar.bz2
13 mirror://gentoo/glibc-${PV}-patches-${PATCH_VER}.tar.bz2"
14
15 LICENSE="LGPL-2"
16 SLOT="0"
17 KEYWORDS="~x86"
18 IUSE=""
19
20 S=${WORKDIR}/glibc-${PV}
21
22 CRAZY_PREFIX="/usr/lib/glibc-errno-compat"
23
24 src_unpack() {
25 unpack glibc-${PV}.tar.bz2
26 cd "${S}"
27 unpack glibc-linuxthreads-${PV}.tar.bz2
28 unpack glibc-${PV}-patches-${PATCH_VER}.tar.bz2
29 grep -l '^--- ports/' patches/*.patch | xargs rm -f
30 EPATCH_SUFFIX="patch" epatch patches
31 test-flags -fgnu89-inline && append-flags -fgnu89-inline
32 }
33
34 src_compile() {
35 mkdir build || die
36 cd build || die
37 ../configure \
38 --prefix="${CRAZY_PREFIX}" \
39 --build=${CBUILD} \
40 --host=${CHOST} \
41 --without-tls \
42 --without-__thread \
43 --disable-sanity-checks \
44 --enable-add-ons=linuxthreads \
45 || die
46 sed -i '/^defines/s:$: -U__i686 -U_FORTIFY_SOURCE:' config.make || die
47 emake -j1 \
48 PARALLELMFLAGS="${MAKEOPTS}" \
49 build-programs="no" \
50 lib \
51 || die
52 emake -C ../linuxthreads objdir=${PWD} ${PWD}/linuxthreads/libpthread.so || die
53 }
54
55 src_install() {
56 dobin "${FILESDIR}"/glibc-errno-wrapper || die
57 dosed "s:@PREFIX@:${CRAZY_PREFIX}:g" /usr/bin/glibc-errno-wrapper || die
58
59 cd build || die
60 into "${CRAZY_PREFIX}"
61 newlib.so elf/ld.so ld-linux.so.2 || die
62 newlib.so libc.so libc.so.6 || die
63 newlib.so linuxthreads/libpthread.so libpthread.so.0 || die
64 }

  ViewVC Help
Powered by ViewVC 1.1.13