Accepting request 128110 from Base:System
Fix build failure with glibc 2.16 (forwarded request 128098 from a_jaeger) OBS-URL: https://build.opensuse.org/request/show/128110 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tar?expand=0&rev=41
This commit is contained in:
commit
64f122c251
13
tar-1.26-stdio.in.patch
Normal file
13
tar-1.26-stdio.in.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -urNp tar-1.26-orig/gnu/stdio.in.h tar-1.26/gnu/stdio.in.h
|
||||||
|
--- tar-1.26-orig/gnu/stdio.in.h
|
||||||
|
+++ tar-1.26/gnu/stdio.in.h
|
||||||
|
@@ -139,7 +139,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@
|
10
tar.changes
10
tar.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 17 08:05:33 UTC 2012 - aj@suse.de
|
||||||
|
|
||||||
|
- Fix build failure with undefined gets (glibc 2.16).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 30 13:08:28 UTC 2012 - sweet_f_a@gmx.de
|
||||||
|
|
||||||
|
- avoid automake dependency
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 20 19:55:01 UTC 2012 - crrodriguez@opensuse.org
|
Fri Apr 20 19:55:01 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
6
tar.spec
6
tar.spec
@ -31,8 +31,8 @@ Source0: %{name}-%{version}.tar.bz2
|
|||||||
Patch3: tar-wildcards.patch
|
Patch3: tar-wildcards.patch
|
||||||
Patch6: tar-backup-spec-fix-paths.patch
|
Patch6: tar-backup-spec-fix-paths.patch
|
||||||
Patch7: tar-1.26-remove_O_NONBLOCK.patch
|
Patch7: tar-1.26-remove_O_NONBLOCK.patch
|
||||||
|
Patch8: tar-1.26-stdio.in.patch
|
||||||
%if 0%{?suse_version} >= %min_suse_ver
|
%if 0%{?suse_version} >= %min_suse_ver
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: help2man
|
BuildRequires: help2man
|
||||||
Recommends: tar-lang = %{version}
|
Recommends: tar-lang = %{version}
|
||||||
Recommends: xz
|
Recommends: xz
|
||||||
@ -65,15 +65,15 @@ Shell scripts for system backup/restore
|
|||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
|
%patch8 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
|
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
|
||||||
export CFLAGS="%{optflags} %my_cflags"
|
export CFLAGS="%{optflags} %my_cflags"
|
||||||
export RSH="/usr/bin/rsh"
|
export RSH="/usr/bin/rsh"
|
||||||
export DEFAULT_ARCHIVE_FORMAT="POSIX"
|
export DEFAULT_ARCHIVE_FORMAT="POSIX"
|
||||||
sed -i -e 's@need runtime check@yes@g' m4/*.m4
|
|
||||||
autoreconf -fiv
|
|
||||||
%configure \
|
%configure \
|
||||||
|
gl_cv_func_linkat_follow="yes" \
|
||||||
--enable-backup-scripts \
|
--enable-backup-scripts \
|
||||||
--disable-silent-rules
|
--disable-silent-rules
|
||||||
make %{?_smp_mflags};
|
make %{?_smp_mflags};
|
||||||
|
Loading…
Reference in New Issue
Block a user