pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/qemu Revision 2 changes:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3e82bc9b49df
branches:  trunk
changeset: 359076:3e82bc9b49df
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Feb 27 05:19:29 2017 +0000

description:
Revision 2 changes:
* Fixed building with C++.
* Fixed building on Darwin (PR 51899).
* Added GTK3 as an option.
* Switched from SDL-1 to SDL-2.
* Depend and enable support for: lzo, jemalloc, snappy, png, curl, jpeg.

diffstat:

 emulators/qemu/Makefile                                           |  23 ++++++---
 emulators/qemu/PLIST                                              |   9 +++-
 emulators/qemu/distinfo                                           |   6 +-
 emulators/qemu/options.mk                                         |  25 ++++++---
 emulators/qemu/patches/patch-configure                            |  20 ++++---
 emulators/qemu/patches/patch-disas_libvixl_vixl_a64_disasm-a64.cc |  16 ++++++
 emulators/qemu/patches/patch-disas_libvixl_vixl_utils.h           |  19 +++++++
 7 files changed, 90 insertions(+), 28 deletions(-)

diffs (275 lines):

diff -r a6d95896cd91 -r 3e82bc9b49df emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Sun Feb 26 22:28:52 2017 +0000
+++ b/emulators/qemu/Makefile   Mon Feb 27 05:19:29 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.164 2017/02/20 04:03:07 ryoon Exp $
+# $NetBSD: Makefile,v 1.165 2017/02/27 05:19:29 adam Exp $
 
 DISTNAME=      qemu-2.8.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    emulators
 MASTER_SITES=  http://download.qemu-project.org/
 EXTRACT_SUFX=  .tar.bz2
@@ -16,8 +16,9 @@
 # qemu 1 does not work on NetBSD-5; see http://gnats.netbsd.org/46565.
 NOT_FOR_PLATFORM+=     NetBSD-5*-*
 
+USE_CURSES=            resize_term wide
+USE_LANGUAGES+=                c c++
 USE_TOOLS+=            bison gmake makeinfo perl:build pkg-config
-USE_CURSES=            resize_term wide
 FAKE_NCURSES=          yes
 UNLIMIT_RESOURCES=     datasize
 HAS_CONFIGURE=         yes
@@ -41,7 +42,7 @@
 CONFIGURE_ARGS+=       --smbd=${PREFIX}/sbin/smbd
 CONFIGURE_ARGS+=       --mandir=${PREFIX}/${PKGMANDIR}
 CONFIGURE_ARGS+=       --enable-curses
-#HF#CONFIGURE_ARGS+=   --disable-fdt                   # HF: build on OS X
+CONFIGURE_ARGS+=       --enable-jemalloc
 CONFIGURE_ARGS+=       --disable-opengl
 CONFIGURE_ENV+=                mansuffix=/${PKGMANDIR}
 
@@ -84,10 +85,10 @@
 
 REPLACE_PERL+=         scripts/texi2pod.pl
 
-PYTHON_VERSIONS_INCOMPATIBLE=  34 35 36 # not yet ported yet as of 1.7.0
+PYTHON_VERSIONS_INCOMPATIBLE=  34 35 36 # not yet ported yet as of 2.8.0
 
-BUILDLINK_PASSTHRU_DIRS+= /usr/lib
-BUILDLINK_PASSTHRU_RPATHDIRS+= /usr/lib
+BUILDLINK_PASSTHRU_DIRS+=      /usr/lib
+BUILDLINK_PASSTHRU_RPATHDIRS+= /usr/lib
 
 INSTALLATION_DIRS=     ${PKGMANDIR}/man1 share/doc/qemu
 
@@ -123,7 +124,7 @@
 CONFIGURE_ARGS+=       --disable-coroutine-pool
 .endif
 
-PLIST_VARS+=           ${UE_ARCHS} nbd ivshmem
+PLIST_VARS+=           ${UE_ARCHS} nbd
 .for _var_ in ${USER_EMUL}
 PLIST.${_var_}=                YES
 .endfor
