summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-24 02:00:29 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-24 02:00:29 +0000
commit1f688cd62b054d4070c0c3190be19dfe85b57df6 (patch)
treef92421899224c4f5d69ede9b5c80d00a84e074c3 /dev-libs/libaio
parent+dev-util/strace:aio (diff)
downloadgentoo-2-1f688cd62b054d4070c0c3190be19dfe85b57df6.tar.gz
gentoo-2-1f688cd62b054d4070c0c3190be19dfe85b57df6.tar.bz2
gentoo-2-1f688cd62b054d4070c0c3190be19dfe85b57df6.zip
Add support for alpha/arm/hppa/ia64/m68k/s390/sh.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'dev-libs/libaio')
-rw-r--r--dev-libs/libaio/ChangeLog8
-rw-r--r--dev-libs/libaio/files/libaio-0.3.15-more-arches.patch58
-rw-r--r--dev-libs/libaio/libaio-0.3.15.ebuild14
3 files changed, 74 insertions, 6 deletions
diff --git a/dev-libs/libaio/ChangeLog b/dev-libs/libaio/ChangeLog
index a01a2a1b7aff..ff1cc9f093a2 100644
--- a/dev-libs/libaio/ChangeLog
+++ b/dev-libs/libaio/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/libaio
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libaio/ChangeLog,v 1.5 2004/06/24 23:13:35 agriffis Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libaio/ChangeLog,v 1.6 2005/08/24 02:00:29 vapier Exp $
+
+ 24 Aug 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/libaio-0.3.15-more-arches.patch, libaio-0.3.15.ebuild:
+ Add support for alpha/arm/hppa/ia64/m68k/s390/sh.
12 Jun 2004; Ian Leitch <port001@gentoo.org> libaio-0.3.15.ebuild,
libaio-0.3.92.ebuild:
diff --git a/dev-libs/libaio/files/libaio-0.3.15-more-arches.patch b/dev-libs/libaio/files/libaio-0.3.15-more-arches.patch
new file mode 100644
index 000000000000..54f2b34dd088
--- /dev/null
+++ b/dev-libs/libaio/files/libaio-0.3.15-more-arches.patch
@@ -0,0 +1,58 @@
+--- src/syscall.h
++++ src/syscall.h
+@@ -1,6 +1,7 @@
+ #ifndef AIO_SYSCALL
+ #define AIO_SYSCALL
+
++#include <errno.h>
+ #include <asm/unistd.h>
+ #undef __syscall_return
+ #ifndef __powerpc__
+@@ -19,25 +20,35 @@
+ #ifndef __NR_io_setup
+ #ifdef __s390__
+ #define __NR_io_setup 243
+-#define __NR_io_destroy 244
+-#define __NR_io_getevents 245
+-#define __NR_io_submit 246
+-#define __NR_io_cancel 247
+ #endif
+ #ifdef __i386__
+ #define __NR_io_setup 245
+-#define __NR_io_destroy 246
+-#define __NR_io_getevents 247
+-#define __NR_io_submit 248
+-#define __NR_io_cancel 249
+ #endif
+ #ifdef __x86_64__
+ #define __NR_io_setup 206
+-#define __NR_io_destroy 207
+-#define __NR_io_getevents 208
+-#define __NR_io_submit 209
+-#define __NR_io_cancel 210
+ #endif
++#ifdef __alpha__
++#define __NR_io_setup 398
++#endif
++#ifdef __hppa__
++#define __NR_io_setup 215
++#endif
++#ifdef __sh__
++#define __NR_io_setup 245
++#endif
++#ifdef __arm__
++#define __NR_io_setup 0x900000+243
++#endif
++#ifdef __ia64__
++#define __NR_io_setup 1238
++#endif
++#ifdef __m68k__
++#define __NR_io_setup 241
++#endif
++#define __NR_io_destroy __NR_io_setup + 1
++#define __NR_io_getevents __NR_io_setup + 2
++#define __NR_io_submit __NR_io_setup + 3
++#define __NR_io_cancel __NR_io_setup + 4
+ #endif
+
+ #define __NR_sys_io_setup __NR_io_setup
diff --git a/dev-libs/libaio/libaio-0.3.15.ebuild b/dev-libs/libaio/libaio-0.3.15.ebuild
index 31f310093b3c..65e6818785b4 100644
--- a/dev-libs/libaio/libaio-0.3.15.ebuild
+++ b/dev-libs/libaio/libaio-0.3.15.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libaio/libaio-0.3.15.ebuild,v 1.9 2005/08/24 01:45:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libaio/libaio-0.3.15.ebuild,v 1.10 2005/08/24 02:00:29 vapier Exp $
inherit eutils
@@ -11,20 +11,26 @@ SRC_URI="http://www.kernel.org/pub/linux/kernel/people/andrea/libaio/${P}-2.5-2.
LICENSE="LGPL-2"
SLOT="0"
-KEYWORDS="amd64 ~s390 ~x86"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~s390 ~sh ~x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/${P}-2.5-2
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-2.5-2-Makefile.patch
+ epatch "${FILESDIR}"/${P}-more-arches.patch
+}
+
src_compile() {
- epatch ${FILESDIR}/${P}-2.5-2-Makefile.patch
make || die
}
src_install() {
make \
- prefix=${D}/usr \
+ prefix="${D}"/usr \
install || die
}