summaryrefslogtreecommitdiff
path: root/emulators/qemu
diff options
context:
space:
mode:
authortsutsui <tsutsui@pkgsrc.org>2010-11-20 14:37:42 +0000
committertsutsui <tsutsui@pkgsrc.org>2010-11-20 14:37:42 +0000
commit798be998ea60ab661dc9bac96a2b3ec7d1aa4e2c (patch)
tree14fac1dfb79d891e8797edce131341fc7c96f093 /emulators/qemu
parentecc4c31b65c0156f672c55bd4f94600babe3bdf8 (diff)
downloadpkgsrc-798be998ea60ab661dc9bac96a2b3ec7d1aa4e2c.tar.gz
Disable bsd-user binaries on NetBSD 5.x and prior for workaround.
i386 and x86_64 user emul binaries require newer binutils for PROVIDE_HIDDEN() http://git.qemu.org/qemu.git/commit/?id=845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 but on NetBSD binutils-2.19 was enabled around 5.99.22: http://cvsweb.NetBSD.org/bsdweb.cgi/src/share/mk/bsd.own.mk#rev1.594 and qemu-0.13.0 build fails on NetBSD 5.1 and 5.0.2. Note qemu, qemu-system-x86_64, and other non user binaries (that would actually be required by most users) still work fine.
Diffstat (limited to 'emulators/qemu')
-rw-r--r--emulators/qemu/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index 68e0097f16e..4b58f992a26 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.75 2010/11/09 10:37:12 jmmv Exp $
+# $NetBSD: Makefile,v 1.76 2010/11/20 14:37:42 tsutsui Exp $
#
DISTNAME= qemu-0.13.0
@@ -73,7 +73,20 @@ UE_ARCHS+= alpha arm armeb cris i386 m68k microblaze mips mipsel
UE_ARCHS+= ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus
UE_ARCHS+= sparc64 x86_64
-.if !empty(OPSYS:M*BSD) || !empty(OPSYS:MDragonFly)
+.if ${OPSYS} == "NetBSD"
+.if (!empty(OS_VERSION:M5.99.*) || !empty(OS_VERSION:M[6-9].*))
+# XXX
+# i386 and x86_64 user emul require newer binutils for PROVIDE_HIDDEN()
+# http://git.qemu.org/qemu.git/commit/?id=845f2c2812d9ed24b36c02a3d06ee83aeafe8b49
+# but binutils-2.19 was enabled around 5.99.22:
+# http://cvsweb.NetBSD.org/bsdweb.cgi/src/share/mk/bsd.own.mk#rev1.594
+USER_EMUL= i386 x86_64 sparc sparc64
+.else
+CONFIGURE_ARGS+= --disable-bsd-user
+USER_EMUL=
+.endif
+PLIST.nbd= YES
+.elif !empty(OPSYS:M*BSD) || !empty(OPSYS:MDragonFly)
USER_EMUL= i386 x86_64 sparc sparc64
PLIST.nbd= YES
.elif !empty(OPSYS:MDarwin)