pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/qemu Add debug-info option to qemu; default ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff91d5661457
branches:  trunk
changeset: 439715:ff91d5661457
user:      jakllsch <jakllsch%pkgsrc.org@localhost>
date:      Sun Sep 27 21:27:27 2020 +0000

description:
Add debug-info option to qemu; default it off

qemu defaults to building with -g, but it's usually just a waste of
time and space in a pkgsrc environment without INSTALL_UNSTRIPPED
enabled.

diffstat:

 emulators/qemu/Makefile   |   4 ++--
 emulators/qemu/options.mk |  10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r dd050f387627 -r ff91d5661457 emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Sun Sep 27 18:38:35 2020 +0000
+++ b/emulators/qemu/Makefile   Sun Sep 27 21:27:27 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.250 2020/08/31 18:09:28 wiz Exp $
+# $NetBSD: Makefile,v 1.251 2020/09/27 21:27:27 jakllsch Exp $
 
 DISTNAME=      qemu-5.1.0
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    emulators
 MASTER_SITES=  https://download.qemu.org/
 EXTRACT_SUFX=  .tar.xz
diff -r dd050f387627 -r ff91d5661457 emulators/qemu/options.mk
--- a/emulators/qemu/options.mk Sun Sep 27 18:38:35 2020 +0000
+++ b/emulators/qemu/options.mk Sun Sep 27 21:27:27 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.11 2020/06/22 12:13:20 nia Exp $
+# $NetBSD: options.mk,v 1.12 2020/09/27 21:27:27 jakllsch Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.qemu
-PKG_SUPPORTED_OPTIONS= gtk3 iscsi sdl spice
+PKG_SUPPORTED_OPTIONS= debug-info gtk3 iscsi sdl spice
 PKG_SUGGESTED_OPTIONS+=        iscsi
 
 .include "../../mk/bsd.fast.prefs.mk"
@@ -26,6 +26,12 @@
 
 PLIST_VARS+=           gtk virtfs-proxy-helper
 
+.if !empty(PKG_OPTIONS:Mdebug-info)
+CONFIGURE_ARGS+=       --enable-debug-info
+.else
+CONFIGURE_ARGS+=       --disable-debug-info
+.endif
+
 .if !empty(PKG_OPTIONS:Mgtk3)
 PLIST.gtk=             yes
 CONFIGURE_ARGS+=       --enable-gtk



Home | Main Index | Thread Index | Old Index