Index: head/sysutils/grub2-bhyve/Makefile =================================================================== --- head/sysutils/grub2-bhyve/Makefile (revision 525915) +++ head/sysutils/grub2-bhyve/Makefile (revision 525916) @@ -1,42 +1,42 @@ # Created by: kmoore@FreeBSD.org # $FreeBSD$ PORTNAME= grub2-bhyve DISTVERSIONPREFIX= v DISTVERSION= 0.40 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= sysutils MAINTAINER= ports@FreeBSD.org COMMENT= Grub-emu loader for bhyve LICENSE= GPLv3 BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \ help2man:misc/help2man ONLY_FOR_ARCHS= amd64 SSP_UNSAFE= yes USE_GITHUB= yes GH_ACCOUNT= grehan-freebsd USES= bison gmake USE_GCC= yes PLIST_FILES= sbin/grub-bhyve MAKE_JOBS_UNSAFE= yes CONFIGURE_ARGS= --with-platform=emu CC=${CC} LEX=${LOCALBASE}/bin/flex \ --enable-grub-mount=no --enable-grub-mkfont=no \ --enable-grub-emu-sdl=no --disable-nls --disable-werror post-patch: @${REINPLACE_CMD} -e "s/libintl\.h/I_do_not_want_libintl.h/g" ${WRKSRC}/configure @${REINPLACE_CMD} -e "s/-lintl//g" ${WRKSRC}/grub-core/Makefile.in do-configure: @ cd ${WRKSRC}/ && ./configure ${CONFIGURE_ARGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/grub-core/grub-emu ${STAGEDIR}${LOCALBASE}/sbin/grub-bhyve .include RUN_DEPENDS:= ${RUN_DEPENDS:Ngcc*} Index: head/sysutils/grub2-bhyve/files/patch-grub-core_commands_iorw.c =================================================================== --- head/sysutils/grub2-bhyve/files/patch-grub-core_commands_iorw.c (nonexistent) +++ head/sysutils/grub2-bhyve/files/patch-grub-core_commands_iorw.c (revision 525916) @@ -0,0 +1,39 @@ +--- grub-core/commands/iorw.c.orig 2015-08-31 22:42:56 UTC ++++ grub-core/commands/iorw.c +@@ -45,6 +45,9 @@ grub_cmd_read (grub_extcmd_context_t ctxt, int argc, c + + if (argc != 1) + return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("one argument expected")); ++#if 1 /* BHYVE */ ++ grub_puts_("Reading host IO ports disabled."); ++#else + + addr = grub_strtoul (argv[0], 0, 0); + switch (ctxt->extcmd->cmd->name[sizeof ("in") - 1]) +@@ -70,6 +73,7 @@ grub_cmd_read (grub_extcmd_context_t ctxt, int argc, c + } + else + grub_printf ("0x%x\n", value); ++#endif + + return 0; + } +@@ -84,6 +88,10 @@ grub_cmd_write (grub_command_t cmd, int argc, char **a + if (argc != 2 && argc != 3) + return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("two arguments expected")); + ++#if 1 /* BHYVE */ ++ grub_puts_("Writing host IO ports disabled."); ++#else ++ + addr = grub_strtoul (argv[0], 0, 0); + value = grub_strtoul (argv[1], 0, 0); + if (argc == 3) +@@ -112,6 +120,7 @@ grub_cmd_write (grub_command_t cmd, int argc, char **a + grub_outb (value, addr); + break; + } ++#endif + + return 0; + } Property changes on: head/sysutils/grub2-bhyve/files/patch-grub-core_commands_iorw.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/grub2-bhyve/files/patch-grub-core_commands_memrw.c =================================================================== --- head/sysutils/grub2-bhyve/files/patch-grub-core_commands_memrw.c (nonexistent) +++ head/sysutils/grub2-bhyve/files/patch-grub-core_commands_memrw.c (revision 525916) @@ -0,0 +1,38 @@ +--- grub-core/commands/memrw.c.orig 2015-08-31 22:42:56 UTC ++++ grub-core/commands/memrw.c +@@ -46,6 +46,9 @@ grub_cmd_read (grub_extcmd_context_t ctxt, int argc, c + if (argc != 1) + return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("one argument expected")); + ++#if 1 /* BHYVE */ ++ grub_puts_("Reading host memory disabled."); ++#else + addr = grub_strtoul (argv[0], 0, 0); + switch (ctxt->extcmd->cmd->name[sizeof ("read_") - 1]) + { +@@ -69,6 +72,7 @@ grub_cmd_read (grub_extcmd_context_t ctxt, int argc, c + } + else + grub_printf ("0x%x\n", value); ++#endif + + return 0; + } +@@ -83,6 +87,9 @@ grub_cmd_write (grub_command_t cmd, int argc, char **a + if (argc != 2 && argc != 3) + return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("two arguments expected")); + ++#if 1 /* BHYVE */ ++ grub_puts_("Writing host memory disabled."); ++#else + addr = grub_strtoul (argv[0], 0, 0); + value = grub_strtoul (argv[1], 0, 0); + if (argc == 3) +@@ -114,6 +121,7 @@ grub_cmd_write (grub_command_t cmd, int argc, char **a + *((volatile grub_uint8_t *) addr) = value; + break; + } ++#endif + + return 0; + } Property changes on: head/sysutils/grub2-bhyve/files/patch-grub-core_commands_memrw.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +files/patch-grub-core_commands_iorw.c \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/grub2-bhyve/files/patch-grub-core_font_font__cmd.c =================================================================== --- head/sysutils/grub2-bhyve/files/patch-grub-core_font_font__cmd.c (nonexistent) +++ head/sysutils/grub2-bhyve/files/patch-grub-core_font_font__cmd.c (revision 525916) @@ -0,0 +1,20 @@ +--- grub-core/font/font_cmd.c.orig 2020-02-03 00:11:34 UTC ++++ grub-core/font/font_cmd.c +@@ -28,6 +28,9 @@ loadfont_command (grub_command_t cmd __attribute__ ((u + int argc, + char **args) + { ++#if 1 /* BHYVE */ ++ grub_puts_("Font loading disabled."); ++#else + if (argc == 0) + return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected")); + +@@ -38,6 +41,7 @@ loadfont_command (grub_command_t cmd __attribute__ ((u + return grub_error (GRUB_ERR_BAD_FONT, "invalid font"); + return grub_errno; + } ++#endif + + return GRUB_ERR_NONE; + } Property changes on: head/sysutils/grub2-bhyve/files/patch-grub-core_font_font__cmd.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +files/patch-grub-core_commands_iorw.c \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property