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
commit6111eda9c420cdabbb88f931e1460f70ba7e582d (patch)
treec94b8d0ea28817afd7c8a4641f2e07656bcac4f0 /app-emulation/emul-linux-x86-glibc-errno-compat
parentClean old versions. (diff)
downloadhistorical-6111eda9c420cdabbb88f931e1460f70ba7e582d.tar.gz
historical-6111eda9c420cdabbb88f931e1460f70ba7e582d.tar.bz2
historical-6111eda9c420cdabbb88f931e1460f70ba7e582d.zip
Initial package #208161.
Package-Manager: portage-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/Manifest17
-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, 100 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..36f957a43e4b
--- /dev/null
+++ b/app-emulation/emul-linux-x86-glibc-errno-compat/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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 1844 RMD160 383d2ff41e74b19e8c87c381f109fb988b5bd48a SHA1 cf5b9773dc60a99dac2f5d69f838f315d4057400 SHA256 c7773c6a82528b2e3ee3a20b16211b6dfbba82be23894eca1f4e70506b085a62
+MISC ChangeLog 492 RMD160 40c11186736eb40f9d566732c5a9a91ca917ecff SHA1 41602dd1858b4c383c566a234c3dda036ca7138c SHA256 7f036a79b9aae1f904762256a257025e1d314aa00ab241dfdbe89cb33551f1e6
+MISC metadata.xml 162 RMD160 d002486a43522f2116b1d9d59828c484956d66e2 SHA1 d6b4923897f6ae673b4f93646f5b4ba61d5a2c3c SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFHuhnfj9hvisErhMIRAl+gAJ4oQyIQXGIjd1Aa2gAqt97k3hFTQgCfY3c3
+c83MvZuZ0qy5rHzaOI7G3U8=
+=GZyb
+-----END PGP SIGNATURE-----
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>