pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2019Q4]: pkgsrc Pullup ticket #6123 - requested by gutteridge



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b22143e2a47
branches:  pkgsrc-2019Q4
changeset: 410666:0b22143e2a47
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Mon Jan 27 10:59:04 2020 +0000

description:
Pullup ticket #6123 - requested by gutteridge
emulators/qemu: build fix

Revisions pulled up:
- emulators/qemu/Makefile                                       1.223-1.224,1.226
- emulators/qemu/PLIST                                          1.64-1.65
- emulators/qemu/options.mk                                     1.6
- mk/defaults/options.description                               1.605

---
   Module Name:    pkgsrc
   Committed By:   ryoon
   Date:           Sat Jan  4 13:47:00 UTC 2020

   Modified Files:
           pkgsrc/emulators/qemu: Makefile PLIST

   Log Message:
   Include xkbcommon unconditionally and directly to reduce PLIST divergence

   * Bump PKGREVISION.

---
   Module Name:    pkgsrc
   Committed By:   adam
   Date:           Fri Jan 10 20:27:04 UTC 2020

   Modified Files:
           pkgsrc/emulators/qemu: Makefile PLIST

   Log Message:
   qemu: fix build on macOS

---
   Module Name:    pkgsrc
   Committed By:   gutteridge
   Date:           Mon Jan 13 02:50:25 UTC 2020

   Modified Files:
           pkgsrc/emulators/qemu: Makefile options.mk

   Log Message:
   qemu: fix Linux build in most environments

   Addresses PR pkg/54772, reported by and patch tested by Ottavio Caruso.
   virtfs-proxy-helper is only built if two development libraries (for
   libcap and libattr) are installed, which typically aren't included by
   default in Linux distros. Make virtfs support a non-default option that
   someone would enable when they expressly want it, and they have first
   installed the necessary upstream header packages to support the
   compilation of this option.

---
   Module Name:    pkgsrc
   Committed By:   gutteridge
   Date:           Mon Jan 13 02:52:28 UTC 2020

   Modified Files:
           pkgsrc/mk/defaults: options.description

   Log Message:
   options.description: add virtfs-proxy-helper

diffstat:

 emulators/qemu/Makefile         |   8 +++++---
 emulators/qemu/PLIST            |   3 ++-
 emulators/qemu/options.mk       |  17 +++++++++++++++--
 mk/defaults/options.description |   1 +
 4 files changed, 23 insertions(+), 6 deletions(-)

diffs (105 lines):

diff -r 06e8cf50d27c -r 0b22143e2a47 emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Mon Jan 27 10:13:42 2020 +0000
+++ b/emulators/qemu/Makefile   Mon Jan 27 10:59:04 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.222 2019/12/15 18:35:25 adam Exp $
+# $NetBSD: Makefile,v 1.222.4.1 2020/01/27 10:59:04 bsiegert Exp $
 
 DISTNAME=      qemu-4.2.0
+PKGREVISION=   3
 CATEGORIES=    emulators
 MASTER_SITES=  https://download.qemu.org/
 EXTRACT_SUFX=  .tar.xz
@@ -124,14 +125,13 @@
 PLIST.nbd=                     yes
 PLIST.ivshmem=                 yes
 PLIST.pr-helper=               yes
-PLIST.virtfs-proxy-helper=     yes
 .elif !empty(MACHINE_PLATFORM:MSunOS-5.11-*)
 PLIST.ivshmem=                 yes
 PLIST.nbd=                     yes
 CONFIGURE_ARGS+=               --disable-coroutine-pool
 .endif
 
-PLIST_VARS+=           ${UE_ARCHS} bridge-helper ivshmem nbd pr-helper virtfs-proxy-helper
+PLIST_VARS+=           ${UE_ARCHS} bridge-helper ivshmem keymap nbd pr-helper
 .for pvar in ${USER_EMUL}
 PLIST.${pvar}=         yes
 .endfor
