svn commit: r514655 - head/sysutils/grub2-bhyve/files
Ben Woods
woodsb02 at FreeBSD.org
Thu Oct 17 10:39:02 UTC 2019
Author: woodsb02
Date: Thu Oct 17 10:39:01 2019
New Revision: 514655
URL: https://svnweb.freebsd.org/changeset/ports/514655
Log:
sysutils/grub2-bhyve: fix build on 13-CURRENT
Build error: ./stdio.h:456:1: error: 'gets' undeclared here (not in a
function); did you mean 'getw'?
grub2 doesn't use gets() at all so it's just an error in the glib header
file as a result of gets being excised from FreeBSD. Commenting out the
_GL_WARN_ON_USE macro for that is fine.
PR: 241168
Submitted by: Robert James Hernandez <rob at sarcasticadmin.com>
Approved by: grehan (maintainer)
MFH: 2019Q4
Added:
head/sysutils/grub2-bhyve/files/
head/sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h (contents, props changed)
Added: head/sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h Thu Oct 17 10:39:01 2019 (r514655)
@@ -0,0 +1,11 @@
+--- grub-core/gnulib/stdio.in.h.orig 2019-10-17 10:29:27 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@
More information about the svn-ports-head
mailing list