Accepting request 129047 from home:a_jaeger:FactoryFix
Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/129047 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=37
This commit is contained in:
parent
b3504b4e5d
commit
e7ac447ca1
14
augeas-stdio.h.patch
Normal file
14
augeas-stdio.h.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Index: augeas-0.10.0/gnulib/lib/stdio.in.h
|
||||||
|
===================================================================
|
||||||
|
--- augeas-0.10.0.orig/gnulib/lib/stdio.in.h
|
||||||
|
+++ augeas-0.10.0/gnulib/lib/stdio.in.h
|
||||||
|
@@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not
|
||||||
|
so any use of gets warrants an unconditional warning. Assume it is
|
||||||
|
always declared, since it is required by C89. */
|
||||||
|
#undef gets
|
||||||
|
+#if HAVE_RAW_DECL_GETS
|
||||||
|
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#if @GNULIB_FOPEN@
|
||||||
|
# if @REPLACE_FOPEN@
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 27 06:57:31 UTC 2012 - aj@suse.de
|
||||||
|
|
||||||
|
- Fix build with missing gets declaration (glibc 2.16)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 17 14:54:10 UTC 2012 - jengelh@medozas.de
|
Sat Mar 17 14:54:10 UTC 2012 - jengelh@medozas.de
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: augeas
|
Name: augeas
|
||||||
Version: 0.10.0
|
Version: 0.10.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -27,6 +29,7 @@ Patch0: augeas-modprobe-lense.patch
|
|||||||
# PATCH-FIX-OPENSUSE bnc-729491-recognize-suse-sysconfig-files.patch [bnc#729491]
|
# PATCH-FIX-OPENSUSE bnc-729491-recognize-suse-sysconfig-files.patch [bnc#729491]
|
||||||
Patch1: bnc-729491-recognize-suse-sysconfig-files.patch
|
Patch1: bnc-729491-recognize-suse-sysconfig-files.patch
|
||||||
Patch2: augeas-pkgdeps.diff
|
Patch2: augeas-pkgdeps.diff
|
||||||
|
Patch3: augeas-stdio.h.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
@ -101,6 +104,7 @@ modifying the official lenses, or when creating new ones.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch -P 2 -p1
|
%patch -P 2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="-Wno-error $RPM_OPT_FLAGS"
|
export CFLAGS="-Wno-error $RPM_OPT_FLAGS"
|
||||||
|
Loading…
Reference in New Issue
Block a user