This commit is contained in:
parent
1f222bed0b
commit
6438b7cb8b
98
cpio-2.9-gnulib.patch
Normal file
98
cpio-2.9-gnulib.patch
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
--- m4/extensions.m4
|
||||||
|
+++ m4/extensions.m4
|
||||||
|
@@ -1,14 +1,14 @@
|
||||||
|
-# serial 4 -*- Autoconf -*-
|
||||||
|
+# serial 5 -*- Autoconf -*-
|
||||||
|
# Enable extensions on systems that normally disable them.
|
||||||
|
|
||||||
|
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
|
||||||
|
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
|
||||||
|
# This file is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS
|
||||||
|
# Autoconf. Perhaps we can remove this once we can assume Autoconf
|
||||||
|
-# 2.61 or later everywhere, but since CVS Autoconf mutates rapidly
|
||||||
|
+# 2.62 or later everywhere, but since CVS Autoconf mutates rapidly
|
||||||
|
# enough in this area it's likely we'll need to redefine
|
||||||
|
# AC_USE_SYSTEM_EXTENSIONS for quite some time.
|
||||||
|
|
||||||
|
@@ -16,39 +16,63 @@
|
||||||
|
# ------------------------
|
||||||
|
# Enable extensions on systems that normally disable them,
|
||||||
|
# typically due to standards-conformance issues.
|
||||||
|
+# Remember that #undef in AH_VERBATIM gets replaced with #define by
|
||||||
|
+# AC_DEFINE. The goal here is to define all known feature-enabling
|
||||||
|
+# macros, then, if reports of conflicts are made, disable macros that
|
||||||
|
+# cause problems on some platforms (such as __EXTENSIONS__).
|
||||||
|
AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
|
||||||
|
-[
|
||||||
|
- AC_BEFORE([$0], [AC_COMPILE_IFELSE])
|
||||||
|
- AC_BEFORE([$0], [AC_RUN_IFELSE])
|
||||||
|
-
|
||||||
|
- AC_REQUIRE([AC_GNU_SOURCE])
|
||||||
|
- AC_REQUIRE([AC_AIX])
|
||||||
|
- AC_REQUIRE([AC_MINIX])
|
||||||
|
+[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
|
||||||
|
+AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
|
||||||
|
+
|
||||||
|
+ AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=])
|
||||||
|
+ if test "$MINIX" = yes; then
|
||||||
|
+ AC_DEFINE([_POSIX_SOURCE], [1],
|
||||||
|
+ [Define to 1 if you need to in order for `stat' and other
|
||||||
|
+ things to work.])
|
||||||
|
+ AC_DEFINE([_POSIX_1_SOURCE], [2],
|
||||||
|
+ [Define to 2 if the system does not provide POSIX.1 features
|
||||||
|
+ except with this defined.])
|
||||||
|
+ AC_DEFINE([_MINIX], [1],
|
||||||
|
+ [Define to 1 if on MINIX.])
|
||||||
|
+ fi
|
||||||
|
|
||||||
|
AH_VERBATIM([__EXTENSIONS__],
|
||||||
|
-[/* Enable extensions on Solaris. */
|
||||||
|
-#ifndef __EXTENSIONS__
|
||||||
|
-# undef __EXTENSIONS__
|
||||||
|
+[/* Enable extensions on AIX 3, Interix. */
|
||||||
|
+#ifndef _ALL_SOURCE
|
||||||
|
+# undef _ALL_SOURCE
|
||||||
|
#endif
|
||||||
|
+/* Enable GNU extensions on systems that have them. */
|
||||||
|
+#ifndef _GNU_SOURCE
|
||||||
|
+# undef _GNU_SOURCE
|
||||||
|
+#endif
|
||||||
|
+/* Enable threading extensions on Solaris. */
|
||||||
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
# undef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
#endif
|
||||||
|
+/* Enable extensions on HP NonStop. */
|
||||||
|
#ifndef _TANDEM_SOURCE
|
||||||
|
# undef _TANDEM_SOURCE
|
||||||
|
-#endif])
|
||||||
|
+#endif
|
||||||
|
+/* Enable general extensions on Solaris. */
|
||||||
|
+#ifndef __EXTENSIONS__
|
||||||
|
+# undef __EXTENSIONS__
|
||||||
|
+#endif
|
||||||
|
+])
|
||||||
|
AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
|
||||||
|
[ac_cv_safe_to_define___extensions__],
|
||||||
|
[AC_COMPILE_IFELSE(
|
||||||
|
- [AC_LANG_PROGRAM([
|
||||||
|
+ [AC_LANG_PROGRAM([[
|
||||||
|
# define __EXTENSIONS__ 1
|
||||||
|
- AC_INCLUDES_DEFAULT])],
|
||||||
|
+ ]AC_INCLUDES_DEFAULT])],
|
||||||
|
[ac_cv_safe_to_define___extensions__=yes],
|
||||||
|
[ac_cv_safe_to_define___extensions__=no])])
|
||||||
|
test $ac_cv_safe_to_define___extensions__ = yes &&
|
||||||
|
AC_DEFINE([__EXTENSIONS__])
|
||||||
|
+ AC_DEFINE([_ALL_SOURCE])
|
||||||
|
+ AC_DEFINE([_GNU_SOURCE])
|
||||||
|
AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
|
||||||
|
AC_DEFINE([_TANDEM_SOURCE])
|
||||||
|
-])
|
||||||
|
+])# AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
|
||||||
|
# gl_USE_SYSTEM_EXTENSIONS
|
||||||
|
# ------------------------
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 27 16:28:34 CEST 2008 - schwab@suse.de
|
||||||
|
|
||||||
|
- Fix gnulib macro.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 11 12:55:08 CEST 2008 - lmichnovic@suse.cz
|
Fri Apr 11 12:55:08 CEST 2008 - lmichnovic@suse.cz
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: cpio
|
Name: cpio
|
||||||
@ -17,7 +16,7 @@ License: GPL v3 only
|
|||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 2.9
|
Version: 2.9
|
||||||
Release: 51
|
Release: 63
|
||||||
Summary: A Backup and Archiving Utility
|
Summary: A Backup and Archiving Utility
|
||||||
Source: cpio-2.9.tar.bz2
|
Source: cpio-2.9.tar.bz2
|
||||||
Patch1: cpio-2.9-no_rmt.patch
|
Patch1: cpio-2.9-no_rmt.patch
|
||||||
@ -36,6 +35,7 @@ Patch13: cpio-2.9-m4_macro.patch
|
|||||||
#patch dir_perm reverts some things which were added by patch #7 chmodRaceC
|
#patch dir_perm reverts some things which were added by patch #7 chmodRaceC
|
||||||
Patch14: cpio-2.9-dir_perm.patch
|
Patch14: cpio-2.9-dir_perm.patch
|
||||||
Patch15: cpio-2.9-eof_tape_handling.patch
|
Patch15: cpio-2.9-eof_tape_handling.patch
|
||||||
|
Patch16: cpio-2.9-gnulib.patch
|
||||||
PreReq: %install_info_prereq
|
PreReq: %install_info_prereq
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: %{name}-lang = %{version}
|
Requires: %{name}-lang = %{version}
|
||||||
@ -77,13 +77,13 @@ Authors:
|
|||||||
%patch13
|
%patch13
|
||||||
%patch14 -p1
|
%patch14 -p1
|
||||||
%patch15
|
%patch15
|
||||||
|
%patch16
|
||||||
chmod 755 .
|
chmod 755 .
|
||||||
chmod u+w *
|
chmod u+w *
|
||||||
chmod a+r *
|
chmod a+r *
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gettextize -f
|
gettextize -f
|
||||||
aclocal -I m4
|
|
||||||
autoreconf --force --install
|
autoreconf --force --install
|
||||||
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
|
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
|
||||||
./configure DEFAULT_RMT_DIR=/sbin \
|
./configure DEFAULT_RMT_DIR=/sbin \
|
||||||
@ -119,6 +119,8 @@ ln -sf ../../bin/cpio $RPM_BUILD_ROOT/usr/bin/cpio
|
|||||||
%files lang -f %{name}.lang
|
%files lang -f %{name}.lang
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 27 2008 schwab@suse.de
|
||||||
|
- Fix gnulib macro.
|
||||||
* Fri Apr 11 2008 lmichnovic@suse.cz
|
* Fri Apr 11 2008 lmichnovic@suse.cz
|
||||||
- adjusted eof-handling.patch to check for 'end-of-file' and
|
- adjusted eof-handling.patch to check for 'end-of-file' and
|
||||||
'end-of-data' marker when detecting reel change. [bnc#371077]
|
'end-of-data' marker when detecting reel change. [bnc#371077]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user