@@ -136,11 +137,17 @@
 .if empty(OPSYS:MDarwin)
 .include "../../mk/oss.buildlink3.mk"
 .endif
+.include "../../archivers/lzo/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/jemalloc/buildlink3.mk"
+.include "../../devel/snappy/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
 .include "../../lang/python/extension.mk"
 .include "../../security/libgcrypt/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
 .include "../../x11/pixman/buildlink3.mk"
 .include "../../mk/curses.buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r a6d95896cd91 -r 3e82bc9b49df emulators/qemu/PLIST
--- a/emulators/qemu/PLIST      Sun Feb 26 22:28:52 2017 +0000
+++ b/emulators/qemu/PLIST      Mon Feb 27 05:19:29 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.48 2016/12/30 10:00:16 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.49 2017/02/27 05:19:29 adam Exp $
 ${PLIST.ivshmem}bin/ivshmem-client
 ${PLIST.ivshmem}bin/ivshmem-server
 ${PLIST.alpha}bin/qemu-alpha
@@ -62,6 +62,13 @@
 share/doc/qemu/Makefile.multinode-NetBSD
 share/doc/qemu/qemu-doc.html
 share/doc/qemu/qmp-commands.txt
+${PLIST.gtk}share/locale/bg/LC_MESSAGES/qemu.mo
+${PLIST.gtk}share/locale/de_DE/LC_MESSAGES/qemu.mo
+${PLIST.gtk}share/locale/fr_FR/LC_MESSAGES/qemu.mo
+${PLIST.gtk}share/locale/hu/LC_MESSAGES/qemu.mo
+${PLIST.gtk}share/locale/it/LC_MESSAGES/qemu.mo
+${PLIST.gtk}share/locale/tr/LC_MESSAGES/qemu.mo
+${PLIST.gtk}share/locale/zh_CN/LC_MESSAGES/qemu.mo
 share/qemu/QEMU,cgthree.bin
 share/qemu/QEMU,tcx.bin
 share/qemu/acpi-dsdt.aml
diff -r a6d95896cd91 -r 3e82bc9b49df emulators/qemu/distinfo
--- a/emulators/qemu/distinfo   Sun Feb 26 22:28:52 2017 +0000
+++ b/emulators/qemu/distinfo   Mon Feb 27 05:19:29 2017 +0000
@@ -1,12 +1,14 @@
-$NetBSD: distinfo,v 1.120 2017/01/08 02:26:47 kamil Exp $
+$NetBSD: distinfo,v 1.121 2017/02/27 05:19:29 adam Exp $
 
 SHA1 (qemu-2.8.0.tar.bz2) = a5602f2ddb51d61b4c0e618b779fdb0dbdc9cc1f
 RMD160 (qemu-2.8.0.tar.bz2) = da1e640443a15f36a242fe803c65a39f85b06fcc
 SHA512 (qemu-2.8.0.tar.bz2) = 50f2988d822388ba9fd1bf5dbe68359033ed7432d7f0f9790299f32f63faa6dc72979256b5632ba572d47ee3e74ed40e3e8e331dc6303ec1599f1b4367cb78c2
 Size (qemu-2.8.0.tar.bz2) = 28368517 bytes
 SHA1 (patch-Makefile.objs) = f40deeed5482a24369e898411bb611be418dc3ca
-SHA1 (patch-configure) = 5c2911c1375a2f8916f84f68d4ba9a799b7624cb
+SHA1 (patch-configure) = 302d0ed283947b943e7fbcdd1138ba5fad3d1683
 SHA1 (patch-default-configs_pci.mak) = 2162550a68de514c8fe9e255df88f8a0a07ee6c7
