Philipp A. Hartmann [Mon, 27 Aug 2012 13:15:34 +0000 (15:15 +0200)]
Makefile.PL: avoid in-place editing with sed
This patch avoids the usage of the in-place editing option '-i' of sed for
version number extraction from debian/changelog to update pristine-tar.spec.
The -i option is not supported by all versions of sed (e.g. not by SunOS 5.9
nor by NetBSD 6.0). Additionally, the exact syntax may vary. E.g., the sed
of Mac OS X requires -i to be followed by a suffix, which is added to the
original filename to create a backup file. The portable solution is to avoid
the in-place editing altogether and to instead write first to a temporary
file, which is then moved back to the original filename.
In addition to the use of a temporary file, the rule has been changed to
use the PERLRUN variable to invoke the correct perl interpreter and a
dependency on debian/changelog (the phonyness of the rule could be
dropped as well).
Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Torsten Maehne [Mon, 27 Aug 2012 09:31:22 +0000 (11:31 +0200)]
Makefile.PL: use #!/usr/bin/env perl
To run the Makefile.PL script on other platforms, this
patch changes the shebang line to '/usr/bin/env perl'.
This is more likely to succeed on platforms (SunOS, *BSD,
Mac OS X), where the Perl binary is not located at /usr/bin.
Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Philipp A. Hartmann [Mon, 27 Aug 2012 11:22:51 +0000 (13:22 +0200)]
Makefile.PL: drop unused suse-bzip2 target
Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Philipp A. Hartmann [Mon, 27 Aug 2012 11:23:04 +0000 (13:23 +0200)]
Makefile.PL: handle PREFIX consistently
This patch fixes the handling of the PREFIX variable in the generated
Makefile. The following issues are addressed:
* drop explicit PREFIX in WriteMakefile call
By default, the local $Config{prefix} setting should be fine.
This allows to specify either PREFIX or INSTALL_BASE as Makefile.PL
parameter, depending on the user needs.
* use PREFIX in extra_install target
Previously, pristine-tar, pristine-gz, pristine-bz2, pristine-xz, and
zgz were always installed to /usr/bin (if $DESTDIR was not set). Also,
the man pages were always installed to /usr/share/man/man1.
* call $(MAKE) and pass PREFIX to the build of suse-bzip2
Although PREFIX is not really used during the build of suse-bzip2,
it should be passed to the build to enable e.g. the inclusion
of the "correct" location during the linking process.
Reported-by: Torsten Maehne <torsten.maehne@gmx.de>
Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Torsten Maehne [Tue, 31 Jul 2012 15:10:29 +0000 (17:10 +0200)]
Update .gitignore
Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Torsten Maehne [Mon, 30 Jul 2012 17:00:31 +0000 (19:00 +0200)]
Factorize external program names into variables
The external programs (tar, xdelta) called by the pristine-tar script have
been hardcoded until now. This requires that both program names are the
first in the user's PATH, which can lead to problems, especially on
non-GNU/Linux platforms:
* Pristine-tar uses options (e.g., "--owner"), which are only present
in GNU tar.
* Pristine-tar uses the old 1.1 release series Xdelta, which is
syntactically incompatible to the 3.0 release series of Xdelta.
This commit centralizes the definition of the program names of tar and
xdelta so that their exact names (or locations) can be easily configured.
Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Torsten Maehne [Mon, 30 Jul 2012 16:50:57 +0000 (18:50 +0200)]
Fix minor typo in pristine-bz2.
Joey Hess [Sat, 25 Aug 2012 15:57:57 +0000 (11:57 -0400)]
releasing version 1.26
Joey Hess [Thu, 12 Jul 2012 16:15:20 +0000 (12:15 -0400)]
use --block-list
Joey Hess [Tue, 19 Jun 2012 13:28:41 +0000 (09:28 -0400)]
pristine-xz: Use xz --robot to extract information from xz files, avoiding the need to do more expensive guessing. Will also later allow supporting files needing --block-split (once upstream xz provides that option; a patch has been submitted). Closes: #677250 Thanks, Vincent Ladeuil
Joey Hess [Tue, 12 Jun 2012 15:50:31 +0000 (11:50 -0400)]
releasing version 1.25
Joey Hess [Tue, 12 Jun 2012 15:45:07 +0000 (11:45 -0400)]
pristine-xz: Add --check=sha256 and compression levels 0 and 0e. Closes: #677241 Thanks, Vincent Ladeuil
Joey Hess [Mon, 4 Jun 2012 01:16:44 +0000 (21:16 -0400)]
add README
Joey Hess [Thu, 31 May 2012 16:33:49 +0000 (12:33 -0400)]
Remove unused fts.h include. Closes: #675367
Joey Hess [Sun, 1 Apr 2012 16:23:36 +0000 (12:23 -0400)]
releasing version 1.24
Mike Miller [Sun, 1 Apr 2012 14:55:34 +0000 (10:55 -0400)]
Add --check=crc32 to list of allowed parameters
Signed-off-by: Mike Miller <mtmiller@ieee.org>
Joey Hess [Sat, 31 Mar 2012 23:03:21 +0000 (19:03 -0400)]
releasing version 1.23
Mike Miller [Sat, 31 Mar 2012 21:50:41 +0000 (17:50 -0400)]
Add cases to handle CRC32 files made with PylibLZMA
Signed-off-by: Mike Miller <mtmiller@ieee.org>
Joey Hess [Tue, 27 Mar 2012 23:42:49 +0000 (19:42 -0400)]
Detect git submodules procuded by recent git, where .git is a file, not a directory. Closes: #666033
Joey Hess [Tue, 20 Mar 2012 21:01:27 +0000 (17:01 -0400)]
move zgz/pit to pit
Joey Hess [Sun, 18 Mar 2012 16:58:24 +0000 (12:58 -0400)]
add list command to status
Joey Hess [Sun, 11 Mar 2012 22:51:05 +0000 (18:51 -0400)]
releasing version 1.22
Joey Hess [Sun, 11 Mar 2012 22:49:10 +0000 (18:49 -0400)]
Store the sha1 of the tree that is being committed, rather than a sha1 of a commit or other object that points to the tree. This makes committed tarballs more resilient against git filter-branch when it's only used to change commit metadata. Closes: #467288
Joey Hess [Fri, 2 Mar 2012 19:02:59 +0000 (15:02 -0400)]
releasing version 1.21
Joey Hess [Fri, 2 Mar 2012 18:56:25 +0000 (14:56 -0400)]
Fix bug in mtime resetting code, which caused delta files to be created that failed to regenerate the original tarball. Closes: #661902
Need to set mtime in a separate pass, after symlink replacement with
regular file is complete.
Joey Hess [Sat, 25 Feb 2012 14:54:35 +0000 (10:54 -0400)]
updated debian copyright format url
Joey Hess [Sun, 12 Feb 2012 18:30:09 +0000 (14:30 -0400)]
releasing version 1.20
Joey Hess [Sun, 12 Feb 2012 18:23:47 +0000 (14:23 -0400)]
pristine-xz: Try --extreme too. While my corpus has no such xz files, Darren Salt points out that automake 1.11.2 has started using extreme mode. Closes: #658666
Joey Hess [Wed, 1 Feb 2012 15:03:14 +0000 (11:03 -0400)]
releasing version 1.19
Joey Hess [Tue, 31 Jan 2012 20:36:28 +0000 (16:36 -0400)]
releasing version 1.18
Joey Hess [Tue, 31 Jan 2012 20:13:21 +0000 (16:13 -0400)]
xz: try levels 6 and 9
Joey Hess [Mon, 9 Jan 2012 17:08:52 +0000 (13:08 -0400)]
added makefile
missed due to ignore
Joey Hess [Mon, 9 Jan 2012 17:04:45 +0000 (13:04 -0400)]
xz stuff
Joey Hess [Mon, 9 Jan 2012 16:20:59 +0000 (12:20 -0400)]
pristine-xz
works, at least minimally
Joey Hess [Mon, 9 Jan 2012 16:20:46 +0000 (12:20 -0400)]
refactor and fix a minor bug
Joey Hess [Mon, 9 Jan 2012 15:48:04 +0000 (11:48 -0400)]
releasing version 1.17
Joey Hess [Mon, 9 Jan 2012 15:42:52 +0000 (11:42 -0400)]
pristine-tar: Fail when the delta is excessively large, probably due to the tarball being compressed with something that tar x can auto-extract, but that pristine-tar does not support.
It would be cleaner to test the tarball's magic to see if it's a regular,
non-compressed tarball. But, there are a lot of historical tar-like
formats, so implementing magic for tar is hard. (And I don't use file(1)
in pristine-tar).
Anyway, this also catches any other failure that can result in a delta >=
the size of the input. Completely failing to get any of the input files
right could also make this happen, perhaps.
Joey Hess [Thu, 5 Jan 2012 01:47:22 +0000 (21:47 -0400)]
overrides needed due to auto-reject
Joey Hess [Thu, 5 Jan 2012 00:17:14 +0000 (20:17 -0400)]
releasing version 1.16
Joey Hess [Wed, 4 Jan 2012 23:56:29 +0000 (19:56 -0400)]
bugfix
Joey Hess [Wed, 4 Jan 2012 23:49:08 +0000 (19:49 -0400)]
add --suse-pbzip2
Joey Hess [Wed, 4 Jan 2012 23:28:54 +0000 (19:28 -0400)]
fix suse-bzip2
My hack job to remove the compressor changed its output (dunno how but it was
on byte 11 of the output file), so I am instead just copying in all of bzip2,
modified with suse's patch.
Joey Hess [Wed, 4 Jan 2012 22:24:51 +0000 (18:24 -0400)]
changelog
Joey Hess [Wed, 4 Jan 2012 22:09:09 +0000 (18:09 -0400)]
apply suse's maxlen patch
https://build.opensuse.org/package/view_file?file=bzip2-maxlen20.patch&package=bzip2&project=openSUSE%3AFactory&srcmd5=
3ee4cf959e98e3ca50a881d1cdc13570
Joey Hess [Wed, 4 Jan 2012 22:00:00 +0000 (18:00 -0400)]
Merge branch 'separate-suse'
Conflicts:
debian/copyright
zgz/pit/suse-bzip2/blocksort.c
Joey Hess [Wed, 4 Jan 2012 21:57:03 +0000 (17:57 -0400)]
revert commits trying to add suse support into old-bzip2
Joey Hess [Wed, 4 Jan 2012 21:53:57 +0000 (17:53 -0400)]
try --quirk suse
Joey Hess [Wed, 4 Jan 2012 21:45:11 +0000 (17:45 -0400)]
comment
Joey Hess [Wed, 4 Jan 2012 21:43:39 +0000 (17:43 -0400)]
licenses
Joey Hess [Wed, 4 Jan 2012 21:40:28 +0000 (17:40 -0400)]
ignores
Joey Hess [Wed, 4 Jan 2012 21:39:49 +0000 (17:39 -0400)]
forgot to add main
Joey Hess [Wed, 4 Jan 2012 21:39:33 +0000 (17:39 -0400)]
run external program from zgz
Joey Hess [Wed, 4 Jan 2012 21:21:49 +0000 (17:21 -0400)]
got it to compile standalone
Joey Hess [Wed, 4 Jan 2012 21:21:42 +0000 (17:21 -0400)]
moved to pit
Joey Hess [Sat, 8 Oct 2011 21:58:37 +0000 (17:58 -0400)]
releasing version 1.15
Joey Hess [Sun, 18 Sep 2011 02:03:31 +0000 (22:03 -0400)]
'pristine-tar list' displays a list of tarballs that are available for checkout.
Joey Hess [Mon, 12 Sep 2011 19:57:31 +0000 (15:57 -0400)]
separate copy of bzip2 1.0.5 for suse quirk
Doesn't work yet. Making two copies of bzip2 live in one program would
be hard. Might be better to have a helper program?
Joey Hess [Mon, 12 Sep 2011 20:10:05 +0000 (16:10 -0400)]
update to reflect some newer code
Joey Hess [Mon, 12 Sep 2011 20:06:02 +0000 (16:06 -0400)]
add --quirk suse, which affects --old-bzip2 mode to inexactly replicate suse bzip2
Suse's bzip2 is modifed for some reason to use a huffman table of 17 bytes.
While suse has a newer bzip2 than the version in old-bzip2, it was most
expedient to keep only one copy of bzip2 in zgz, and parameterize it to
emulate suse's patched newer version. This is done by using the blocksort
code from bzip 1.0.5.
This does not 100% replicate the output of suse's bzip2, but the
differences seem to just be in some preliminary header info, and are
quite small. So this will be combined with using xdelta.
Joey Hess [Mon, 12 Sep 2011 19:18:36 +0000 (15:18 -0400)]
rename entry point
Joey Hess [Mon, 12 Sep 2011 19:14:08 +0000 (15:14 -0400)]
adjust to use UInt16 for block in EState
This is a bit weird, but the old-bzip2 used a UInt16 rather than a UChar
in the data structire, and the new blocksort code seems to work fine
that way, which avoids needing two data structures.
Joey Hess [Mon, 12 Sep 2011 19:12:37 +0000 (15:12 -0400)]
added blocksort.c from bzip 1.0.5
Joey Hess [Mon, 12 Sep 2011 18:43:39 +0000 (14:43 -0400)]
-Wall clean fixes with new gcc
Remove unused variables. Set a few uninitialized variables.
Joey Hess [Thu, 8 Sep 2011 18:28:40 +0000 (14:28 -0400)]
Propigate nonzero exit status from doit_redir. Closes: #600724
Joey Hess [Sun, 7 Aug 2011 12:53:38 +0000 (08:53 -0400)]
Fix Vcs-Browser url. Closes: #636926
Joey Hess [Sun, 7 Aug 2011 01:11:56 +0000 (21:11 -0400)]
releasing version 1.14
Joey Hess [Sun, 7 Aug 2011 01:02:59 +0000 (21:02 -0400)]
Add support for gzip --rsyncable output produced by gzip 1.4.
This differs from prior --rsyncable output, which was made by a debian
specific patch and used a different rsync window size, and reset huffman
encodings less often.
Joey Hess [Thu, 7 Jul 2011 16:17:15 +0000 (12:17 -0400)]
Clarify man page.
Joey Hess [Fri, 25 Mar 2011 04:53:43 +0000 (00:53 -0400)]
improve program name in messages
Joey Hess [Tue, 15 Mar 2011 04:43:26 +0000 (00:43 -0400)]
also try with -1 in perl mode
This really fixes the bug.
Joey Hess [Tue, 15 Mar 2011 04:43:06 +0000 (00:43 -0400)]
tweak header info for perl quick mode
avoids small xdelta
Joey Hess [Tue, 15 Mar 2011 04:36:24 +0000 (00:36 -0400)]
release prep
Faidon Liambotis [Mon, 14 Mar 2011 23:45:23 +0000 (01:45 +0200)]
pristine-tar: handle properly Perl gzips
Perl's Compress::Raw::Zlib interfaces directly with zlib and
apparently is the only implementation out there which tunes a very
specific parameter of zlib, memLevel, to 9, instead of 8 which is
the default.
The module is used, among others, by Compress::Gzip which in turn is
used by IO::Zlib.
It was found on the real world on tarballs generated by Perl 5.10's
Module::Build (cf. #618284)
Joey Hess [Sun, 6 Feb 2011 04:02:34 +0000 (00:02 -0400)]
releasing version 1.12
Joey Hess [Thu, 13 Jan 2011 22:57:34 +0000 (18:57 -0400)]
DEP5
Joey Hess [Sat, 20 Nov 2010 20:49:26 +0000 (16:49 -0400)]
Fix gzg building with --as-needed. Closes: #604030
Joey Hess [Fri, 12 Nov 2010 14:31:35 +0000 (10:31 -0400)]
Merge branch 'master' of ssh://git.kitenet.net/srv/git/pristine-tar
Joey Hess [Fri, 12 Nov 2010 14:29:35 +0000 (10:29 -0400)]
releasing version 1.11
Joey Hess [Fri, 12 Nov 2010 01:14:25 +0000 (21:14 -0400)]
bugfix
Joey Hess [Fri, 12 Nov 2010 01:05:45 +0000 (21:05 -0400)]
Add workaround for Debian's tar changing its output for tarballs containing filenames exactly 100 bytes long. Closes: #602907 (Needs a tar with #603231 fixed in order to work.)
Joey Hess [Thu, 19 Aug 2010 20:41:24 +0000 (16:41 -0400)]
Lintian fixes.
Joey Hess [Wed, 18 Aug 2010 16:35:24 +0000 (12:35 -0400)]
found a second bzip2 that cannot be reproduced
Joey Hess [Wed, 18 Aug 2010 00:35:03 +0000 (20:35 -0400)]
typo
Joey Hess [Wed, 18 Aug 2010 00:33:13 +0000 (20:33 -0400)]
stupid makemaker..
Joey Hess [Wed, 18 Aug 2010 00:30:55 +0000 (20:30 -0400)]
update
Joey Hess [Tue, 17 Aug 2010 21:30:50 +0000 (17:30 -0400)]
Remove environment variables used by tar, gz, and bzip2, to avoid local environment settings possibly breaking things. Closes: #498760 (probably; thanks Ralph Lange for analysis)
Joey Hess [Sat, 24 Jul 2010 05:26:11 +0000 (01:26 -0400)]
update ignores
Joey Hess [Sat, 24 Jul 2010 05:24:36 +0000 (01:24 -0400)]
copyright update for file move
Joey Hess [Sat, 24 Jul 2010 05:23:15 +0000 (01:23 -0400)]
move zgz's gzip bits into a subdir
Joey Hess [Sat, 24 Jul 2010 05:13:15 +0000 (01:13 -0400)]
minor
Joey Hess [Sat, 24 Jul 2010 05:02:51 +0000 (01:02 -0400)]
refactored file format magic numbers code
Joey Hess [Sat, 24 Jul 2010 04:21:30 +0000 (00:21 -0400)]
simplify
Joey Hess [Sat, 24 Jul 2010 00:57:51 +0000 (20:57 -0400)]
modularize the delta writing code
This will make it easy to add support for flat deltas, etc.
Joey Hess [Sat, 24 Jul 2010 00:27:04 +0000 (20:27 -0400)]
pristine-tar commit takes varying number of parameters, fix checking
Joey Hess [Sat, 24 Jul 2010 00:21:45 +0000 (20:21 -0400)]
updates
Joey Hess [Sat, 24 Jul 2010 00:19:18 +0000 (20:19 -0400)]
nasty MakeMaker conversion for perl library support
Had to move zgz.pod to subdir because MakeMaker insisted in installing it
otherwise.
Joey Hess [Fri, 23 Jul 2010 23:42:40 +0000 (19:42 -0400)]
convert pristine-tar to use Delta library
Joey Hess [Fri, 23 Jul 2010 23:17:09 +0000 (19:17 -0400)]
pristine-gz gengz: Bugfix: Always remove uncompressed input file.
Joey Hess [Fri, 23 Jul 2010 23:13:53 +0000 (19:13 -0400)]
make pristine-gz use Delta library
Joey Hess [Fri, 23 Jul 2010 23:01:23 +0000 (19:01 -0400)]
factored out generic delta file reading/writing/checking code
converted pristine-bz2 to use it so far