summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-02-18 23:50:46 +0000
committerMike Frysinger <vapier@gentoo.org>2008-02-18 23:50:46 +0000
commit06086043fca0fc05758de2571f9d938613c1dc40 (patch)
tree216587c3394d70ec56ae0376782d58e232178042 /app-emulation/emul-linux-x86-glibc-errno-compat
parentClean old versions. (diff)
downloadgentoo-2-06086043fca0fc05758de2571f9d938613c1dc40.tar.gz
gentoo-2-06086043fca0fc05758de2571f9d938613c1dc40.tar.bz2
gentoo-2-06086043fca0fc05758de2571f9d938613c1dc40.zip
Initial package #208161.
(Portage version: 2.2_pre2)
Diffstat (limited to 'app-emulation/emul-linux-x86-glibc-errno-compat')
-rw-r--r--app-emulation/emul-linux-x86-glibc-errno-compat/ChangeLog10
-rw-r--r--app-emulation/emul-linux-x86-glibc-errno-compat/Manifest7
-rw-r--r--app-emulation/emul-linux-x86-glibc-errno-compat/emul-linux-x86-glibc-errno-compat-2.5.ebuild66
-rwxr-xr-xapp-emulation/emul-linux-x86-glibc-errno-compat/files/glibc-errno-wrapper2
-rw-r--r--app-emulation/emul-linux-x86-glibc-errno-compat/metadata.xml5
5 files changed, 90 insertions, 0 deletions
diff --git a/app-emulation/emul-linux-x86-glibc-errno-compat/ChangeLog b/app-emulation/emul-linux-x86-glibc-errno-compat/ChangeLog
new file mode 100644
index 000000000000..12234f44b3e8
--- /dev/null
+++ b/app-emulation/emul-linux-x86-glibc-errno-compat/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-emulation/emul-linux-x86-glibc-errno-compat
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-glibc-errno-compat/ChangeLog,v 1.1 2008/02/18 23:50:45 vapier Exp $
+
+*emul-linux-x86-glibc-errno-compat-2.5 (18 Feb 2008)
+
+ 18 Feb 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/glibc-errno-wrapper, +metadata.xml,
+ +emul-linux-x86-glibc-errno-compat-2.5.ebuild:
+ Initial package #208161.
diff --git a/app-emulation/emul-linux-x86-glibc-errno-compat/Manifest b/app-emulation/emul-linux-x86-glibc-errno-compat/Manifest
new file mode 100644
index 000000000000..c4138958bdb0
--- /dev/null
+++ b/app-emulation/emul-linux-x86-glibc-errno-compat/Manifest
@@ -0,0 +1,7 @@
+AUX glibc-errno-wrapper 75 RMD160 e9288c89b6e1ad19825117c5792016fd02456b93 SHA1 bbc6c4b2981b2e398a5e7a5d3ccb05388437b172 SHA256 ff093ccbc8b016cd9929668278f218102214914dd26e4bc4923a84e6ac75603a
+DIST glibc-2.5-patches-1.8.tar.bz2 493626 RMD160 925758819ac682dcbcb38a1f3522cff6f3581e5b SHA1 ef09fd0ef5c609ac86c6cef23f377476d4c92fc7 SHA256 d71810e9e25a131633a5681b4a632f09caf4957451ee67f0514b7264314eeb84
+DIST glibc-2.5.tar.bz2 15321839 RMD160 25a0a460c0db1e5b7c570e5087461696f2096fd2 SHA1 ec9a007c4875062099a4701ac9137fcdb5a71447 SHA256 9b2e12bb1eafb55ab2e5a868532b8e6ec39216c66c25b8998d7474bc4d4eb529
+DIST glibc-linuxthreads-2.5.tar.bz2 242445 RMD160 788484d035d53ac39aac18f6e3409a912eea1cfa SHA1 eb7765e5c0a14c7475f1c8b92cbe1f625a8fd76f SHA256 ee27aeba6124a8b351c720eb898917f0f8874d9a384cc2f17aa111a3d679bd2c
+EBUILD emul-linux-x86-glibc-errno-compat-2.5.ebuild 1690 RMD160 7da025b056a72edee1bfb10c7f7a8bc06309bf1e SHA1 100a18fc245c28c34dadec0b5a61c126494db943 SHA256 3c0b5ccd03cd28c0a44fda1d8dc1f0007726aaa368fd61b6a69d5f861ced5ee4
+MISC ChangeLog 373 RMD160 e3d81507566c0a79beda6b8717fe9fcb3731fed8 SHA1 af93db01a900e10b9a0f97be6e775953b5761315 SHA256 415c2c397977065fa761c96d203a49d3a7bc9b70338762354583d9dbf701b122
+MISC metadata.xml 162 RMD160 d002486a43522f2116b1d9d59828c484956d66e2 SHA1 d6b4923897f6ae673b4f93646f5b4ba61d5a2c3c SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a
diff --git a/app-emulation/emul-linux-x86-glibc-errno-compat/emul-linux-x86-glibc-errno-compat-2.5.ebuild b/app-emulation/emul-linux-x86-glibc-errno-compat/emul-linux-x86-glibc-errno-compat-2.5.ebuild
new file mode 100644
index 000000000000..2a2a4c7ced51
--- /dev/null
+++ b/app-emulation/emul-linux-x86-glibc-errno-compat/emul-linux-x86-glibc-errno-compat-2.5.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-glibc-errno-compat/emul-linux-x86-glibc-errno-compat-2.5.ebuild,v 1.1 2008/02/18 23:50:45 vapier Exp $
+
+inherit flag-o-matic
+
+PATCH_VER="1.8"
+
+DESCRIPTION="standalone glibc for old x86 binaries that require errno compat"
+HOMEPAGE="http://dev.gentoo.org/~vapier/old-broken-errno-apps"
+SRC_URI="mirror://gnu/glibc/glibc-${PV}.tar.bz2
+ mirror://gnu/glibc/glibc-linuxthreads-${PV}.tar.bz2
+ mirror://gentoo/glibc-${PV}-patches-${PATCH_VER}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/glibc-${PV}
+
+CRAZY_PREFIX="/usr/lib/glibc-errno-compat"
+
+src_unpack() {
+ unpack glibc-${PV}.tar.bz2
+ cd "${S}"
+ unpack glibc-linuxthreads-${PV}.tar.bz2
+ unpack glibc-${PV}-patches-${PATCH_VER}.tar.bz2
+ grep -l '^--- ports/' patches/*.patch | xargs rm -f
+ EPATCH_SUFFIX="patch" epatch patches
+ test-flags -fgnu89-inline && append-flags -fgnu89-inline
+}
+
+src_compile() {
+ mkdir build || die
+ cd build || die
+ ../configure \
+ --prefix="${CRAZY_PREFIX}" \
+ --build=${CBUILD} \
+ --host=${CHOST} \
+ --without-tls \
+ --without-__thread \
+ --disable-sanity-checks \
+ --enable-add-ons=linuxthreads \
+ || die
+ sed -i '/^defines/s:$: -U__i686:' config.make || die
+ emake -j1 \
+ PARALLELMFLAGS="${MAKEOPTS}" \
+ build-programs="no" \
+ lib \
+ || die
+ emake -C ../linuxthreads objdir=${PWD} ${PWD}/linuxthreads/libpthread.so || die
+}
+
+src_install() {
+ dobin "${FILESDIR}"/glibc-errno-wrapper || die
+ dosed "s:@PREFIX@:${CRAZY_PREFIX}:g" /usr/bin/glibc-errno-wrapper || die
+
+ cd build || die
+ into "${CRAZY_PREFIX}"
+ newlib.so elf/ld.so ld-linux.so.2 || die
+ newlib.so libc.so libc.so.6 || die
+ newlib.so linuxthreads/libpthread.so libpthread.so.0 || die
+}
diff --git a/app-emulation/emul-linux-x86-glibc-errno-compat/files/glibc-errno-wrapper b/app-emulation/emul-linux-x86-glibc-errno-compat/files/glibc-errno-wrapper
new file mode 100755
index 000000000000..3c821ab03533
--- /dev/null
+++ b/app-emulation/emul-linux-x86-glibc-errno-compat/files/glibc-errno-wrapper
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec @PREFIX@/lib/ld-linux.so.2 --library-path @PREFIX@/lib "$@"
diff --git a/app-emulation/emul-linux-x86-glibc-errno-compat/metadata.xml b/app-emulation/emul-linux-x86-glibc-errno-compat/metadata.xml
new file mode 100644
index 000000000000..fb4199eb7afe
--- /dev/null
+++ b/app-emulation/emul-linux-x86-glibc-errno-compat/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>toolchain</herd>
+</pkgmetadata>