+SHA1 (patch-disas_libvixl_vixl_a64_disasm-a64.cc) = 0660a0c2d37c332fcd1e00edb2dc3c52fe179cc9
+SHA1 (patch-disas_libvixl_vixl_utils.h) = 85285473b6021f9a0d190832d03c60c4d9df6bb7
 SHA1 (patch-ef) = 98a1de2fd48638886b5d16f6a61dc72910e98b41
 SHA1 (patch-et) = e9b850ac5985cbe934b541acbfdb330cce421d50
 SHA1 (patch-hw_display_omap__dss.c) = 6b13242f28e32346bc70548c216c578d98fd3420
diff -r a6d95896cd91 -r 3e82bc9b49df emulators/qemu/options.mk
--- a/emulators/qemu/options.mk Sun Feb 26 22:28:52 2017 +0000
+++ b/emulators/qemu/options.mk Mon Feb 27 05:19:29 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.2 2015/12/21 12:10:22 ryoon Exp $
+# $NetBSD: options.mk,v 1.3 2017/02/27 05:19:29 adam Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.qemu
-PKG_SUPPORTED_OPTIONS= sdl ivshmem
+PKG_SUPPORTED_OPTIONS= gtk3 ivshmem sdl
 
 .include "../../mk/bsd.fast.prefs.mk"
 
@@ -15,14 +15,23 @@
 
 .include "../../mk/bsd.options.mk"
 
-.if !empty(PKG_OPTIONS:Msdl)
-CONFIGURE_ARGS+=       --enable-sdl
-.include "../../devel/SDL/buildlink3.mk"
-.else
-CONFIGURE_ARGS+=       --disable-sdl
-.endif
+PLIST_VARS+=           gtk ivshmem
 
 .if !empty(PKG_OPTIONS:Mivshmem)
 PLIST.ivshmem=         yes
 .endif
 
+.if !empty(PKG_OPTIONS:Mgtk3)
+PLIST.gtk=             yes
+CONFIGURE_ARGS+=       --enable-gtk
+.include "../../x11/gtk3/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-gtk
+.endif
+
+.if !empty(PKG_OPTIONS:Msdl)
+CONFIGURE_ARGS+=       --enable-sdl
+.include "../../devel/SDL2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-sdl
+.endif
diff -r a6d95896cd91 -r 3e82bc9b49df emulators/qemu/patches/patch-configure
--- a/emulators/qemu/patches/patch-configure    Sun Feb 26 22:28:52 2017 +0000
+++ b/emulators/qemu/patches/patch-configure    Mon Feb 27 05:19:29 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-configure,v 1.16 2017/01/08 02:26:47 kamil Exp $
+$NetBSD: patch-configure,v 1.17 2017/02/27 05:19:29 adam Exp $
 
 Don't use gld on SunOS
+Use ncursesw6-config; define NCURSES_WIDECHAR to fix building on Darwin (at least).
 add check for shm_open
 avoid bad substitution
 
@@ -14,18 +15,19 @@
    smbd="${SMBD-/usr/sfw/sbin/smbd}"
    needs_libsunmath="no"
    solarisrev=$(uname -r | cut -f2 -d.)
-@@ -2928,8 +2927,8 @@ if test "$curses" != "no" ; then
+@@ -2928,23 +2927,23 @@ if test "$curses" != "no" ; then
      curses_inc_list="$($pkg_config --cflags ncurses 2>/dev/null):"
      curses_lib_list="$($pkg_config --libs ncurses 2>/dev/null):-lpdcurses"
    else
 -    curses_inc_list="$($pkg_config --cflags ncursesw 2>/dev/null):-I/usr/include/ncursesw:"
 -    curses_lib_list="$($pkg_config --libs ncursesw 2>/dev/null):-lncursesw:-lcursesw"
-+    curses_inc_list="$(@PREFIX@/bin/ncursesw6-config --cflags 2>/dev/null):-I/usr/include/ncursesw:"
-+    curses_lib_list="$(@PREFIX@/bin/ncursesw6-config --libs 2>/dev/null):-lncursesw:-lcursesw"
++    curses_inc_list="$(/dist/pkg/bin/ncursesw6-config --cflags 2>/dev/null):-I/usr/include/ncursesw:"
++    curses_lib_list="$(/dist/pkg/bin/ncursesw6-config --libs 2>/dev/null):-lncursesw:-lcursesw"
    fi
    curses_found=no
    cat > $TMPC << EOF
