pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/emulators/qemu



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Jun 28 13:39:52 UTC 2020

Modified Files:
        pkgsrc/emulators/qemu: Makefile

Log Message:
qemu: Don't build bsd usermode unless <machine/trap.h> exists on NetBSD

(It doesn't on 9.0 aarch64, apparently)


To generate a diff of this commit:
cvs rdiff -u -r1.245 -r1.246 pkgsrc/emulators/qemu/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/qemu/Makefile
diff -u pkgsrc/emulators/qemu/Makefile:1.245 pkgsrc/emulators/qemu/Makefile:1.246
--- pkgsrc/emulators/qemu/Makefile:1.245        Thu May 28 14:44:19 2020
+++ pkgsrc/emulators/qemu/Makefile      Sun Jun 28 13:39:52 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.245 2020/05/28 14:44:19 nia Exp $
+# $NetBSD: Makefile,v 1.246 2020/06/28 13:39:52 nia Exp $
 
 DISTNAME=      qemu-5.0.0
 PKGREVISION=   5
@@ -103,8 +103,12 @@ UE_ARCHS+=         tilegx
 UE_ARCHS+=             x86_64 xtensa xtensaeb
 
 .if ${OPSYS} == "NetBSD"
-USER_EMUL=                     i386 x86_64 sparc sparc64
 PLIST.nbd=                     yes
+.  if !exists(/usr/include/machine/trap.h)
+CONFIGURE_ARGS+=               --disable-bsd-user
+.  else
+USER_EMUL=                     i386 x86_64 sparc sparc64
+.  endif
 .elif !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly"
 USER_EMUL=                     i386 x86_64 sparc sparc64
 PLIST.nbd=                     yes



Home | Main Index | Thread Index | Old Index