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:   adam
Date:           Mon Feb 27 05:19:29 UTC 2017

Modified Files:
        pkgsrc/emulators/qemu: Makefile PLIST distinfo options.mk
        pkgsrc/emulators/qemu/patches: patch-configure
Added Files:
        pkgsrc/emulators/qemu/patches:
            patch-disas_libvixl_vixl_a64_disasm-a64.cc
            patch-disas_libvixl_vixl_utils.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.164 -r1.165 pkgsrc/emulators/qemu/Makefile
cvs rdiff -u -r1.48 -r1.49 pkgsrc/emulators/qemu/PLIST
cvs rdiff -u -r1.120 -r1.121 pkgsrc/emulators/qemu/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/emulators/qemu/options.mk
cvs rdiff -u -r1.16 -r1.17 pkgsrc/emulators/qemu/patches/patch-configure
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/qemu/patches/patch-disas_libvixl_vixl_a64_disasm-a64.cc \
    pkgsrc/emulators/qemu/patches/patch-disas_libvixl_vixl_utils.h

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.164 pkgsrc/emulators/qemu/Makefile:1.165
--- pkgsrc/emulators/qemu/Makefile:1.164        Mon Feb 20 04:03:07 2017
+++ pkgsrc/emulators/qemu/Makefile      Mon Feb 27 05:19:29 2017
@@ -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 @@ NOT_FOR_PLATFORM+=    NetBSD-1.[0-6]*-*
 # qemu 1 does not work on NetBSD-5; see http://gnats.netbsd.org/46565.
 NOT_FOR_PLATFORM+=     NetBSD-5*-*
 
-USE_TOOLS+=            bison gmake makeinfo perl:build pkg-config
 USE_CURSES=            resize_term wide
+USE_LANGUAGES+=                c c++
+USE_TOOLS+=            bison gmake makeinfo perl:build pkg-config
 FAKE_NCURSES=          yes
 UNLIMIT_RESOURCES=     datasize
 HAS_CONFIGURE=         yes
@@ -41,7 +42,7 @@ CONFIGURE_ARGS+=      --python=${PYTHONBIN}
 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 @@ PKG_SYSCONFSUBDIR=  qemu
 
 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 @@ PLIST.nbd=          YES
 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 @@ post-install:
 .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"

Index: pkgsrc/emulators/qemu/PLIST
diff -u pkgsrc/emulators/qemu/PLIST:1.48 pkgsrc/emulators/qemu/PLIST:1.49
--- pkgsrc/emulators/qemu/PLIST:1.48    Fri Dec 30 10:00:16 2016
+++ pkgsrc/emulators/qemu/PLIST Mon Feb 27 05:19:29 2017
@@ -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 @@ man/man8/qemu-nbd.8
 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

Index: pkgsrc/emulators/qemu/distinfo
diff -u pkgsrc/emulators/qemu/distinfo:1.120 pkgsrc/emulators/qemu/distinfo:1.121
--- pkgsrc/emulators/qemu/distinfo:1.120        Sun Jan  8 02:26:47 2017
+++ pkgsrc/emulators/qemu/distinfo      Mon Feb 27 05:19:29 2017
@@ -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

Index: pkgsrc/emulators/qemu/options.mk
diff -u pkgsrc/emulators/qemu/options.mk:1.2 pkgsrc/emulators/qemu/options.mk:1.3
--- pkgsrc/emulators/qemu/options.mk:1.2        Mon Dec 21 12:10:22 2015
+++ pkgsrc/emulators/qemu/options.mk    Mon Feb 27 05:19:29 2017
@@ -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 @@ PKG_SUGGESTED_OPTIONS+=     sdl
 
 .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

Index: pkgsrc/emulators/qemu/patches/patch-configure
diff -u pkgsrc/emulators/qemu/patches/patch-configure:1.16 pkgsrc/emulators/qemu/patches/patch-configure:1.17
--- pkgsrc/emulators/qemu/patches/patch-configure:1.16  Sun Jan  8 02:26:47 2017
+++ pkgsrc/emulators/qemu/patches/patch-configure       Mon Feb 27 05:19:29 2017
@@ -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 @@ avoid bad substitution
    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 @@ avoid bad substitution
  }
  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 @@ avoid bad substitution
  # 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 @@ avoid bad substitution
    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 @@ avoid bad substitution
    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

Added files:

Index: pkgsrc/emulators/qemu/patches/patch-disas_libvixl_vixl_a64_disasm-a64.cc
diff -u /dev/null pkgsrc/emulators/qemu/patches/patch-disas_libvixl_vixl_a64_disasm-a64.cc:1.1
--- /dev/null   Mon Feb 27 05:19:29 2017
+++ pkgsrc/emulators/qemu/patches/patch-disas_libvixl_vixl_a64_disasm-a64.cc    Mon Feb 27 05:19:29 2017
@@ -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 {
+ 
Index: pkgsrc/emulators/qemu/patches/patch-disas_libvixl_vixl_utils.h
diff -u /dev/null pkgsrc/emulators/qemu/patches/patch-disas_libvixl_vixl_utils.h:1.1
--- /dev/null   Mon Feb 27 05:19:29 2017
+++ pkgsrc/emulators/qemu/patches/patch-disas_libvixl_vixl_utils.h      Mon Feb 27 05:19:29 2017
@@ -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