FreeBSD Bugzilla – Attachment 208372 Details for
Bug 241168
sysutils/grub2-bhyve fails to build with error: 'gets' undeclared here on CURRENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
grub2-bhyve patch to comment out warning
0001-grub2-patches-for-CURRENT.patch (text/plain), 1.67 KB, created by
Robert James Hernandez
on 2019-10-17 02:50:31 UTC
(
hide
)
Description:
grub2-bhyve patch to comment out warning
Filename:
MIME Type:
Creator:
Robert James Hernandez
Created:
2019-10-17 02:50:31 UTC
Size:
1.67 KB
patch
obsolete
>From b9a74f4313999ec1d2eebf51d29a7bbdc19c1e63 Mon Sep 17 00:00:00 2001 >From: Robert James Hernandez <rob@sarcasticadmin.com> >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 <bsd.port.mk> > > 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
woodsb02
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 241168
:
208217
| 208372