diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xentools411/Makefile | 5 | ||||
-rw-r--r-- | sysutils/xentools411/distinfo | 3 | ||||
-rw-r--r-- | sysutils/xentools411/patches/patch-tools_debugger_gdbsx_xg_xg_main.c | 24 |
3 files changed, 28 insertions, 4 deletions
diff --git a/sysutils/xentools411/Makefile b/sysutils/xentools411/Makefile index e99a734674d..d3824e0ba44 100644 --- a/sysutils/xentools411/Makefile +++ b/sysutils/xentools411/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2020/03/08 16:51:25 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2020/05/03 08:54:28 bouyer Exp $ # VERSION= 4.11.3 VERSION_IPXE= 356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d @@ -7,8 +7,7 @@ DIST_IPXE= ipxe-git-${VERSION_IPXE}.tar.gz DIST_SUBDIR= xen411 DISTNAME= xen-${VERSION} PKGNAME= xentools411-${VERSION} -PKGREVISION= 1 -#PKGREVISION= 0 +PKGREVISION= 2 CATEGORIES= sysutils MASTER_SITES= https://downloads.xenproject.org/release/xen/${VERSION}/ diff --git a/sysutils/xentools411/distinfo b/sysutils/xentools411/distinfo index 3089af1fb66..05f8fbbfe28 100644 --- a/sysutils/xentools411/distinfo +++ b/sysutils/xentools411/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.10 2020/01/18 21:58:44 prlw1 Exp $ +$NetBSD: distinfo,v 1.11 2020/05/03 08:54:28 bouyer Exp $ SHA1 (xen411/ipxe-git-356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d.tar.gz) = 272b8c904dc0127690eca2c5c20c67479e40da34 RMD160 (xen411/ipxe-git-356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d.tar.gz) = cfcb4a314c15da19b36132b27126f3bd9699d0e5 @@ -31,6 +31,7 @@ SHA1 (patch-tools_Rules.mk) = c15994d1e0c089674fdea874b56950a07be3deb5 SHA1 (patch-tools_configure) = aa0838a1eadf70f5ed99748926234c0376989ff5 SHA1 (patch-tools_console_daemon_utils.c) = 1c954e1edadad2607f7b87eaf2d6285be7f968ff SHA1 (patch-tools_debugger_gdbsx_Makefile) = 88960adedd258af3278ef105204ab97c662b8e61 +SHA1 (patch-tools_debugger_gdbsx_xg_xg_main.c) = 059551256e95858d7ade25e7637667862bd92499 SHA1 (patch-tools_examples_Makefile) = fe258fc26e4507ca2fb4363c5e2197ee06e89d64 SHA1 (patch-tools_firmware_etherboot_Makefile) = cc37708336c0a496511926327cfe807ac9f33ce0 SHA1 (patch-tools_firmware_hvmloader_Makefile) = 02cac5e9314c4c71105f15a3c1c303c573d6583a diff --git a/sysutils/xentools411/patches/patch-tools_debugger_gdbsx_xg_xg_main.c b/sysutils/xentools411/patches/patch-tools_debugger_gdbsx_xg_xg_main.c new file mode 100644 index 00000000000..82ed55a2b7e --- /dev/null +++ b/sysutils/xentools411/patches/patch-tools_debugger_gdbsx_xg_xg_main.c @@ -0,0 +1,24 @@ +$NetBSD: patch-tools_debugger_gdbsx_xg_xg_main.c,v 1.1 2020/05/03 08:54:29 bouyer Exp $ + +--- tools/debugger/gdbsx/xg/xg_main.c.orig 2020-04-30 09:57:45.000000000 +0200 ++++ tools/debugger/gdbsx/xg/xg_main.c 2020-04-30 09:58:43.000000000 +0200 +@@ -126,12 +126,19 @@ + int flags, saved_errno; + + XGTRC("E\n"); ++#ifdef __NetBSD__ ++ if ((_dom0_fd=open("/kern/xen/privcmd", O_RDWR)) == -1) { ++ perror("Failed to open /kern/xen/privcmd\n"); ++ return -1; ++ } ++#else + if ((_dom0_fd=open("/dev/xen/privcmd", O_RDWR)) == -1) { + if ((_dom0_fd=open("/proc/xen/privcmd", O_RDWR)) == -1) { + perror("Failed to open /dev/xen/privcmd or /proc/xen/privcmd\n"); + return -1; + } + } ++#endif + /* Although we return the file handle as the 'xc handle' the API + * does not specify / guarentee that this integer is in fact + * a file handle. Thus we must take responsiblity to ensure |