From b9a74f4313999ec1d2eebf51d29a7bbdc19c1e63 Mon Sep 17 00:00:00 2001 From: Robert James Hernandez Date: Wed, 16 Oct 2019 18:26:35 +0000 Subject: [PATCH] grub2 patches for CURRENT --- sysutils/grub2-bhyve/Makefile | 4 ++++ .../files/extra-patch-grub-core_gnulib_stdio.in.h | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 sysutils/grub2-bhyve/files/extra-patch-grub-core_gnulib_stdio.in.h diff --git a/sysutils/grub2-bhyve/Makefile b/sysutils/grub2-bhyve/Makefile index ebd725d7f435..9d53088ed252 100644 --- a/sysutils/grub2-bhyve/Makefile +++ b/sysutils/grub2-bhyve/Makefile @@ -40,3 +40,7 @@ do-install: .include RUN_DEPENDS:= ${RUN_DEPENDS:Ngcc*} + +.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1300000 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-grub-core_gnulib_stdio.in.h +.endif diff --git a/sysutils/grub2-bhyve/files/extra-patch-grub-core_gnulib_stdio.in.h b/sysutils/grub2-bhyve/files/extra-patch-grub-core_gnulib_stdio.in.h new file mode 100644 index 000000000000..64ce99b46253 --- /dev/null +++ b/sysutils/grub2-bhyve/files/extra-patch-grub-core_gnulib_stdio.in.h @@ -0,0 +1,11 @@ +--- grub-core/gnulib/stdio.in.h.orig 2019-10-16 17:49:25 UTC ++++ grub-core/gnulib/stdio.in.h +@@ -141,7 +141,7 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX c + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++/* _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); */ + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ -- 2.23.0