summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2005-06-18 11:59:55 +0000
committerLuca Barbato <lu_zero@gentoo.org>2005-06-18 11:59:55 +0000
commit90e87c5be1a71e4d74b796ecd95d1953afe73c0b (patch)
treed5b0387d0950e06f1094543a6466e68bcfc1e140 /app-emulation/qemu-user
parentStable on alpha (diff)
downloadhistorical-90e87c5be1a71e4d74b796ecd95d1953afe73c0b.tar.gz
historical-90e87c5be1a71e4d74b796ecd95d1953afe73c0b.tar.bz2
historical-90e87c5be1a71e4d74b796ecd95d1953afe73c0b.zip
Split ebuild part II - abi wrappers
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'app-emulation/qemu-user')
-rw-r--r--app-emulation/qemu-user/ChangeLog11
-rw-r--r--app-emulation/qemu-user/Manifest5
-rw-r--r--app-emulation/qemu-user/files/digest-qemu-user-0.7.0-r11
-rw-r--r--app-emulation/qemu-user/files/qemu-user-0.7.0-errno.patch11
-rw-r--r--app-emulation/qemu-user/metadata.xml8
-rw-r--r--app-emulation/qemu-user/qemu-user-0.7.0-r1.ebuild87
6 files changed, 123 insertions, 0 deletions
diff --git a/app-emulation/qemu-user/ChangeLog b/app-emulation/qemu-user/ChangeLog
new file mode 100644
index 000000000000..7bbbc700a278
--- /dev/null
+++ b/app-emulation/qemu-user/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-emulation/qemu-user
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/ChangeLog,v 1.1 2005/06/18 11:59:55 lu_zero Exp $
+
+*qemu-user-0.7.0-r1 (18 Jun 2005)
+
+ 18 Jun 2005; Luca Barbato <lu_zero@gentoo.org>
+ +files/qemu-user-0.7.0-errno.patch, +metadata.xml,
+ +qemu-user-0.7.0-r1.ebuild:
+ qemu split ebuild, abi wrappers
+
diff --git a/app-emulation/qemu-user/Manifest b/app-emulation/qemu-user/Manifest
new file mode 100644
index 000000000000..7fe929a18cfa
--- /dev/null
+++ b/app-emulation/qemu-user/Manifest
@@ -0,0 +1,5 @@
+MD5 898131aae735c3477ff2f9c6882f1178 metadata.xml 223
+MD5 b3885f4c930c2d6847f573a5d33bcd8e ChangeLog 422
+MD5 431458f4c01ad6238f20d77302e4b871 qemu-user-0.7.0-r1.ebuild 2250
+MD5 4fac7d5e68ef58489e7734f5dccb2918 files/digest-qemu-user-0.7.0-r1 63
+MD5 3202f7445799cce82ccaac9749e1443d files/qemu-user-0.7.0-errno.patch 487
diff --git a/app-emulation/qemu-user/files/digest-qemu-user-0.7.0-r1 b/app-emulation/qemu-user/files/digest-qemu-user-0.7.0-r1
new file mode 100644
index 000000000000..fc0413b35b71
--- /dev/null
+++ b/app-emulation/qemu-user/files/digest-qemu-user-0.7.0-r1
@@ -0,0 +1 @@
+MD5 234e9ace03b00259bb57dc5a9c633056 qemu-0.7.0.tar.gz 1211802
diff --git a/app-emulation/qemu-user/files/qemu-user-0.7.0-errno.patch b/app-emulation/qemu-user/files/qemu-user-0.7.0-errno.patch
new file mode 100644
index 000000000000..291adc1725b5
--- /dev/null
+++ b/app-emulation/qemu-user/files/qemu-user-0.7.0-errno.patch
@@ -0,0 +1,11 @@
+diff -ruN qemu-0.7.0.orig/target-i386/helper2.c qemu-0.7.0/target-i386/helper2.c
+--- qemu-0.7.0.orig/target-i386/helper2.c 2005-04-27 22:52:05.000000000 +0200
++++ qemu-0.7.0/target-i386/helper2.c 2005-05-25 22:07:50.000000000 +0200
+@@ -17,6 +17,7 @@
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
++#include <errno.h>
+ #include <stdarg.h>
+ #include <stdlib.h>
+ #include <stdio.h>
diff --git a/app-emulation/qemu-user/metadata.xml b/app-emulation/qemu-user/metadata.xml
new file mode 100644
index 000000000000..7ea327a416ea
--- /dev/null
+++ b/app-emulation/qemu-user/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>lu_zero@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-emulation/qemu-user/qemu-user-0.7.0-r1.ebuild b/app-emulation/qemu-user/qemu-user-0.7.0-r1.ebuild
new file mode 100644
index 000000000000..cc9e31023a38
--- /dev/null
+++ b/app-emulation/qemu-user/qemu-user-0.7.0-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/qemu-user-0.7.0-r1.ebuild,v 1.1 2005/06/18 11:59:55 lu_zero Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Multi-platform & multi-targets cpu emulator and dynamic translator"
+HOMEPAGE="http://fabrice.bellard.free.fr/qemu/"
+SRC_URI="http://fabrice.bellard.free.fr/qemu/${P/-user}.tar.gz"
+#qvm86? ( http://dev.gentoo.org/~lu_zero/distfiles/qvm86-20050409.tar.bz2 )"
+#kqemu? ( http://fabrice.bellard.free.fr/qemu/kqemu-${PV%.*}-1.tar.gz )
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86 ~ppc -alpha -sparc ~amd64"
+IUSE="" #qvm86 debug nptl qemu-fast nptlonly"
+RESTRICT="nostrip"
+
+DEPEND="virtual/libc
+ app-text/texi2html
+ !<=app-emulation/qemu-0.7.0"
+RDEPEND=""
+
+S="${WORKDIR}/${P/-user}"
+
+set_target_list() {
+ TARGET_LIST="arm-user armeb-user i386-user ppc-user sparc-user"
+ export TARGET_LIST
+}
+
+pkg_setup() {
+ if [ "$(gcc-major-version)" == "4" ]; then
+ ewarn "Qemu could not build with GCC 4"
+ fi
+}
+
+#RUNTIME_PATH="/emul/gnemul/"
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-errno.patch
+
+ # Alter target makefiles to accept CFLAGS set via flag-o.
+ sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+ Makefile Makefile.target tests/Makefile
+ # Ensure mprotect restrictions are relaxed for emulator binaries
+ [[ -x /sbin/paxctl ]] && \
+ sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
+ Makefile.target
+ # Prevent install of kernel module by qemu's makefile
+ sed -i 's/\(.\/install.sh\)/#\1/' Makefile
+}
+
+src_compile() {
+ #Let the application set its cflags
+ unset CFLAGS
+
+ # Switch off hardened tech
+ filter-flags -fpie -fstack-protector
+
+ myconf=""
+ set_target_list
+# --interp-prefix=${RUNTIME_PATH}/qemu-%M
+ ./configure \
+ --prefix=/usr \
+ --target-list="${TARGET_LIST}" \
+ --enable-slirp \
+ --kernel-path=${KV_DIR} \
+ ${myconf} \
+ || die "could not configure"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ make install \
+ prefix=${D}/usr \
+ bindir=${D}/usr/bin \
+ datadir=${D}/usr/share/qemu \
+ docdir=${D}/usr/share/doc/${P} \
+ mandir=${D}/usr/share/man || die
+
+ rm -fR ${D}/usr/share/{man,qemu}
+ rm -fR ${D}/usr/bin/qemu-img
+}