~psusi/ubuntu/saucy/grub2/fix-dmraid

« back to all changes in this revision

Viewing changes to debian/patches/gnulib_gets.patch

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-01-03 11:40:44 UTC
  • mfrom: (17.6.31 experimental)
  • Revision ID: package-import@ubuntu.com-20130103114044-et8gar9lol415wc9
Tags: 2.00-10ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme and an appropriate background for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel option.
  - Bypass menu unless other OSes are installed or Shift is pressed.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Reduce visual clutter in normal mode.
  - Remove verbose messages printed before reading configuration.
  - Suppress kernel/initrd progress messages, except in recovery mode.
  - Show the boot menu if the previous boot failed.
  - Adjust upgrade version checks for Ubuntu.
  - Suppress "GRUB loading" message unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Check hardware support before using gfxpayload=keep.
  - Set vt.handoff=7 for smooth handoff to kernel graphical mode.
  - In recovery mode, add nomodeset to the Linux kernel arguments, and
    remove the 'set gfxpayload=keep' command.
  - Skip Windows os-prober entries on Wubi systems, and suppress the menu
    by default if those are the only other-OS entries.
  - Handle probing striped DM-RAID devices.
  - Replace 'single' by 'recovery' when friendly-recovery is installed.
  - Disable cursor as early as possible in grub_main.
  - Apply patch from Fedora to add a "linuxefi" loader.
  - Automatically call linuxefi from linux when necessary.
  - On amd64, add raw-uefi custom upload tarballs for signing.
  - Generate configuration for signed UEFI kernels if available.
  - Install signed images if UEFI Secure Boot is enabled.
  - Output a menu entry for firmware setup on UEFI FastBoot systems.
  - Stop using the /usr/share/images/desktop-base/desktop-grub.png
    alternative as the fallback background.
  - If the postinst is running in a container, skip grub-install and all
    its associated questions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Avoid assuming that gets is declared
 
2
Origin: backport, http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348
 
3
Forwarded: not-needed
 
4
Applied-Upstream: http://bazaar.launchpad.net/~vcs-imports/grub/grub2-bzr/revision/4611
 
5
Last-Update: 2012-12-28
 
6
 
 
7
Index: b/grub-core/gnulib/stdio.in.h
 
8
===================================================================
 
9
--- a/grub-core/gnulib/stdio.in.h
 
10
+++ b/grub-core/gnulib/stdio.in.h
 
11
@@ -138,10 +138,12 @@
 
12
 #endif
 
13
 
 
14
 /* It is very rare that the developer ever has full control of stdin,
 
15
-   so any use of gets warrants an unconditional warning.  Assume it is
 
16
-   always declared, since it is required by C89.  */
 
17
+   so any use of gets warrants an unconditional warning; besides, C11
 
18
+   removed it.  */
 
19
 #undef gets
 
20
+#if HAVE_RAW_DECL_GETS
 
21
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 
22
+#endif
 
23
 
 
24
 #if @GNULIB_FOPEN@
 
25
 # if @REPLACE_FOPEN@
 
26
Index: b/m4/stdio_h.m4
 
27
===================================================================
 
28
--- a/m4/stdio_h.m4
 
29
+++ b/m4/stdio_h.m4
 
30
@@ -35,9 +35,9 @@
 
31
 
 
32
   dnl Check for declarations of anything we want to poison if the
 
33
   dnl corresponding gnulib module is not in use, and which is not
 
34
-  dnl guaranteed by C89.
 
35
+  dnl guaranteed by both C89 and C11.
 
36
   gl_WARN_ON_USE_PREPARE([[#include <stdio.h>
 
37
-    ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat
 
38
+    ]], [dprintf fpurge fseeko ftello getdelim getline gets popen renameat
 
39
     snprintf tmpfile vdprintf vsnprintf])
 
40
 ])
 
41