Accepting request 129067 from home:a_jaeger:FactoryFix
Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/129067 OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=65
This commit is contained in:
parent
d279dd4849
commit
6253503a7b
18
parted-stdio.h.patch
Normal file
18
parted-stdio.h.patch
Normal 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
|
||||||
|
|
||||||
|
|
@ -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
|
Tue Jul 3 13:31:20 UTC 2012 - puzel@suse.com
|
||||||
|
|
||||||
|
@ -45,6 +45,7 @@ Patch16: parted-improve-loop-support.patch
|
|||||||
Patch17: fix-nilfs2-probe-function.patch
|
Patch17: fix-nilfs2-probe-function.patch
|
||||||
Patch18: parted-fix-cciss-partition-naming.patch
|
Patch18: parted-fix-cciss-partition-naming.patch
|
||||||
Patch19: dummy-bootcode-only-for-x86.patch
|
Patch19: dummy-bootcode-only-for-x86.patch
|
||||||
|
Patch20: parted-stdio.h.patch
|
||||||
Requires: /sbin/udevadm
|
Requires: /sbin/udevadm
|
||||||
BuildRequires: check-devel
|
BuildRequires: check-devel
|
||||||
BuildRequires: device-mapper-devel >= 1.02.33
|
BuildRequires: device-mapper-devel >= 1.02.33
|
||||||
@ -112,6 +113,7 @@ to develop applications that require these.
|
|||||||
%patch17 -p1
|
%patch17 -p1
|
||||||
%patch18 -p1
|
%patch18 -p1
|
||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
|
%patch20 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} `ncursesw6-config --cflags`"
|
export CFLAGS="%{optflags} `ncursesw6-config --cflags`"
|
||||||
|
Loading…
Reference in New Issue
Block a user