Accepting request 129083 from Base:System

Fix build with missing gets declaration (glibc 2.16) (forwarded request 129067 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/129083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/parted?expand=0&rev=80
This commit is contained in:
Stephan Kulow 2012-07-30 18:38:05 +00:00 committed by Git OBS Bridge
commit 04c10b3400
3 changed files with 25 additions and 0 deletions

18
parted-stdio.h.patch Normal file
View File

@ -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

View File

@ -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

View File

@ -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`"