Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c6df36398c7b268c7efd408c526264d5e14e3ff9

commit c6df36398c7b268c7efd408c526264d5e14e3ff9
Author: James Buren <[email protected]>
Date:   Thu Jan 31 18:00:04 2013 -0600

grub2-2.00-8-x86_64
* remove gets references as glibc no longer provides the API

diff --git a/source/base/grub2/FrugalBuild b/source/base/grub2/FrugalBuild
index dd0608c..b1fa3f9 100644
--- a/source/base/grub2/FrugalBuild
+++ b/source/base/grub2/FrugalBuild
@@ -22,8 +22,8 @@ groups=('base')
archs=('i686' 'x86_64')
up2date="Flasttar ftp://ftp.gnu.org/gnu/grub/";
source=(ftp://ftp.gnu.org/gnu/grub/$_F_archive_name-$pkgver$pkgextraver.tar.xz \
-       grub grub2-frugalware-config.patch README.Frugalware)
-signatures=("${source[0]}.sig" '' '' '')
+       grub grub2-frugalware-config.patch README.Frugalware gets.patch)
+signatures=("${source[0]}.sig" '' '' '' '')

subpkgs=('grub2-mkfont')
subdescs=('grub2 mkfont utility')
@@ -33,7 +33,7 @@ subdepends=('freetype2')

_build_grub_platform()
{
-       Fmake --with-platform=$1
+       Fmake --with-platform=$1 --disable-werror
Fmakeinstall
Fexec make distclean || Fdie
}
diff --git a/source/base/grub2/gets.patch b/source/base/grub2/gets.patch
new file mode 100644
index 0000000..521d2ec
--- /dev/null
+++ b/source/base/grub2/gets.patch
@@ -0,0 +1,16 @@
+diff -ur a/grub-core/gnulib/stdio.in.h b/grub-core/gnulib/stdio.in.h
+--- a/grub-core/gnulib/stdio.in.h      2010-12-01 08:45:43.000000000 -0600
++++ b/grub-core/gnulib/stdio.in.h      2013-01-31 17:51:00.436163817 -0600
+@@ -137,12 +137,6 @@
+                  "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* It is very rare that the developer ever has full control of stdin,
+-   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");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to