debian/0000755000000000000000000000000012253051237007166 5ustar debian/copyright0000644000000000000000000001310312150214725011116 0ustar This package was originally debianized by John Goerzen on Mon, 10 Oct 2005 19:24:56 -0500. The debian package maintenance was handed over to Andreas Henrikson in February 2010. It was downloaded from http://code.google.com/p/libarchive/ old versions from http://people.freebsd.org/~kientzle/libarchive/ Copyright Holders: Copyright (c) 2003-2011 Tim Kientzle Copyright (c) 2008-2011 Michihiro NAKAJIMA Copyright (c) 2011 libarchive Project Copyright (c) 2011 Andres Mejia Copyright (c) 2007-2010 Joerg Sonnenberger Copyright (c) 2009 Andreas Henriksson Copyright (c) 2008 Anselm Strauss Copyright (c) 2008 Miklos Vajna Copyright (c) 2008 Jaakko Heinonen Copyright (c) 2003-2007 Kees Zeelenberg Copyright (c) 2007 Kai Wang Copyright (c) 2006 Rudolf Marek SYSGO s.r.o. Copyright (c) 2002 Thomas Moestl Portions Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies) Portions Copyright (c) 2001 The NetBSD Foundation, Inc Portions Copyright (c) 1996-2008 PostgreSQL Global Development Group Portions Copyright (c) 1985, 1986, 1992, 1993 The Regents of the University of California License: * Copyright (c) 2003-2011 Tim Kientzle * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Portions with copyright to The Regents of the University of California have the following license. * Copyright (c) 1985, 1986, 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Diomidis Spinellis and James A. Woods, derived from original * work by Spencer Thomas and Joseph Orost. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. Portions with copyright to PostgreSQL Global Development Group have the following license. * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without a written agreement * is hereby granted, provided that the above copyright notice and this * paragraph and the following two paragraphs appear in all copies. * * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS * DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. The PPMdH codec code is in the Public Domain. The code has the following disclaimer. * 2010-03-12 : Igor Pavlov : Public domain * This code is based on PPMd var.H (2001): Dmitry Shkarin : Public domain debian/bsdtar.install0000644000000000000000000000001712150214725012032 0ustar usr/bin/bsdtar debian/bsdtar.manpages0000644000000000000000000000004712150214725012162 0ustar debian/tmp/usr/share/man/man1/bsdtar.1 debian/changelog0000644000000000000000000004222112253050735011043 0ustar libarchive (3.1.2-7ubuntu2) trusty; urgency=medium * Build using dh-autoreconf. -- Matthias Klose Sat, 14 Dec 2013 13:40:40 +0100 libarchive (3.1.2-7ubuntu1) trusty; urgency=low * debian/tests/minitar: - Fix minitar dep8 test to check for application/gzip rather than application/x-gzip -- Michael Terry Wed, 11 Dec 2013 11:36:08 -0500 libarchive (3.1.2-7) unstable; urgency=low * Upload to unstable. -- Andres Mejia Sat, 25 May 2013 16:07:06 -0400 libarchive (3.1.2-6) experimental; urgency=low [ Andreas Henriksson ] * Merge debian-wheezy branch containing package revision 3.0.4-3. [ Andres Mejia ] * Remove gbp config overrides. * Remove lrzip build dependency as test cases fail on certain architectures. -- Andres Mejia Tue, 07 May 2013 21:44:50 -0400 libarchive (3.1.2-5) experimental; urgency=low * Update patch to fix LZO test cases to use changes from upstream. * Update homepage field for new homepage URL. * Add upstream changes to fix building libarchive with lrzip support. -- Andres Mejia Sun, 24 Feb 2013 16:44:32 -0500 libarchive (3.1.2-4) experimental; urgency=low * Add mtree filename length fix from upstream. * Add fix for LZO test cases. * Renable LZO support. * Bump Standards-Version to 3.9.4. -- Andres Mejia Sat, 23 Feb 2013 23:44:26 -0500 libarchive (3.1.2-3) experimental; urgency=low * Update gbp.conf to point to branches used for libarchive packaging in experimental. * Disable LZO support, it is broken on some architectures. -- Andres Mejia Sun, 10 Feb 2013 12:43:35 -0500 libarchive (3.1.2-2) experimental; urgency=low * Update patches to use changes applied upstream. -- Andres Mejia Sat, 09 Feb 2013 15:13:20 -0500 libarchive (3.1.2-1) experimental; urgency=low * New upstream release. * Enable LZO support. -- Andres Mejia Sat, 09 Feb 2013 13:37:34 -0500 libarchive (3.1.1-1) experimental; urgency=low * New upstream release. -- Andres Mejia Wed, 16 Jan 2013 17:06:36 -0500 libarchive (3.1.0-1) experimental; urgency=low [ Benjamin Drung ] * Add autopkgtest (LP: #1073390). [ Martin Pitt ] * Add examples-offset-type.patch: Fix offset data type in examples. [ Andres Mejia ] * New upstream release. -- Andres Mejia Sun, 13 Jan 2013 22:00:14 -0500 libarchive (3.0.4-3) unstable; urgency=low * Add patch that fixes CVE-2013-0211. (Closes: #703957) -- Andreas Henriksson Wed, 27 Mar 2013 16:20:36 +0100 libarchive (3.0.4-2) unstable; urgency=low * Add debian/patches/gcc-4.7-fixes-from-upstream.patch (Closes: #674368, #672690) -- Andreas Henriksson Thu, 24 May 2012 14:49:41 +0200 libarchive (3.0.4-1) unstable; urgency=low * New upstream release. * Patches removed, applied upstream. -- Andres Mejia Thu, 29 Mar 2012 09:44:15 -0400 libarchive (3.0.3-7) unstable; urgency=low * Allow the dev package to be multi-arch installable. * Set verbosity level to 1 for test programs. This incorporates upstream commit 7cd65cd07cfa2693455d174049b4887434041695. (Closes: #662716) * Fixup package description about ISO support. (Closes: #659651) -- Andres Mejia Fri, 16 Mar 2012 16:21:21 -0400 libarchive (3.0.3-6) unstable; urgency=low * Add patch to fix infinite loop in xps files (Closes: #662603) - Thanks for the patch to Savvas Radevic! -- Andreas Henriksson Mon, 05 Mar 2012 16:23:05 +0100 libarchive (3.0.3-5) unstable; urgency=low * Detect if locales or locales-all is installed for use with test suite. * Bump Standards-Version to 3.9.3. -- Andres Mejia Thu, 23 Feb 2012 19:29:24 -0500 libarchive (3.0.3-4) unstable; urgency=low * Ensure tests are not run via root. (Closes: #659294) -- Andres Mejia Tue, 21 Feb 2012 16:01:26 -0500 libarchive (3.0.3-3) unstable; urgency=low * Update watch file to use new home for downloads. -- Andres Mejia Mon, 06 Feb 2012 17:04:34 -0500 libarchive (3.0.3-2) unstable; urgency=low * Upload to unstable. * Update homepage to libarchive's new home. -- Andres Mejia Mon, 06 Feb 2012 16:37:07 -0500 libarchive (3.0.3-1) experimental; urgency=low * New upstream release. * Fix for hurd build failure included in new release. (Closes: #653458) * Update copyright file. -- Andres Mejia Mon, 16 Jan 2012 11:49:46 -0500 libarchive (3.0.2-3) experimental; urgency=low * Prepare an upload to experimental. -- Andres Mejia Sat, 24 Dec 2011 20:39:17 -0500 libarchive (3.0.2-1) unstable; urgency=low * Prepare new upstream release. * Update package descriptions, deleting some information that doesn't apply to current build of packages. * Rename shared library package for soname bump. * Remove symbols files. Symbols file needs to be maintained better. Also, numerous symbols were in the file which were meant to stay private (all the __archive_* symbols for example). -- Andres Mejia Sat, 24 Dec 2011 15:47:39 -0500 libarchive (3.0.1b-1) experimental; urgency=low * Package latest testing release. * Update debian/control, noting new 7zip support. * Fix package description for bsdcpio. * Update symbols file for new symbols added in libarchive-3.0.1b. -- Andres Mejia Fri, 16 Dec 2011 17:28:03 -0500 libarchive (3.0.0a-1) experimental; urgency=low * Package testing release of libarchive for experimental. * Better ext2 file attribute/flag support included in new release. (Closes: #615875) * Remove all patches, applied in upstream source. * Add option to unapply patches for dpkg-source v3. * Change package name libarchive1 to libarchive11 to match soname bump. * Rename files used in packaging libarchive11. * Build depend on Nettle library. * Add mention of rar support in package description. * Remove installation of symlink for libarchive library file. * Explicitely build without openssl and with nettle support. * Add proper depends to new libarchive11 package. * Update symbols file for libarchive11. * Ensure bsdtar and bsdcpio are linked to shared library dynamically. * Build en_US.UTF-8 locale at runtime to pass test suite. -- Andres Mejia Fri, 16 Dec 2011 16:31:37 -0500 libarchive (2.8.5-5) unstable; urgency=medium * Backport fixes for fix for CVE-2011-1777 and CVE-2011-1778. (Closes: #651844) * Fix build failure for GNU/Hurd. (Closes: #651995) * Regenerate autoreconf patch. -- Andres Mejia Wed, 14 Dec 2011 12:18:31 -0500 libarchive (2.8.5-4) unstable; urgency=low [ Andres Mejia ] * Improve each packages' long description. * Refresh all patches. [ Samuel Thibault ] * Skip libacl1-dev build dependency on hurd (Closes: #645403) [ Andreas Henriksson ] * Add 0009-Patch-from-upstream-rev-3751.patch (Closes: #641265) + Thanks to Michael Cree for figuring out the details. -- Andres Mejia Sun, 11 Dec 2011 21:55:59 -0500 libarchive (2.8.5-3) unstable; urgency=low * Fix upgrade breakage because of manpages being moved from libarchive1 to libarchive-dev. (Closes: #641978) * Make short descriptions for packages unique. * Explicitly set config options to be used during builds. -- Andres Mejia Sun, 18 Sep 2011 10:25:34 -0400 libarchive (2.8.5-2) unstable; urgency=low * Add gbp.conf to enable pristine-tar to true by default. * Add myself to uploaders field. * Add default options to fail on any upstream changes during a build. * Bump Standards-Version to 3.9.2. * Remove duplicate "Section" field. * Remove unnecessary use of *.dirs dh files. * Remove unneeded build-deps. * Provide patch that implements changes made after running autoreconf -vif. * Remove generic comments from debian/rules. * Support parallel builds. * Remove commented lines from install file. * Add docs to all packages except the shared library package. * Remove unneeded use of 'debian/tmp' in path for install files. * Provide different mechanism to install symlink for libarchive1 package. * Move all manpages for libarchive1 to libarchive-dev. * Move libarchive-dev control stanza up. This will make libarchive-dev the default package for installing files into, such as the README.Debian. * Convert libarchive into multiarch library package. * Update Vcs-* entries. -- Andres Mejia Sat, 17 Sep 2011 18:50:11 -0400 libarchive (2.8.5-1) unstable; urgency=low * Add 0010-Patch-from-upstream-rev-2811.patch * Drop "update-patch-series" target from debian/rules * Convert package to dh7 * Imported Upstream version 2.8.5 (Closes: #640524) * Rebase patch queue and drop patches merged upstream - dropped 0003-Patch-from-upstream-rev-2516.patch - dropped 0010-Patch-from-upstream-rev-2811.patch -- Andreas Henriksson Mon, 05 Sep 2011 17:35:36 +0200 libarchive (2.8.4-2) unstable; urgency=low * update-patch-series: + replace local patch with upstream commit. (Rebase patches branch to drop commit/patch "0007-Ignore-ENOSYS-error-when-sett...", in favor of upstream revision 2537 added as "0007-Patch-from-upstream-rev-2537.patch") + add 0008-Patch-from-upstream-rev-2888.patch (Closes: #610079) + add 0009-Patch-from-upstream-rev-2940.patch (Closes: #610783) -- Andreas Henriksson Tue, 09 Aug 2011 13:39:10 +0200 libarchive (2.8.4-1) unstable; urgency=low * Update debian/watch for new code.google.com layout. * update patch series: + added 0003-Patch-from-upstream-rev-2516.patch - Compatibility with WinISO generated iso files (Closes: #587513) + added 0004-Patch-from-upstream-rev-2514.patch + added 0005-Patch-from-upstream-rev-2520.patch - Enable version stripping code in iso9660/joliet (Closes: #587316) * Imported Upstream version 2.8.4 * update-patch-series: + added 0006-Patch-from-upstream-rev-2521.patch + added 0007-Ignore-ENOSYS-error-when-sett... (Closes: #588925) - Big thanks to Modestas Vainius for awesome debugging! -- Andreas Henriksson Thu, 15 Jul 2010 14:45:06 +0200 libarchive (2.8.3-1) unstable; urgency=low * Imported Upstream version 2.8.3 * update-patch-series: 0001-Clear-archive_error_number-in-archiv... - gvfs has been fixed since, workaround not needed anymore. -- Andreas Henriksson Fri, 23 Apr 2010 13:25:33 +0200 libarchive (2.8.0-2) unstable; urgency=low * Clean up libarchive.la file. (Closes: #571468) - Thanks to Sune Vuorela for suggesting this fix. * Update patch series: + added two patches matching revision 1990, 1991 from upstream regarding PATH_MAX hopefully fixing build on Hurd. -- Andreas Henriksson Thu, 25 Feb 2010 22:31:13 +0100 libarchive (2.8.0-1) unstable; urgency=low * Set myself as maintainer (Closes: #570539). + co-maintainers welcome! * Imported Upstream version 2.8.0 (Closes: #559158) * Drop debian revision in symbols file. * Updated symbols for 2.8 * Update rules for new build directory (config.aux -> build/autoconf) * Replace ${Source-Version} with ${source:Version} in control file. * Drop debian/shlibs.local.ex * Bump debhelper compatibility level to 5. * Stop trying to install non-existant usr/share/pkgconfig * Update Vcs fields to point to new collab-maint repository. * Update debian/copyright * Bump Standards-Version to 3.8.4 * Add update-patch-series target in debian/rules. * Added patch to fix gvfsd-archive problems: + 0001-Clear-archive_error_number-in-archive_clear_error.patch (from http://bugs.gentoo.org/show_bug.cgi?id=289260#c1 ) * Switch to dpkg-source 3.0 (quilt) format * Split Build-Depends on multiple lines. * Add liblzma-dev to Build-Depends for lzma support. * Add Build-Depends on libxml2-dev for xar support. * Explicitly give --without-openssl to configure. -- Andreas Henriksson Tue, 23 Feb 2010 20:50:25 +0100 libarchive (2.6.2-2) unstable; urgency=low * Orphaning the package; set maintainer to QA group. -- John Goerzen Fri, 19 Feb 2010 11:23:14 -0600 libarchive (2.6.2-1) unstable; urgency=low * New Upstream Version. Closes: #516577. * Update watch file to new homepage. Closes: #517398. -- John Goerzen Thu, 12 Mar 2009 09:32:31 -0500 libarchive (2.6.1-1) unstable; urgency=low * New Upstream Version * Update homepage. Closes: #514835. * Clean up Debian rules. Patch partially from Bernhard R. Link. Closes: #480495. -- John Goerzen Thu, 19 Feb 2009 09:28:57 -0600 libarchive (2.4.17-2) unstable; urgency=high [ John Goerzen ] * Ignore failures in test suite due to bugs in the testsuite that were turning into FTBFS bugs. Closes: #474400. * Added README.Debian documenting need for largefile suport in sources. Mostly used suggested text found in #479728. Closes: #479728. [ Bernhard R. Link ] * Added symbols file for libarchive. Closes: #476516. -- John Goerzen Thu, 05 Jun 2008 15:42:57 -0500 libarchive (2.4.17-1) unstable; urgency=high * New Upstream Version * This upstream version corrected several problems with the testsuite. Therefore, we can now run test suite after build. Closes: #473221. * uudecode is now used as part of the build. Added build-dep on sharutils. Fixes FTBFS. Closes: #473266. -- John Goerzen Thu, 03 Apr 2008 09:25:04 -0500 libarchive (2.4.14-1) unstable; urgency=high * New upstream release. Closes: #465061, #448292. #465061 is grave bug, so setting urgency high. * Added Vcs-* and Homepage lines to debian/control -- John Goerzen Sat, 29 Mar 2008 10:14:21 -0500 libarchive (2.4.11-1) unstable; urgency=low * New upstream version. * Move bsdtar to section utils. Closes: #460988. * Added bsdcpio package due to new upstream cpio command. -- John Goerzen Mon, 21 Jan 2008 10:02:29 -0600 libarchive (2.2.4-1) unstable; urgency=high * New upstream version with security fixes. Closes: #432924. Fixes: CVE-2007-3641, CVE-2007-3644, CVE-2007-3645 -- John Goerzen Fri, 13 Jul 2007 08:14:00 -0500 libarchive (2.2.3-1) unstable; urgency=low * New upstream version. -- John Goerzen Wed, 06 Jun 2007 03:36:35 -0500 libarchive (2.0.25-3) unstable; urgency=low * SONAME should not be tied to the tarball version string (Closes: #418637) Provide libarchive.so.1 as a backwards-compatible symlink to libarchive.so.2, reverting the package name to libarchive1. Patch from Neil Williams. -- John Goerzen Mon, 16 Apr 2007 13:50:29 +0100 libarchive (2.0.25-2) unstable; urgency=low * Remove build-dep on linux-kernel-headers for compatibility with BSD ports. Closes: #377480. -- John Goerzen Tue, 13 Mar 2007 20:03:37 -0500 libarchive (2.0.25-1) unstable; urgency=low * New upstream version * Remove unnecessary dep on libarchive1. Closes: #396756. * Bump standards-version * Rename libarchive1 to libarchive2 to match new soname. -- John Goerzen Tue, 13 Mar 2007 07:03:53 -0500 libarchive (1.3.1-1) unstable; urgency=high * New upstream release. * Applied FreeBSD patch for potential DoS. This is CVS-2006-5680, FreeBSD SA-06:24. -- John Goerzen Mon, 18 Dec 2006 05:51:08 -0600 libarchive (1.2.53-2) unstable; urgency=low * Added build-dep on bison. Closes: #374200. -- John Goerzen Sat, 17 Jun 2006 17:24:44 -0500 libarchive (1.2.53-1) unstable; urgency=low * New upstream version. * The bsdtar program has been integrated into the libarchive source package upstream. This package, therefore, now generates the bsdtar binary package. -- John Goerzen Sat, 17 Jun 2006 10:44:05 -0500 libarchive (1.02.036-2) unstable; urgency=low * Added conflict on old libarchive-doc package. This package never existed in testing or stable, so this conflict can be removed before long. -- John Goerzen Tue, 18 Oct 2005 11:02:06 -0500 libarchive (1.02.036-1) unstable; urgency=low * New upstream version, now with support for building as a .so. * Added build-dep on libattr1-dev. * No more libarchive-doc; its files now live in libarchive1. * Thanks to Bernhard R. Link for ideas for this package. -- John Goerzen Mon, 17 Oct 2005 10:27:30 -0500 libarchive (1.02.034-2) unstable; urgency=low * Split off manpages into separate package libarchive-doc. The bsdtar manpages point readers to these. -- John Goerzen Tue, 11 Oct 2005 05:36:28 -0500 libarchive (1.02.034-1) unstable; urgency=low * Initial release Closes: #333222. -- John Goerzen Mon, 10 Oct 2005 19:24:56 -0500 debian/bsdcpio.install0000644000000000000000000000002012150214725012170 0ustar usr/bin/bsdcpio debian/bsdcpio.manpages0000644000000000000000000000005012150214725012320 0ustar debian/tmp/usr/share/man/man1/bsdcpio.1 debian/libarchive-dev.docs0000644000000000000000000000001412150214725012716 0ustar NEWS README debian/compat0000644000000000000000000000000212150214725010363 0ustar 9 debian/libarchive-dev.install0000644000000000000000000000010512150214725013435 0ustar usr/include usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/pkgconfig/* debian/patches/0000755000000000000000000000000012150214725010614 5ustar debian/patches/Initialize-buff-to-all-zeros.patch0000644000000000000000000000065212150214725017207 0ustar Description: Initialize buff to all zeros. From 1016793be6f7ff9f451a60c997c356ea83759562 Mon Sep 17 00:00:00 2001 Origin: upstream --- a/libarchive/test/test_archive_write_add_filter_by_name.c +++ b/libarchive/test/test_archive_write_add_filter_by_name.c @@ -38,7 +38,7 @@ char *buff; int r; - assert((buff = malloc(buffsize)) != NULL); + assert((buff = calloc(1, buffsize)) != NULL); if (buff == NULL) return; debian/patches/Fix-test_archive_write_add_filter_by_name_lrzip-test.patch0000644000000000000000000000176112150214725024324 0ustar Description: Fix test_archive_write_add_filter_by_name_lrzip test case. There's some bug in lrzip where small files cannot use 2nd stage compression. See http://ck-hack.blogspot.com/2012/03/lrzip-0612.html?showComment=1337356929450#c3154145708572533571 From d767d7904781794442938df6b0dd29c8da325e03 Mon Sep 17 00:00:00 2001 Origin: upstream --- a/libarchive/test/test_archive_write_add_filter_by_name.c +++ b/libarchive/test/test_archive_write_add_filter_by_name.c @@ -70,6 +70,16 @@ return; } } + if (filter_code == ARCHIVE_FILTER_LRZIP) + { + /* + * There's a bug in lrzip (as of release 0.612) where 2nd stage + * compression can't be performed on smaller files. Set lrzip to + * use no 2nd stage compression. + */ + assertEqualIntA(a, ARCHIVE_OK, + archive_write_set_options(a, "lrzip:compression=none")); + } assertEqualIntA(a, ARCHIVE_OK, archive_write_set_bytes_per_block(a, 10)); assertEqualIntA(a, ARCHIVE_OK, archive_write_open_memory(a, buff, buffsize, &used)); debian/patches/examples-offset-type.patch0000644000000000000000000000131412150214725015715 0ustar Description: Fix offset data type in examples. Author: Martin Pitt Bug: http://code.google.com/p/libarchive/issues/detail?id=282 Applied-Upstream: b8bb251083006b8af56c4d099ac4dc5475ce5cbb, 7da8d576848982f2b0264febf89cb8e3f3580af2 --- a/examples/minitar/minitar.c +++ b/examples/minitar/minitar.c @@ -400,7 +400,7 @@ int r; const void *buff; size_t size; - off_t offset; + int64_t offset; for (;;) { r = archive_read_data_block(ar, &buff, &size, &offset); --- a/examples/untar.c +++ b/examples/untar.c @@ -199,7 +199,7 @@ int r; const void *buff; size_t size; -#if ARCHIVE_VERSION >= 3000000 +#if ARCHIVE_VERSION_NUMBER >= 3000000 int64_t offset; #else off_t offset; debian/patches/fix-CVE-2013-0211.patch0000644000000000000000000000136412150214725014006 0ustar Description: Fix CVE-2013-0211: read buffer overflow on 64-bit systems Origin: upstream Bug-Debian: http://bugs.debian.org/703957 Forwarded: not-needed --- libarchive-3.0.4.orig/libarchive/archive_write.c +++ libarchive-3.0.4/libarchive/archive_write.c @@ -665,8 +665,13 @@ static ssize_t _archive_write_data(struct archive *_a, const void *buff, size_t s) { struct archive_write *a = (struct archive_write *)_a; + const size_t max_write = INT_MAX; + archive_check_magic(&a->archive, ARCHIVE_WRITE_MAGIC, ARCHIVE_STATE_DATA, "archive_write_data"); + /* In particular, this catches attempts to pass negative values. */ + if (s > max_write) + s = max_write; archive_clear_error(&a->archive); return ((a->format_write_data)(a, buff, s)); } debian/patches/fix-lzo-test-case.patch0000644000000000000000000000562512150214725015123 0ustar Description: This patch fixes test cases for LZO write support in various architectures, such as armhf. Writing a certain amount of files would cause the LZO compressor level 9 to produce a bigger archive than the default compressor level. Author: Andres Mejia --- a/libarchive/test/test_write_filter_lzop.c +++ b/libarchive/test/test_write_filter_lzop.c @@ -39,7 +39,7 @@ size_t buffsize, datasize; char path[16]; size_t used1, used2; - int i, r, use_prog = 0; + int i, r, use_prog = 0, filecount; assert((a = archive_write_new()) != NULL); r = archive_write_add_filter_lzop(a); @@ -58,9 +58,10 @@ datasize = 10000; assert(NULL != (data = (char *)calloc(1, datasize))); + filecount = 10; /* - * Write a 100 files and read them all back. + * Write a filecount files and read them all back. */ assert((a = archive_write_new()) != NULL); assertEqualIntA(a, ARCHIVE_OK, archive_write_set_format_ustar(a)); @@ -77,7 +78,7 @@ assert((ae = archive_entry_new()) != NULL); archive_entry_set_filetype(ae, AE_IFREG); archive_entry_set_size(ae, datasize); - for (i = 0; i < 100; i++) { + for (i = 0; i < filecount; i++) { sprintf(path, "file%03d", i); archive_entry_copy_pathname(ae, path); assertEqualIntA(a, ARCHIVE_OK, archive_write_header(a, ae)); @@ -97,7 +98,7 @@ } else { assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff, used1)); - for (i = 0; i < 100; i++) { + for (i = 0; i < filecount; i++) { sprintf(path, "file%03d", i); if (!assertEqualInt(ARCHIVE_OK, archive_read_next_header(a, &ae))) @@ -133,7 +134,7 @@ archive_write_set_options(a, "lzop:compression-level=9")); assertEqualIntA(a, ARCHIVE_OK, archive_write_open_memory(a, buff, buffsize, &used2)); - for (i = 0; i < 100; i++) { + for (i = 0; i < filecount; i++) { sprintf(path, "file%03d", i); assert((ae = archive_entry_new()) != NULL); archive_entry_copy_pathname(ae, path); @@ -161,7 +162,7 @@ archive_read_support_filter_all(a)); assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff, used2)); - for (i = 0; i < 100; i++) { + for (i = 0; i < filecount; i++) { sprintf(path, "file%03d", i); if (!assertEqualInt(ARCHIVE_OK, archive_read_next_header(a, &ae))) @@ -186,7 +187,7 @@ archive_write_set_filter_option(a, NULL, "compression-level", "1")); assertEqualIntA(a, ARCHIVE_OK, archive_write_open_memory(a, buff, buffsize, &used2)); - for (i = 0; i < 100; i++) { + for (i = 0; i < filecount; i++) { sprintf(path, "file%03d", i); assert((ae = archive_entry_new()) != NULL); archive_entry_copy_pathname(ae, path); @@ -216,7 +217,7 @@ } else { assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff, used2)); - for (i = 0; i < 100; i++) { + for (i = 0; i < filecount; i++) { sprintf(path, "file%03d", i); if (!assertEqualInt(ARCHIVE_OK, archive_read_next_header(a, &ae))) debian/patches/Allow-the-option-to-use-no-2nd-stage-compression-wit.patch0000644000000000000000000000176712150214725023560 0ustar Description: Allow the option to use no 2nd stage compression with lrzip. From 21b21bc874f31b1379c2c4feb944970ce4459d5c Mon Sep 17 00:00:00 2001 Origin: upstream --- a/libarchive/archive_write_add_filter_lrzip.c +++ b/libarchive/archive_write_add_filter_lrzip.c @@ -44,7 +44,7 @@ struct write_lrzip { struct archive_write_program_data *pdata; int compression_level; - enum { lzma = 0, bzip2, gzip, lzo, zpaq } compression; + enum { lzma = 0, bzip2, gzip, lzo, none, zpaq } compression; }; static int archive_write_lrzip_open(struct archive_write_filter *); @@ -107,6 +107,8 @@ data->compression = gzip; else if (strcmp(value, "lzo") == 0) data->compression = lzo; + else if (strcmp(value, "none") == 0) + data->compression = none; else if (strcmp(value, "zpaq") == 0) data->compression = zpaq; else @@ -148,6 +150,9 @@ case lzo: archive_strcat(&as, " -l"); break; + case none: + archive_strcat(&as, " -n"); + break; case zpaq: archive_strcat(&as, " -z"); break; debian/patches/examples.patch0000644000000000000000000000105512150214725013454 0ustar Description: Add autopkgtest support. Author: Benjamin Drung Applied-Upstream: d19d180efd59d4d3b61e0818eac0d37d086aec55, 453f819252dc15d3cab57534b5a52f314717714b --- a/examples/untar.c +++ b/examples/untar.c @@ -53,7 +53,6 @@ */ #include -__FBSDID("$FreeBSD$"); #include --- a/examples/minitar/minitar.c +++ b/examples/minitar/minitar.c @@ -427,6 +427,9 @@ static void errmsg(const char *m) { + if(m == NULL) { + m = "Error: No error description provided.\n"; + } write(2, m, strlen(m)); } debian/patches/series0000644000000000000000000000042312150214725012030 0ustar examples.patch examples-offset-type.patch mtree-filename-length-fix.patch fix-lzo-test-case.patch Initialize-buff-to-all-zeros.patch Allow-the-option-to-use-no-2nd-stage-compression-wit.patch Fix-test_archive_write_add_filter_by_name_lrzip-test.patch fix-CVE-2013-0211.patch debian/patches/mtree-filename-length-fix.patch0000644000000000000000000000110412150214725016566 0ustar Description: Patch to fix filename length calculation when writing mtree archives. Author: Dave Reisner Origin: upstream --- a/libarchive/archive_write_set_format_mtree.c +++ b/libarchive/archive_write_set_format_mtree.c @@ -1855,9 +1855,9 @@ return (ret); } - /* Make a basename from dirname and slash */ + /* Make a basename from file->parentdir.s and slash */ *slash = '\0'; - file->parentdir.length = slash - dirname; + file->parentdir.length = slash - file->parentdir.s; archive_strcpy(&(file->basename), slash + 1); return (ret); } debian/bsdtar.docs0000644000000000000000000000001412150214725011311 0ustar NEWS README debian/README.Debian0000644000000000000000000000057312150214725011233 0ustar As libarchive requires large-file support enabled under i386 on Linux you must add the following to any of your own source files: #define _FILE_OFFSET_BITS 64 Applications compiled under i386 on Linux without this options will produce empty archives and corrupt output from archives when reading them. -- John Goerzen , Thu, 5 Jun 2008 15:36:22 -0500 debian/libarchive13.install0000644000000000000000000000002412150214725013025 0ustar usr/lib/*/lib*.so.* debian/control0000644000000000000000000001222612253050705010573 0ustar Source: libarchive Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Libarchive Maintainers Uploaders: Andreas Henriksson , Andres Mejia Build-Depends: debhelper (>= 8.1.3~), dh-autoreconf, libbz2-dev, liblzma-dev, libxml2-dev, zlib1g-dev, libacl1-dev [!hurd-any], e2fslibs-dev, libattr1-dev, sharutils, nettle-dev, liblzo2-dev, locales | locales-all Standards-Version: 3.9.4 Section: libs Homepage: http://www.libarchive.org/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/libarchive.git Vcs-Git: git://anonscm.debian.org/collab-maint/libarchive.git XS-Testsuite: autopkgtest Package: libarchive-dev Section: libdevel Architecture: any Multi-Arch: same Depends: libarchive13 (= ${binary:Version}), ${misc:Depends} Replaces: libarchive1 (<< 2.8.5-3) Breaks: libarchive1 (<< 2.8.5-3) Description: Multi-format archive and compression library (development files) The libarchive library provides a flexible interface for reading and writing archives in various formats such as tar and cpio. libarchive also supports reading and writing archives compressed using various compression filters such as gzip and bzip2. The library is inherently stream-oriented; readers serially iterate through the archive, writers serially add things to the archive. . Archive formats supported are: . * tar (read and write, including GNU extensions) * pax (read and write, including GNU and star extensions) * cpio (read and write, including odc and newc variants) * iso9660 (read and write, including Joliet and Rockridge extensions, with some limitations) * zip (read only, with some limitations, uses zlib) * mtree (read and write) * shar (write only) * ar (read and write, including BSD and GNU/SysV variants) * empty (read only; in particular, note that no other format will accept an empty file) * raw (read only) * xar (read only) * rar (read only, with some limitations) * 7zip (read and write, with some limitations) . Filters supported are: . * gzip (read and write, uses zlib) * bzip2 (read and write, uses bzlib) * compress (read and write, uses an internal implementation) * uudecode (read only) * separate command-line compressors with fixed-signature auto-detection * xz and lzma (read and write using liblzma) . This package provides the files necessary for development with libarchive. Package: libarchive13 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: lrzip Description: Multi-format archive and compression library (shared library) The libarchive library provides a flexible interface for reading and writing archives in various formats such as tar and cpio. libarchive also supports reading and writing archives compressed using various compression filters such as gzip and bzip2. The library is inherently stream-oriented; readers serially iterate through the archive, writers serially add things to the archive. . Archive formats supported are: . * tar (read and write, including GNU extensions) * pax (read and write, including GNU and star extensions) * cpio (read and write, including odc and newc variants) * iso9660 (read and write, including Joliet and Rockridge extensions, with some limitations) * zip (read only, with some limitations, uses zlib) * mtree (read and write) * shar (write only) * ar (read and write, including BSD and GNU/SysV variants) * empty (read only; in particular, note that no other format will accept an empty file) * raw (read only) * xar (read only) * rar (read only, with some limitations) * 7zip (read and write, with some limitations) . Filters supported are: . * gzip (read and write, uses zlib) * bzip2 (read and write, uses bzlib) * compress (read and write, uses an internal implementation) * uudecode (read only) * separate command-line compressors with fixed-signature auto-detection * xz and lzma (read and write using liblzma) . This package provides the libarchive shared library. Package: bsdtar Architecture: any Depends: libarchive13 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Section: utils Suggests: bsdcpio Description: Implementation of the 'tar' program from FreeBSD The bsdtar program is the default system 'tar' program used on FreeBSD. bsdtar uses the libarchive library as a backend which does all of the work for reading and writing archives in various formats. Package: bsdcpio Architecture: any Depends: libarchive13 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Section: utils Suggests: bsdtar Description: Implementation of the 'cpio' program from FreeBSD The bsdcpio program is the default system 'cpio' program used on FreeBSD. bsdcpio uses the libarchive library as a backend which does all of the work for reading and writing archives in various formats. debian/tests/0000755000000000000000000000000012252111672010327 5ustar debian/tests/minitar0000644000000000000000000000302412252111672011714 0ustar #!/bin/sh set -e # autopkgtest check: Build and run the example minitar program against # libarchive, to verify that the headers and pkg-config file are installed # correctly and minitar works as expected. # Author: Benjamin Drung gcc -O2 -g -Wno-unused-result -o minitar examples/minitar/minitar.c $(pkg-config --cflags --libs libarchive) # Create different tarballs echo "Deadbeaf" > foo echo "Compressing foo.tar..." ./minitar -cf foo.tar foo echo "Compressing foo.tar.gz..." ./minitar -czf foo.tar.gz foo echo "Compressing foo.tar.bz2..." ./minitar -cyf foo.tar.bz2 foo # Test tarballs for correct mime type echo "Testing mime type of foo.tar..." test "$(file -b --mime-type foo.tar)" = "application/x-tar" echo "Testing mime type of foo.tar.gz..." test "$(file -b --mime-type foo.tar.gz)" = "application/gzip" echo "Testing mime type of foo.tar.bz2..." test "$(file -b --mime-type foo.tar.bz2)" = "application/x-bzip2" # FIXME: Extracting with minitar crashes; using untar instead. gcc -O2 -g -Wno-unused-result -o untar examples/untar.c $(pkg-config --cflags --libs libarchive) # Extract tarballs and compare content mv foo foo.orig echo "Extracting foo.tar..." # FIXME ./minitar -xf foo.tar ./untar -xf foo.tar cmp foo foo.orig rm foo foo.tar echo "Extracting foo.tar.gz..." # FIXME ./minitar -xf foo.tar.gz tar -xf foo.tar.gz cmp foo foo.orig rm foo foo.tar.gz echo "Extracting foo.tar.bz2..." # FIXME ./minitar -xf foo.tar.bz2 tar -xf foo.tar.bz2 cmp foo foo.orig rm foo foo.tar.bz2 # Clean-up rm foo.orig minitar untar debian/tests/control0000644000000000000000000000011212150214725011724 0ustar Tests: minitar Depends: build-essential, file, libarchive-dev, pkg-config debian/rules0000755000000000000000000000114312253051164010244 0ustar #!/usr/bin/make -f .PHONY: build %: dh $@ --parallel --with autoreconf build: dh $@ --parallel --with autoreconf override_dh_auto_configure: dh_auto_configure -- --without-openssl --with-nettle \ --enable-bsdtar=shared --enable-bsdcpio=shared override_dh_auto_test: ifneq (,$(shell locale -a | grep en_US.utf8)) _VERBOSITY_LEVEL=1 dh_auto_test --parallel else mkdir -p tmp-locales localedef -i /usr/share/i18n/locales/en_US -c -f UTF-8 \ -A /usr/share/locale/locale.alias tmp-locales/en_US.UTF-8 _VERBOSITY_LEVEL=1 LOCPATH=$(CURDIR)/tmp-locales dh_auto_test --parallel rm -rf tmp-locales endif debian/source/0000755000000000000000000000000012150214725010465 5ustar debian/source/format0000644000000000000000000000001412150214725011673 0ustar 3.0 (quilt) debian/source/lintian-overrides0000644000000000000000000000021212150214725014041 0ustar # Ignore this, since currently only debhelper (>= 8.1.3~) is needed. libarchive source: package-needs-versioned-debhelper-build-depends 9 debian/gbp.conf0000644000000000000000000000003612150214725010603 0ustar [DEFAULT] pristine-tar = True debian/bsdcpio.docs0000644000000000000000000000001412150214725011455 0ustar NEWS README debian/watch0000644000000000000000000000023012150214725010211 0ustar version=3 opts=dversionmangle=s/[-.+~]?(cvs|svn|git|snapshot|pre|hg|repack)(.*)$//i,pasv \ http://www.libarchive.org/downloads/libarchive-(.*)\.tar\.gz debian/libarchive13.lintian-overrides0000644000000000000000000000017412150214725015023 0ustar # See 418637 for the history of this bug and the override libarchive1 binary: package-name-doesnt-match-sonames libarchive2 debian/libarchive-dev.manpages0000644000000000000000000000010012150214725013555 0ustar debian/tmp/usr/share/man/man3/* debian/tmp/usr/share/man/man5/*