diff --git a/parted-stdio.h.patch b/parted-stdio.h.patch new file mode 100644 index 0000000..778f9b3 --- /dev/null +++ b/parted-stdio.h.patch @@ -0,0 +1,18 @@ +Index: parted-2.4/lib/stdio.in.h +=================================================================== +--- parted-2.4.orig/lib/stdio.in.h ++++ parted-2.4/lib/stdio.in.h +@@ -731,11 +731,13 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s + _GL_CXXALIAS_SYS (gets, char *, (char *s)); + # undef gets + # endif ++# if HAVE_RAW_DECL_GETS + _GL_CXXALIASWARN (gets); + /* 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. */ + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++# endif + #endif + + diff --git a/parted.changes b/parted.changes index 868b965..4770f83 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 27 09:14:44 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Tue Jul 3 13:31:20 UTC 2012 - puzel@suse.com diff --git a/parted.spec b/parted.spec index 1d5e1b9..b554e0c 100644 --- a/parted.spec +++ b/parted.spec @@ -45,6 +45,7 @@ Patch16: parted-improve-loop-support.patch Patch17: fix-nilfs2-probe-function.patch Patch18: parted-fix-cciss-partition-naming.patch Patch19: dummy-bootcode-only-for-x86.patch +Patch20: parted-stdio.h.patch Requires: /sbin/udevadm BuildRequires: check-devel BuildRequires: device-mapper-devel >= 1.02.33 @@ -112,6 +113,7 @@ to develop applications that require these. %patch17 -p1 %patch18 -p1 %patch19 -p1 +%patch20 -p1 %build export CFLAGS="%{optflags} `ncursesw6-config --cflags`"