Date: Thu, 17 Oct 2019 10:39:01 +0000 (UTC) From: Ben Woods <woodsb02@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514655 - head/sysutils/grub2-bhyve/files Message-ID: <201910171039.x9HAd1mE079711@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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@
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910171039.x9HAd1mE079711>