~akopytov/percona-xtrabackup/bug1166888-2.0

« back to all changes in this revision

Viewing changes to src/libarchive/contrib/libarchive.1aix53.spec

  • Committer: Alexey Kopytov
  • Date: 2012-02-10 20:05:56 UTC
  • mto: This revision was merged to the branch mainline in revision 390.
  • Revision ID: akopytov@gmail.com-20120210200556-6kx41z8wwrqfucro
Rebase of the parallel compression patch on new trunk + post-review
fixes.

Implementation of parallel compression and streaming for XtraBackup.

This revision implements the following changes:

* InnoDB files are now streamed by the xtrabackup binary rather than
innobackupex. As a result, integrity is now verified by xtrabackup and
thus tar4ibd is no longer needed, so it was removed.

* xtrabackup binary now accepts the new '--stream' option which has
exactly the same semantics as the '--stream' option in
innobackupex: it tells xtrabackup to stream all files to the standard
output in the specified format rather than storing them locally.

* The xtrabackup binary can now do parallel compression using the
quicklz library. Two new options were added to xtrabackup to support
this feature:

- '--compress' tells xtrabackup to compress all output data, including
the transaction log file and meta data files, using the specified
compression algorithm. The only currently supported algorithm is
'quicklz'. The resulting files have the qpress archive format,
i.e. every *.qp file produced by xtrabackup is essentially a one-file
qpress archive and can be extracted and uncompressed by the qpress
file archiver (http://www.quicklz.com/).

- '--compress-threads' specifies the number of worker threads used by
xtrabackup for parallel data compression. This option defaults to 1.

Parallel compression ('--compress-threads') can be used together with
parallel file copying ('--parallel'). For example, '--parallel=4
--compress --compress-threads=2' will create 4 IO threads that will
read the data and pipe it to 2 compression threads.

* To support simultaneous compression and streaming, a new custom
streaming format called 'xbstream' was introduced to XtraBackup in
addition to the 'tar' format. That was required to overcome some
limitations of traditional archive formats such as 'tar', 'cpio' and
others that do not allow streaming dynamically generated files, for
example dynamically compressed files.  Other advantages of xbstream over
traditional streaming/archive formats include ability to stream multiple
files concurrently (so it is possible to use streaming in the xbstream
format together with the --parallel option) and more compact data
storage.

* To allow streaming and extracting files to/from the xbstream format
produced by xtrabackup, a new utility aptly called 'xbstream' was
added to the XtraBackup distribution. This utility has a tar-like
interface:

- with the '-x' option it extracts files from the stream read from its
standard input to the current directory unless specified otherwise
with the '-C' option.

- with the '-c' option it streams files specified on the command line
to its standard output.

The utility also tries to minimize its impact on the OS page cache by
using the appropriate posix_fadvise() calls when available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $LastChangedRevision: 8 $, $LastChangedDate: 2008-05-01 00:11:33 +0200 (Thu, 01 May 2008) $
 
2
Summary:        Library to create and read several different archive formats
 
3
Summary(pl):    Biblioteka do tworzenia i odczytu r�nych format�w archiw�w
 
4
Name:           libarchive
 
5
Version:        2.0a3
 
6
Release:        1aix53
 
7
License:        BSD
 
8
Group:          Libraries
 
9
Source0: http://people.freebsd.org/~kientzle/libarchive/src/%{name}-%{version}.tar.gz
 
10
Patch:          %{name}-0123457890.patch
 
11
URL:            http://people.freebsd.org/~kientzle/libarchive/
 
12
Requires:       glibc
 
13
Requires:       zlib
 
14
Requires:       bzip2
 
15
BuildRequires:  gcc
 
16
BuildRequires:  gcc-c++
 
17
BuildRequires:  gawk
 
18
BuildRequires:  zlib-devel
 
19
BuildRequires:  bzip2
 
20
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
21
 
 
22
%description
 
23
Libarchive is a programming library that can create and read several
 
24
different streaming archive formats, including most popular TAR
 
25
variants and several CPIO formats. It can also write SHAR archives.
 
26
 
 
27
%description -l pl
 
28
Libarchive jest bibliotek� s�u�ac� to tworzenia i odczytu wielu
 
29
r�nych strumieniowych format�w archiw�w, w��czaj�c w to popularne
 
30
odmiany TAR oraz wiele format�w CPIO. Biblioteka ta potrafi tak�e
 
31
zapisywa� archiwa SHAR.
 
32
 
 
33
%package devel
 
34
Summary:        Header files for libarchive library
 
35
Summary(pl):    Pliki nag��wkowe biblioteki libarchive
 
36
Group:          Development/Libraries
 
37
Requires:       %{name} = %{version}-%{release}
 
38
 
 
39
%description devel
 
40
Header files for libarchive library.
 
41
 
 
42
%description devel -l pl
 
43
Pliki nag��wkowe biblioteki libarchive.
 
44
 
 
45
%package static
 
46
Summary:        Static libarchive library
 
47
Summary(pl):    Statyczna biblioteka libarchive
 
48
Group:          Development/Libraries
 
49
Requires:       %{name}-devel = %{version}-%{release}
 
50
 
 
51
%description static
 
52
Static libarchive library.
 
53
 
 
54
%description static -l pl
 
55
Statyczna biblioteka libarchive.
 
56
 
 
57
%package -n bsdtar
 
58
Summary:        bsdtar - tar(1) implementation based on libarchive
 
59
Summary(pl):    bsdtar - implementacja programu tar(1) oparta na libarchive
 
60
Group:          Applications/Archiving
 
61
Requires:       %{name} = %{version}-%{release}
 
62
 
 
63
%description -n bsdtar
 
64
bsdtar - tar(1) implementation based on libarchive.
 
65
 
 
66
%description -n bsdtar -l pl
 
67
bsdtar - implementacja programu tar(1), oparta na libarchive.
 
68
 
 
69
%prep
 
70
%setup -q
 
71
%patch0 -p1
 
72
 
 
73
%build
 
74
# Specify paths to avoid use of vacpp
 
75
# -maix64 - required to use large files with aix-5.3
 
76
# -static - required for interoperability without copying libraries
 
77
# -D_BSD - required to include definition of makedev
 
78
# -X64 - required to assemble 64-bit COFF files
 
79
mkdir -p %{buildroot}
 
80
PATH=/opt/freeware/libexec:/opt/freeware/bin:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:. \
 
81
CPATH=/opt/freeware/include:/usr/local/include \
 
82
LIBPATH=/opt/freeware/lib:/usr/local/lib:/usr/share/lib \
 
83
LD_LIBRARY_PATH=/opt/freeware/lib:/usr/local/lib:/usr/share/lib \
 
84
CFLAGS="$RPM_OPT_FLAGS -maix64 -static -D_BSD" \
 
85
CXXFLAGS="$RPM_OPT_FLAGS -maix64 -static -D_BSD" \
 
86
AR="ar -X64" \
 
87
./configure \
 
88
--prefix=%{_prefix} \
 
89
--libexecdir=%{_libexecdir} \
 
90
--mandir=%{_mandir} \
 
91
--infodir=%{_infodir} \
 
92
--enable-shared=yes \
 
93
--enable-static=yes \
 
94
| tee %{buildroot}/config.log
 
95
make | tee %{buildroot}/make.log
 
96
 
 
97
%install
 
98
[ "%buildroot" != "/" ] && [ -d %buildroot ] && rm -rf %buildroot;
 
99
make DESTDIR=%buildroot install
 
100
# original install builds, but does install bsdtar
 
101
cp .libs/%{name}.a %{buildroot}%{_libdir}
 
102
cp bsdtar %{buildroot}%{_bindir}
 
103
cp tar/bsdtar.1 %{buildroot}%{_mandir}/man1
 
104
 
 
105
%clean
 
106
rm -fr %buildroot
 
107
 
 
108
%files
 
109
%defattr(644,root,root,755)
 
110
%{_libdir}/libarchive.a
 
111
 
 
112
%files devel
 
113
%defattr(644,root,root,755)
 
114
%{_libdir}/libarchive.la
 
115
%{_includedir}/*.h
 
116
%doc %{_mandir}/man3/*
 
117
%doc %{_mandir}/man5/*
 
118
 
 
119
%files -n bsdtar
 
120
%defattr(644,root,root,755)
 
121
%attr(755,root,root) %{_bindir}/bsdtar
 
122
%doc %{_mandir}/man1/bsdtar.1*
 
123
 
 
124
%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 
125
%changelog
 
126
* %{date} PLD Team <feedback@pld-linux.org>
 
127
All persons listed below can be reached at <cvs_login>@pld-linux.org
 
128
 
 
129
$Log: libarchive.spec,v $
 
130
Release 1aix53  2006/12/12 rm1023@dcx.com
 
131
- tweak for aix-5.3
 
132
- added libarchive-0123457890.patch for "0123457890" error
 
133
- replaced libarchive-1.3.1.tar.gz with libarchive-2.0a3.tar.gz
 
134
- removed obsolete -CVE-2006-5680.patch and -man_progname.patch
 
135
 
 
136
Revision 1.6  2006/11/15 10:41:28  qboosh
 
137
- BR: acl-devel,attr-devel
 
138
- devel deps
 
139
 
 
140
Revision 1.5  2006/11/08 22:22:25  twittner
 
141
- up to 1.3.1
 
142
- added BR: e2fsprogs-devel
 
143
- added -CVE-2006-5680.patch agains entering in infinite
 
144
loop in corrupt archives
 
145
- added bsdtar package (bsdtar is included now in libarchive
 
146
sources)
 
147
- rel. 0.1 for testing
 
148
 
 
149
Revision 1.4  2005/12/15 18:26:36  twittner
 
150
- up to 1.2.37
 
151
- removed -shared.patch (no longer needed)
 
152
 
 
153
Revision 1.3  2005/10/05 17:00:12  arekm
 
154
- up to 1.02.034
 
155
 
 
156
Revision 1.2  2005/07/27 20:17:21  qboosh
 
157
- typo
 
158
 
 
159
Revision 1.1  2005/07/27 08:36:03  adamg
 
160
- new