-@@ -2937,14 +2936,13 @@ if test "$curses" != "no" ; then
+ #include <locale.h>
++#define NCURSES_WIDECHAR 1
  #include <curses.h>
  #include <wchar.h>
  int main(void) {
@@ -41,7 +43,7 @@
  }
  EOF
    IFS=:
-@@ -3762,6 +3760,27 @@ if compile_prog "" "" ; then
+@@ -3762,6 +3761,27 @@ if compile_prog "" "" ; then
    fallocate_zero_range=yes
  fi
  
@@ -69,7 +71,7 @@
  # check for posix_fallocate
  posix_fallocate=no
  cat > $TMPC << EOF
-@@ -4041,8 +4060,13 @@ fi
+@@ -4041,8 +4061,13 @@ fi
  cat > $TMPC <<EOF
  #include <signal.h>
  #include <time.h>
@@ -83,7 +85,7 @@
    return clock_gettime(CLOCK_REALTIME, NULL);
  }
  EOF
-@@ -4797,7 +4821,9 @@ if test "$want_tools" = "yes" ; then
+@@ -4797,7 +4822,9 @@ if test "$want_tools" = "yes" ; then
    tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
    if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
      tools="qemu-nbd\$(EXESUF) $tools"
@@ -94,7 +96,7 @@
    fi
  fi
  if test "$softmmu" = yes ; then
-@@ -5303,6 +5329,9 @@ fi
+@@ -5303,6 +5330,9 @@ fi
  if test "$fallocate_zero_range" = "yes" ; then
    echo "CONFIG_FALLOCATE_ZERO_RANGE=y" >> $config_host_mak
  fi
diff -r a6d95896cd91 -r 3e82bc9b49df emulators/qemu/patches/patch-disas_libvixl_vixl_a64_disasm-a64.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/qemu/patches/patch-disas_libvixl_vixl_a64_disasm-a64.cc Mon Feb 27 05:19:29 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-disas_libvixl_vixl_a64_disasm-a64.cc,v 1.1 2017/02/27 05:19:29 adam Exp $
+
+Re-order includes, so __STDC_CONSTANT_MACROS gets defined before including stdint.h.
+
+--- disas/libvixl/vixl/a64/disasm-a64.cc.orig  2017-02-26 09:56:59.312135262 +0000
++++ disas/libvixl/vixl/a64/disasm-a64.cc
+@@ -24,8 +24,8 @@
+ // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
+-#include <cstdlib>
+ #include "vixl/a64/disasm-a64.h"
++#include <cstdlib>
+ 
+ namespace vixl {
+ 
diff -r a6d95896cd91 -r 3e82bc9b49df emulators/qemu/patches/patch-disas_libvixl_vixl_utils.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/qemu/patches/patch-disas_libvixl_vixl_utils.h   Mon Feb 27 05:19:29 2017 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-disas_libvixl_vixl_utils.h,v 1.1 2017/02/27 05:19:29 adam Exp $
+
+Re-order includes, so __STDC_CONSTANT_MACROS gets defined before including stdint.h.
+
+--- disas/libvixl/vixl/utils.h.orig    2017-02-26 09:55:15.839475323 +0000
++++ disas/libvixl/vixl/utils.h
+@@ -27,10 +27,10 @@
+ #ifndef VIXL_UTILS_H
+ #define VIXL_UTILS_H
+ 
+-#include <string.h>
+-#include <cmath>
+ #include "vixl/globals.h"
+ #include "vixl/compiler-intrinsics.h"
++#include <string.h>
++#include <cmath>
+ 
+ namespace vixl {
+ 



Home | Main Index | Thread Index | Old Index