@@ -157,6 +157,8 @@
 
 # On Darwin, qemu uses Cocoa and CoreAudio
 .if ${OPSYS} != "Darwin"
+PLIST.keymap=  yes
+.include "../../x11/libxkbcommon/buildlink3.mk"
 .include "../../mk/oss.buildlink3.mk"
 .endif
 .include "../../archivers/lzo/buildlink3.mk"
diff -r 06e8cf50d27c -r 0b22143e2a47 emulators/qemu/PLIST
--- a/emulators/qemu/PLIST      Mon Jan 27 10:13:42 2020 +0000
+++ b/emulators/qemu/PLIST      Mon Jan 27 10:59:04 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.63 2019/12/15 18:35:25 adam Exp $
+@comment $NetBSD: PLIST,v 1.63.4.1 2020/01/27 10:59:04 bsiegert Exp $
 bin/elf2dmp
 ${PLIST.ivshmem}bin/ivshmem-client
 ${PLIST.ivshmem}bin/ivshmem-server
@@ -14,6 +14,7 @@
 ${PLIST.i386}bin/qemu-i386
 bin/qemu-img
 bin/qemu-io
+${PLIST.keymap}bin/qemu-keymap
 ${PLIST.m68k}bin/qemu-m68k
 ${PLIST.microblaze}bin/qemu-microblaze
 ${PLIST.microblazeel}bin/qemu-microblazeel
diff -r 06e8cf50d27c -r 0b22143e2a47 emulators/qemu/options.mk
--- a/emulators/qemu/options.mk Mon Jan 27 10:13:42 2020 +0000
+++ b/emulators/qemu/options.mk Mon Jan 27 10:59:04 2020 +0000
@@ -1,17 +1,21 @@
-# $NetBSD: options.mk,v 1.5 2018/08/14 06:57:26 adam Exp $
+# $NetBSD: options.mk,v 1.5.14.1 2020/01/27 10:59:04 bsiegert Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.qemu
 PKG_SUPPORTED_OPTIONS= gtk3 sdl
 
 .include "../../mk/bsd.fast.prefs.mk"
 
+.if ${OPSYS} == "Linux"
+PKG_SUPPORTED_OPTIONS+=        virtfs-proxy-helper
+.endif
+
 .if ${OPSYS} != "Darwin"
 PKG_SUGGESTED_OPTIONS+=        sdl
 .endif
 
 .include "../../mk/bsd.options.mk"
 
-PLIST_VARS+=           gtk
+PLIST_VARS+=           gtk virtfs-proxy-helper
 
 .if !empty(PKG_OPTIONS:Mgtk3)
 PLIST.gtk=             yes
@@ -27,3 +31,12 @@
 .else
 CONFIGURE_ARGS+=       --disable-sdl
 .endif
+
+# NB to successfully build virtfs-proxy-helper, the upstream Linux
+# header/development libraries for libcap and libattr must be installed.
+.if !empty(PKG_OPTIONS:Mvirtfs-proxy-helper)
+PLIST.virtfs-proxy-helper=     yes
+CONFIGURE_ARGS+=               --enable-virtfs
+.else
+CONFIGURE_ARGS+=               --disable-virtfs
+.endif
diff -r 06e8cf50d27c -r 0b22143e2a47 mk/defaults/options.description
--- a/mk/defaults/options.description   Mon Jan 27 10:13:42 2020 +0000
+++ b/mk/defaults/options.description   Mon Jan 27 10:59:04 2020 +0000
@@ -830,6 +830,7 @@
 vice-hwscaling         Enable hardware-assisted screen scaling.
 vidix                  Enable VIDIX (Video Interface for *niX support).
 viewvc-php             Use php to colorize .php and .inc files.
+virtfs-proxy-helper    Enable virtfs-proxy-helper support (Linux only).
 vlc-skins              Enable skins support in VLC.
 vorbis                 Enable Ogg Vorbis support.
 vulkan                 Enable support for the Vulkan 3D and compute API.



Home | Main Index | Thread Index | Old Index