qemu: Do not duplicate already existing configure nvmm test in pkgsrc Makefile

configure already had the logic to gracefully test for nvmm and if the
corresponding nvmm variable is set to an empty string do that.

No functional nor binary change intended except a CONFIGURE_ARGS difference.

Fixes PR pkg/55049.

Thanks Yasushi Oshima for reporting this problem, sharing an initial
patch and further testing the version committed now!
This commit is contained in:
leot 2020-05-23 15:46:12 +00:00
parent e68e44479d
commit 2628c2a95a
3 changed files with 5 additions and 11 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.242 2020/05/22 10:56:05 adam Exp $
# $NetBSD: Makefile,v 1.243 2020/05/23 15:46:12 leot Exp $
DISTNAME= qemu-5.0.0
PKGREVISION= 3
@ -52,12 +52,6 @@ PKGSRC_USE_SSP= no
CONFIGURE_ARGS+= --enable-stack-protector
.endif
.if ${OPSYS} == "NetBSD" && exists(/usr/include/nvmm.h)
CONFIGURE_ARGS+= --enable-nvmm
.else
CONFIGURE_ARGS+= --disable-nvmm
.endif
NOT_PAX_MPROTECT_SAFE+= bin/qemu-system-aarch64
NOT_PAX_MPROTECT_SAFE+= bin/qemu-system-alpha
NOT_PAX_MPROTECT_SAFE+= bin/qemu-system-arm

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.159 2020/05/10 11:33:23 skrll Exp $
$NetBSD: distinfo,v 1.160 2020/05/23 15:46:12 leot Exp $
SHA1 (qemu-5.0.0.tar.xz) = 52d1c0e6025a212d4fde471e4d9b5913f2615f86
RMD160 (qemu-5.0.0.tar.xz) = 58a704960cd712cf6c218216e8426a05948f6526
@ -9,7 +9,7 @@ SHA1 (patch-accel_stubs_Makefile.objs) = 92266dc400ac1e97013f7f19ee4b7a63b42c7fc
SHA1 (patch-accel_stubs_nvmm-stub.c) = d66d47eabb8bb6728e777da7589b43d491adbcc8
SHA1 (patch-accel_tcg_user-exec.c) = ec5f3882c78763b4072daa41fd67e55da291c065
SHA1 (patch-capstone_Makefile) = f59870031de8c4385a591362749ec82f57fd4c27
SHA1 (patch-configure) = 993ed55b8e63c3022c5afc3dbc3f0eacbebdd61b
SHA1 (patch-configure) = ada3ddba78c4eacf2591e47d27d26bf3886e8d73
SHA1 (patch-contrib_ivshmem-client_ivshmem-client.c) = 40c8751607cbf66a37e4c4e08f2664b864e2e984
SHA1 (patch-contrib_ivshmem-server_ivshmem-server.c) = d8f53432b5752f4263dc4ef96108a976a05147a3
SHA1 (patch-cpus.c) = a319b7533daf3036c44411c4b26270b1fbb96009

View file

@ -1,4 +1,4 @@
$NetBSD: patch-configure,v 1.27 2020/04/30 17:16:04 adam Exp $
$NetBSD: patch-configure,v 1.28 2020/05/23 15:46:12 leot Exp $
Add NVMM support.
Fix jemalloc detection.
@ -43,7 +43,7 @@ Fix jemalloc detection.
NetBSD)
bsd="yes"
hax="yes"
+ nvmm="yes"
+ nvmm=""
make="${MAKE-gmake}"
audio_drv_list="oss try-sdl"
audio_possible_drivers="oss sdl"