[oe-commits] org.oe.dev libaio: added hack to get rid of undefined reference to '__io_getevents_0_4'
hrw commit
openembedded-commits at lists.openembedded.org
Sat Oct 14 18:53:20 UTC 2006
libaio: added hack to get rid of undefined reference to '__io_getevents_0_4'
Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: cdf57334d92107e67da0a4fcde849921042f581a
ViewMTN: http://monotone.openembedded.org/revision.psp?id=cdf57334d92107e67da0a4fcde849921042f581a
Files:
1
packages/libaio/libaio-0.3.106/__io_getevents_0_4.patch
packages/libaio/libaio_0.3.106.bb
Diffs:
#
# mt diff -ra5d64ac1767ebd09d8d49d28d13d395b201b9237 -rcdf57334d92107e67da0a4fcde849921042f581a
#
#
#
# add_file "packages/libaio/libaio-0.3.106/__io_getevents_0_4.patch"
# content [264a041c13f40c86b7cac25499341a48ee73aac2]
#
# patch "packages/libaio/libaio_0.3.106.bb"
# from [bc6b22d698d11158398eccf5f7c20acd9a6e7208]
# to [d1ec2677f401f9f968974db17a933d470c8b26ae]
#
============================================================
--- packages/libaio/libaio-0.3.106/__io_getevents_0_4.patch 264a041c13f40c86b7cac25499341a48ee73aac2
+++ packages/libaio/libaio-0.3.106/__io_getevents_0_4.patch 264a041c13f40c86b7cac25499341a48ee73aac2
@@ -0,0 +1,29 @@
+From: Marcin Juszkiewicz <hrw at openembedded.org>
+
+Fast hack to get applications which use libaio linked.
+
+Get rid of:
+/home/hrw/devel/build/dev/tmp/staging/arm-linux/lib/libaio.so: undefined reference to `__io_getevents_0_4'
+
+Index: libaio-0.3.106/src/io_getevents.c
+===================================================================
+--- libaio-0.3.106.orig/src/io_getevents.c 2003-06-18 21:58:21.000000000 +0200
++++ libaio-0.3.106/src/io_getevents.c 2006-10-14 19:42:49.000000000 +0200
+@@ -22,7 +22,7 @@
+ #include <time.h>
+ #include "syscall.h"
+
+-io_syscall5(int, __io_getevents_0_4, io_getevents, io_context_t, ctx, long, min_nr, long, nr, struct io_event *, events, struct timespec *, timeout)
++io_syscall5(int, io_getevents_0_4, io_getevents, io_context_t, ctx, long, min_nr, long, nr, struct io_event *, events, struct timespec *, timeout)
+
+ #define AIO_RING_MAGIC 0xa10a10a1
+
+@@ -51,7 +51,7 @@
+ }
+
+ do_syscall:
+- return __io_getevents_0_4(ctx, min_nr, nr, events, timeout);
++ return io_getevents_0_4(ctx, min_nr, nr, events, timeout);
+ }
+
+ DEFSYMVER(io_getevents_0_4, io_getevents, 0.4)
============================================================
--- packages/libaio/libaio_0.3.106.bb bc6b22d698d11158398eccf5f7c20acd9a6e7208
+++ packages/libaio/libaio_0.3.106.bb d1ec2677f401f9f968974db17a933d470c8b26ae
@@ -1,9 +1,11 @@ LICENSE = "LGPL"
DESCRIPTION="Asynchronous input/output library that uses the kernels native interface"
LICENSE = "LGPL"
+PR = "r1"
SRC_URI = "${DEBIAN_MIRROR}/main/liba/libaio/libaio_${PV}.orig.tar.gz \
file://00_arches.patch;patch=1 \
- file://destdir.patch;patch=1"
+ file://__io_getevents_0_4.patch;patch=1 \
+ file://destdir.patch;patch=1"
do_stage() {
install -d ${STAGING_INCDIR} ${STAGING_LIBDIR}
More information about the Openembedded-commits
mailing list