]> git.michaelhowe.org Git - packages/b/bup.git/log
packages/b/bup.git
12 years agodebian/changelog: 0.25~rc3-1
Robert S. Edmonds [Tue, 24 Sep 2013 23:05:27 +0000 (19:05 -0400)]
debian/changelog: 0.25~rc3-1

12 years agodebian/gbp.conf: upstream changed their tag naming convention
Robert S. Edmonds [Tue, 24 Sep 2013 23:07:25 +0000 (19:07 -0400)]
debian/gbp.conf: upstream changed their tag naming convention

12 years agoMerge tag '0.25-rc3' into debian
Robert S. Edmonds [Tue, 24 Sep 2013 23:04:29 +0000 (19:04 -0400)]
Merge tag '0.25-rc3' into debian

0.25-rc3

Conflicts:
cmd/fuse-cmd.py
cmd/web-cmd.py
config/configure
config/configure.inc

12 years agoMove _helper.c's Python.h back up (now to the top), because Python.
Rob Browning [Mon, 23 Sep 2013 00:18:24 +0000 (19:18 -0500)]
Move _helper.c's Python.h back up (now to the top), because Python.

Move the Python.h include in _helper.c to the top because Python says
so:

  http://docs.python.org/2/c-api/intro.html#include-files

Though according to this, it's been fixed upstream:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=206805

Which might explain why I didn't see the problem here.

Thanks to Chandan Kumar <chandank.kumar@gmail.com> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoMove non-system includes after system includes in _helpers.c.
Rob Browning [Fri, 20 Sep 2013 18:33:02 +0000 (13:33 -0500)]
Move non-system includes after system includes in _helpers.c.

Having Python.h before assert.h was apparently causing trouble on
OpenBSD:

  _helpers.c: In function 'bup_xutime_ns':
  _helpers.c:842: warning: implicit declaration of function 'utimensat'
  _helpers.c:842: error: 'AT_FDCWD' undeclared (first use in this function)
  _helpers.c:842: error: (Each undeclared identifier is reported only once
  _helpers.c:842: error: for each function it appears in.)
  _helpers.c:843: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in this function)
  error: command 'cc' failed with exit status 1

...and moving the non-sytem includes lower is reasonable anyway.

Thanks to Ryan Hinton <iobass@email.com> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoconfigure: since the *BSDs have GNU make as gmake, look for that too.
Rob Browning [Fri, 20 Sep 2013 17:14:09 +0000 (12:14 -0500)]
configure: since the *BSDs have GNU make as gmake, look for that too.

Thanks to Ryan Hinton <iobass@email.com> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoIgnore unimplemented metadata record during read (_rec_tag_nfsv4_acl).
Rob Browning [Wed, 18 Sep 2013 17:20:28 +0000 (12:20 -0500)]
Ignore unimplemented metadata record during read (_rec_tag_nfsv4_acl).

Don't test for _rec_tag_nfsv4_acl and then try to call an
unimplemented method in Metadata.read().  Otherwise, if/when we do add
support, older versions of bup will choke on it.

Thanks to Alexander Barton <alex@barton.de> for pointing this out.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoQuash stat(2) st_rdev unless we're going to need it for mknod().
Rob Browning [Tue, 17 Sep 2013 01:47:28 +0000 (20:47 -0500)]
Quash stat(2) st_rdev unless we're going to need it for mknod().

On some platforms (i.e. kFreeBSD), the st_rdev value isn't completely
stable.  For example, given "date > foo; cp -a foo foo-2", the st_rdev
value may differ between the two files.

Since we only need the st_rdev value for the call to mknod() when
restoring character and block special files, set it to zero for
anything else.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agowrite_idx: make filename char* non-const (fixes python 2.6.6 compatibility).
Rob Browning [Tue, 17 Sep 2013 22:17:55 +0000 (17:17 -0500)]
write_idx: make filename char* non-const (fixes python 2.6.6 compatibility).

Thanks to Alexander Barton <alex@barton.de> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoMention --git-ids in bup split -h output sample commands.
Rob Browning [Tue, 17 Sep 2013 21:33:49 +0000 (16:33 -0500)]
Mention --git-ids in bup split -h output sample commands.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoUpdate bup split -h output (optspec) to distinguish between split "modes".
Gabriel Filion [Sun, 8 Sep 2013 03:26:16 +0000 (23:26 -0400)]
Update bup split -h output (optspec) to distinguish between split "modes".

Split it into three lines to clearly show that some modes don't fare
well with others.

Signed-off-by: Gabriel Filion <gabster@lelutin.ca>
[rlb@defaultvalue.org: adjust commit message.]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
12 years agoUpdate bup-split(1); document -d, clarify the split "modes", and reorganize.
Gabriel Filion [Sun, 8 Sep 2013 03:26:15 +0000 (23:26 -0400)]
Update bup-split(1); document -d, clarify the split "modes", and reorganize.

Update the synopsis, document the "-d DATE" option, and make a clearer
distinction between normal options and the options that select the
split "mode".

Signed-off-by: Gabriel Filion <gabster@lelutin.ca>
[rlb@defaultvalue.org: add dashes to seconds-since-epoch; adjust the
 MODES text a bit and move -b down; make a few other edits and adjust
 commit message.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoFix ./configure handling of OS_* for GNU/kFreeBSD.
Rob Browning [Tue, 17 Sep 2013 02:11:09 +0000 (21:11 -0500)]
Fix ./configure handling of OS_* for GNU/kFreeBSD.

Thanks to Robert Edmonds <edmonds@debian.org> for the initial report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoFix path ownership restoration problems on Cygwin.
Rob Browning [Sat, 14 Sep 2013 18:47:23 +0000 (13:47 -0500)]
Fix path ownership restoration problems on Cygwin.

It turns out that Cygwin won't allow you to chown() a path to an
unknown uid or gid, even when "root".

For now, make that a deferred error on Cygwin, rework the tests to
avoid it when possible, and disable the tests (on Cygwin) that require
it.

For the record, it appears that tar doesn't normally hit this problem
on Cygwin because it uses "geteuid() == 0" to detect super-user
status, which won't be true in the normal case, even if the user is an
administrator.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoTreat ENOSYS like EOPNOTSUPP in _add_posix1e_acl().
Rob Browning [Mon, 16 Sep 2013 21:47:53 +0000 (16:47 -0500)]
Treat ENOSYS like EOPNOTSUPP in _add_posix1e_acl().

Thanks to Robert Edmonds <edmonds@debian.org> for reporting the
relevant failure on a Debian kFreeBSD buildd.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoFix minor typo in Metadata.read() in metadata.py.
Rob Browning [Mon, 16 Sep 2013 18:07:15 +0000 (13:07 -0500)]
Fix minor typo in Metadata.read() in metadata.py.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoAlways fall back to socket()/bind() when os.mknod(...S_IFSOCK) fails.
Rob Browning [Mon, 16 Sep 2013 17:56:27 +0000 (12:56 -0500)]
Always fall back to socket()/bind() when os.mknod(...S_IFSOCK) fails.

Previously bup would use socket()/bind() instead of os.mknod(... |
stat.S_IFSOCK) on Cygwin, but this issue isn't Cygwin specific.
Remove the platform conditionalization, and fall back to
socket()/bind() any time mknod() fails with EINVAL.

Thanks to Robert Edmonds <edmonds@debian.org> for reporting the
relevant failure on a Debian kFreeBSD buildd.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoDon't try to load POSIX1e ACLs when the library isn't installed.
Rob Browning [Mon, 16 Sep 2013 17:55:12 +0000 (12:55 -0500)]
Don't try to load POSIX1e ACLs when the library isn't installed.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agobup-init.md: update after dropping automatic ~/.bup init.
Zoran Zaric [Tue, 13 Aug 2013 06:01:39 +0000 (08:01 +0200)]
bup-init.md: update after dropping automatic ~/.bup init.

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: adjust commit message; remove escape from
 BUP\_DIR after list discussion; remove additional "bup init" from
 README.md example.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoStop interleaving stream and mmap IO operations when writing the index.
Rob Browning [Fri, 23 Aug 2013 03:57:03 +0000 (22:57 -0500)]
Stop interleaving stream and mmap IO operations when writing the index.

Previously bup would write the index via a simultaneous combination of
stream operations and mmap writes to non-overlapping, but adjacent
regions of the same file.  This was causing index corruption in some
cases.

Instead, make an extra pass over the data in memory to precompute the
size of the final index section, which contains any 31+-bit offsets.
Then mmap and write the entire set of tables directly, avoiding the
need for simultaneous stream operations.

Reported-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Greg Troxel <gdt@lexort.com>
Reviewed-by: Greg Troxel <gdt@lexort.com>
12 years agodebian/gbp.conf: set upstream-tag
Robert S. Edmonds [Sun, 1 Sep 2013 19:10:28 +0000 (15:10 -0400)]
debian/gbp.conf: set upstream-tag

12 years agoMention tmp/review/ branches in HACKING.
Zoran Zaric [Wed, 28 Aug 2013 14:56:48 +0000 (16:56 +0200)]
Mention tmp/review/ branches in HACKING.

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: make minor wording changes.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agodebian/changelog: 0.25~rc2-3
Robert S. Edmonds [Sun, 1 Sep 2013 18:26:39 +0000 (14:26 -0400)]
debian/changelog: 0.25~rc2-3

12 years agodebian/control: add build-depends-indep on pandoc-data
Robert S. Edmonds [Sun, 1 Sep 2013 18:39:57 +0000 (14:39 -0400)]
debian/control: add build-depends-indep on pandoc-data

12 years agodebian/gen_version_py.sh: add "debian/" to the tag name
Robert S. Edmonds [Sun, 1 Sep 2013 18:25:45 +0000 (14:25 -0400)]
debian/gen_version_py.sh: add "debian/" to the tag name

12 years agodebian/control: use par2 only on !hurd-i386
Robert S. Edmonds [Sun, 1 Sep 2013 18:19:58 +0000 (14:19 -0400)]
debian/control: use par2 only on !hurd-i386

12 years agodebian/control: use python-pylibacl and python-pyxattr only on linux-any
Robert S. Edmonds [Sun, 1 Sep 2013 18:19:22 +0000 (14:19 -0400)]
debian/control: use python-pylibacl and python-pyxattr only on linux-any

12 years agoPreserve filesystem timestamps during "make install".
Christopher Meng [Sun, 25 Aug 2013 14:32:27 +0000 (10:32 -0400)]
Preserve filesystem timestamps during "make install".

A good idea regardless, and recommended by the Fedora and Debian
packaging guidelines.

From debian-policy:

  The rationale is that there is some information conveyed by knowing
  the age of the file, for example, you could recognize that some
  documentation is very old by looking at the modification time, so it
  would be nice if the modification time of the upstream source would
  be preserved.

It should also help prevent unnecessary backup churn after upgrades.

Signed-off-by: Christopher Meng <cickumqt@gmail.com>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Tested-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: adjust commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
12 years agoAdd -l and --human-readable options to "bup ls".
Kumar Appaiah [Sun, 25 Aug 2013 19:02:18 +0000 (15:02 -0400)]
Add -l and --human-readable options to "bup ls".

When -l is specified, include the size in bytes for each item.

When --human-readable is also specified, print sizes like 3.5K, 1.8G,
etc., instead of the exact byte count.

Signed-Off-By: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: adjust commit message; adjust newlines; squash
 two of Kumar's patches into this one.]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoAdd --human-readable option to "bup web".
Kumar Appaiah [Sun, 25 Aug 2013 19:02:16 +0000 (15:02 -0400)]
Add --human-readable option to "bup web".

When --human-readable is specified, print sizes like 3.5K, 1.8G,
etc., instead of the exact byte count.

Signed-Off-By: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: adjust commit message; squash two of Kumar's
 patches into this one.]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
12 years agosave-cmd.py: don't write an irrelevant and incomplete .bupm fragment.
Rob Browning [Sun, 25 Aug 2013 22:33:42 +0000 (17:33 -0500)]
save-cmd.py: don't write an irrelevant and incomplete .bupm fragment.

When finishing up (leaving) a directory and preparing to store its
related tree in the repository, don't write the pending .bupm (which
is still incomplete) to the pack if we know the directory already
exists in the repository (i.e. when we're not going to write it
either).

This problem was discovered when Zoran noticed that two consecutive
saves without an intervening index could produce a repository with an
unreferenced blob (according to git fsck).

Reported-by: Zoran Zaric <zz@zoranzaric.de>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agomain.py: forward SIGTSTP/SIGCONT so "C-z" will actually suspend everything.
Rob Browning [Fri, 23 Aug 2013 17:23:17 +0000 (12:23 -0500)]
main.py: forward SIGTSTP/SIGCONT so "C-z" will actually suspend everything.

Catch and forward SIGTSTP (as SIGSTOP) and SIGCONT to the subprocess
as we already do for SIGTERM and SIGINT so that the subprocess will
also suspend/resume.

This still leaves bup with potentially unexpected behavior since the
(detached) subprocess will never see a SIGSTOP delivered to the parent
(because SIGSTOP can't be intercepted and forwarded).  This is due to
the os.setsid() call that was originally introduced to support current
newliner arrangement (cf. b7a524ccb662c9ed3ebd786da0f45f459929ef45).

Thanks to Kalle for the report.

Reported-by: krichter722@aol.de
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agosplit-cmd.py: change -N to --noop (which actually exists) in error messages.
Gabriel Filion [Fri, 2 Aug 2013 20:31:03 +0000 (16:31 -0400)]
split-cmd.py: change -N to --noop (which actually exists) in error messages.

Signed-off-by: Gabriel Filion <gabster@lelutin.ca>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: adjusted commit message.]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
12 years agoREADME.md: add a "bup init" step to "Using bup" since we killed auto-init.
Rob Browning [Sat, 17 Aug 2013 19:59:45 +0000 (14:59 -0500)]
README.md: add a "bup init" step to "Using bup" since we killed auto-init.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agogit.py: don't automatically initialize ~/.bup if it doesn't exist.
Zoran Zaric [Mon, 12 Aug 2013 14:20:12 +0000 (16:20 +0200)]
git.py: don't automatically initialize ~/.bup if it doesn't exist.

bup had a convenience feature where commands would automagically
initialize a repo in ~/.bup if it didn't exist and no other BUP_DIR
was given.

This had the odd effect that when one forgot to specify BUP_DIR, a bup
repo would be initialized in ~/.bup even though only a browsing
command was used.

This patch drops that behaviour.  Now all repositories must be
explicitly intiialized via "bup init".

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: edit commit message; fix test ("set +e" during
 init run).]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agofuse-cmd.py: match the style of the import failure message in web-cmd.py.
Rob Browning [Sat, 17 Aug 2013 19:14:42 +0000 (14:14 -0500)]
fuse-cmd.py: match the style of the import failure message in web-cmd.py.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoweb-cmd.py: accommodate HTTPServer s/_socket/_sockets/ in newer versions.
Rob Browning [Sat, 17 Aug 2013 19:07:10 +0000 (14:07 -0500)]
web-cmd.py: accommodate HTTPServer s/_socket/_sockets/ in newer versions.

Newer versions of tornado changed HTTPServer._socket to
HTTPServer._sockets, with slightly different semantics.  Handle both.

Thanks to Andy Somerville <andy.somerville@gmail.com> for reporting
the problem and proposing an initial patch.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoweb-cmd.py: add a tornado import guard like the one for fuse in fuse-cmd.py.
Robert S. Edmonds [Sat, 10 Aug 2013 20:01:57 +0000 (16:01 -0400)]
web-cmd.py: add a tornado import guard like the one for fuse in fuse-cmd.py.

In Debian, we replace the embedded copy of tornado with a Recommends on
the python-tornado package. Print a nice error message instead of a
backtrace if the user doesn't have it installed.

Signed-off-by: Robert S. Edmonds <edmonds@debian.org>
[rlb@defaultvalue.org: edited commit and error message]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agotest-meta.sh: use the more portable "touch -t" instead of "touch -d".
Rob Browning [Fri, 16 Aug 2013 01:23:20 +0000 (20:23 -0500)]
test-meta.sh: use the more portable "touch -t" instead of "touch -d".

Thanks to Greg Troxel <gdt@work.lexort.com> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoDESIGN: fix typo.
Rob Browning [Sun, 11 Aug 2013 20:05:41 +0000 (15:05 -0500)]
DESIGN: fix typo.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years ago_helpers.c: be careful about memory alignment in bloom operations.
Julien Cristau [Thu, 8 Aug 2013 22:30:26 +0000 (18:30 -0400)]
_helpers.c: be careful about memory alignment in bloom operations.

Debian (Bug#641488) discovered via the bloom test that bup crashes on
sparc because it's trying to access unaligned memory.  Fix that.

Signed-off-by: Julien Cristau <jcristau@debian.org>
[rlb@defaultvalue.org: adjust commit message.]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
12 years agodebian/changelog: 0.25~rc2-2
Robert S. Edmonds [Sat, 10 Aug 2013 20:19:22 +0000 (16:19 -0400)]
debian/changelog: 0.25~rc2-2

12 years agodebian/control: bup-doc: Breaks + Replaces on bup << 0.25~rc2-2~
Robert S. Edmonds [Sat, 10 Aug 2013 20:26:35 +0000 (16:26 -0400)]
debian/control: bup-doc: Breaks + Replaces on bup << 0.25~rc2-2~

documentation was moved from bup to bup-doc.

12 years agodebian/gbp.conf: new
Robert S. Edmonds [Sat, 10 Aug 2013 20:20:14 +0000 (16:20 -0400)]
debian/gbp.conf: new

12 years agocmd/fuse: tweak the wording of the import guard error message
Robert S. Edmonds [Sat, 10 Aug 2013 20:04:16 +0000 (16:04 -0400)]
cmd/fuse: tweak the wording of the import guard error message

"python-fuse" is not quite correct, since this is confusingly what Debian calls
(in order to conform to Debian Python package naming policy) the upstream
package actually called "fuse-python". Other distros do refer to the package as
fuse-python.

Tweak the wording slightly in order to avoid this ambiguity, and also to make it
congruous to the wording of a similar import guard I used in cmd/web.

Signed-off-by: Robert S. Edmonds <edmonds@debian.org>
12 years agocmd/web: add an import guard like the one in cmd/fuse
Robert S. Edmonds [Sat, 10 Aug 2013 19:59:37 +0000 (15:59 -0400)]
cmd/web: add an import guard like the one in cmd/fuse

In Debian, we replace the embedded copy of tornado with a Recommends on
the python-tornado package. Print a nice error message instead of a
backtrace if the user doesn't have it installed.

Signed-off-by: Robert S. Edmonds <edmonds@debian.org>
12 years agodebian/: fold bup-fuse and bup-web back into the bup package
Robert S. Edmonds [Fri, 9 Aug 2013 02:42:16 +0000 (22:42 -0400)]
debian/: fold bup-fuse and bup-web back into the bup package

12 years agoDocumentation/bup-tag.md: fix spelling error "retreive"
Robert S. Edmonds [Fri, 9 Aug 2013 01:12:48 +0000 (21:12 -0400)]
Documentation/bup-tag.md: fix spelling error "retreive"

Signed-off-by: Robert S. Edmonds <edmonds@debian.org>
Reviewed-by Zoran Zaric <zz@zoranzaric.de>

12 years agoSkip test_handling_of_incorrect_existing_linux_xattrs() when under fakeroot.
Robert S. Edmonds [Fri, 9 Aug 2013 00:31:38 +0000 (20:31 -0400)]
Skip test_handling_of_incorrect_existing_linux_xattrs() when under fakeroot.

Don't try to do a loopback mount when running under fakeroot ("mount:
only root can do that").

Signed-off-by: Robert S. Edmonds <edmonds@debian.org>
[rlb@defaultvalue.org: adjust commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
12 years agot/compare-trees: check rsync capability support correctly.
Rob Browning [Sun, 4 Aug 2013 18:39:55 +0000 (13:39 -0500)]
t/compare-trees: check rsync capability support correctly.

Handle older versions of rsync (where nothing was printed), and for
newer versions, check for "no FOO" rather than "FOO", since FOO will
always be listed one way or the other.

Handle ACL and xattr support independently.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
12 years agoconfig/configure: ignore utimensat on GNU/kFreeBSD.
Gonéri Le Bouder [Thu, 8 Aug 2013 22:30:28 +0000 (18:30 -0400)]
config/configure: ignore utimensat on GNU/kFreeBSD.

Even though we'll find it, it won't work.

See also:

  http://bugs.debian.org/651104
  http://lists.debian.org/debian-bsd/2011/03/msg00063.html

Signed-off-by: Gonéri Le Bouder <goneri@rulezlan.org>
[rlb@defaultvalue.org: adjust indentation, comments, and message.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agodebian/changelog: 0.25~rc2-1
Robert S. Edmonds [Fri, 9 Aug 2013 01:42:56 +0000 (21:42 -0400)]
debian/changelog: 0.25~rc2-1

12 years agodebian/rules: remove bup-fuse, bup-web files from main bup package
Robert S. Edmonds [Fri, 9 Aug 2013 01:50:52 +0000 (21:50 -0400)]
debian/rules: remove bup-fuse, bup-web files from main bup package

12 years agodebian/rules: remove embedded python-tornado copy
Robert S. Edmonds [Fri, 9 Aug 2013 01:45:54 +0000 (21:45 -0400)]
debian/rules: remove embedded python-tornado copy

12 years agodebian/: build documentation
Robert S. Edmonds [Fri, 9 Aug 2013 01:30:48 +0000 (21:30 -0400)]
debian/: build documentation

12 years agoMakefile: don't build documentation by default
Robert S. Edmonds [Fri, 9 Aug 2013 01:28:59 +0000 (21:28 -0400)]
Makefile: don't build documentation by default

12 years agodebian/control: build-depend on dctrl-tools
Robert S. Edmonds [Fri, 9 Aug 2013 01:26:00 +0000 (21:26 -0400)]
debian/control: build-depend on dctrl-tools

12 years agoDocumentation/bup-tag.md: fix spelling error "retreive"
Robert S. Edmonds [Fri, 9 Aug 2013 01:11:18 +0000 (21:11 -0400)]
Documentation/bup-tag.md: fix spelling error "retreive"

12 years agodebian/control: update vcs links
Robert S. Edmonds [Fri, 9 Aug 2013 01:09:30 +0000 (21:09 -0400)]
debian/control: update vcs links

fixes:

I: bup source: vcs-field-not-canonical http://git.debian.org/?p=collab-maint/bup.git;a=shortlog;h=refs/heads/debian http://anonscm.debian.org/gitweb/?p=collab-maint/bup.git;a=shortlog;h=refs/heads/debian

I: bup source: vcs-field-not-canonical git://git.debian.org/collab-maint/bup.git git://anonscm.debian.org/collab-maint/bup.git

12 years agodebian/copyright: update debian packaging copyright
Robert S. Edmonds [Fri, 9 Aug 2013 01:06:45 +0000 (21:06 -0400)]
debian/copyright: update debian packaging copyright

12 years agodebian/control: remove ${python:Depends} from bup-fuse, bup-web
Robert S. Edmonds [Fri, 9 Aug 2013 01:06:06 +0000 (21:06 -0400)]
debian/control: remove ${python:Depends} from bup-fuse, bup-web

they are not python module packages

12 years agodebian/bup.install: new
Robert S. Edmonds [Fri, 9 Aug 2013 00:45:09 +0000 (20:45 -0400)]
debian/bup.install: new

12 years agodebian/bup-{fuse,web}.install: fix these, these were totally broken
Robert S. Edmonds [Fri, 9 Aug 2013 00:41:33 +0000 (20:41 -0400)]
debian/bup-{fuse,web}.install: fix these, these were totally broken

12 years agodebian/menu: remove
Robert S. Edmonds [Fri, 9 Aug 2013 00:38:52 +0000 (20:38 -0400)]
debian/menu: remove

fixes:

W: bup: menu-command-not-in-package usr/share/menu/bup:2 usr/bin/bup

12 years agodebian/control: bump standards-version
Robert S. Edmonds [Fri, 9 Aug 2013 00:38:31 +0000 (20:38 -0400)]
debian/control: bump standards-version

fixes:

W: bup source: out-of-date-standards-version 3.9.3 (current is 3.9.4)

12 years agodebian/control: add direct python dependency for bup-fuse, bup-web
Robert S. Edmonds [Fri, 9 Aug 2013 00:37:58 +0000 (20:37 -0400)]
debian/control: add direct python dependency for bup-fuse, bup-web

fixes:

E: bup-fuse: python-script-but-no-python-dep usr/lib/bup/cmd/bup-web
E: bup-web: python-script-but-no-python-dep usr/lib/bup/cmd/bup-fuse

12 years agodebian/control: put bup-doc in Section: doc
Robert S. Edmonds [Fri, 9 Aug 2013 00:37:14 +0000 (20:37 -0400)]
debian/control: put bup-doc in Section: doc

fixes "W: bup-doc: wrong-section-according-to-package-name bup-doc => doc"

12 years agotmetadata.py: skip test_handling_of_incorrect_existing_linux_xattrs() when running...
Robert S. Edmonds [Fri, 9 Aug 2013 00:28:39 +0000 (20:28 -0400)]
tmetadata.py: skip test_handling_of_incorrect_existing_linux_xattrs() when running under fakeroot

it's not possible to do a loopback mount when running under fakeroot
("mount: only root can do that").

12 years agodebian/rules: don't bother with --parallel
Robert S. Edmonds [Fri, 9 Aug 2013 00:15:23 +0000 (20:15 -0400)]
debian/rules: don't bother with --parallel

12 years agodebian/bup.install: remove
Robert S. Edmonds [Fri, 9 Aug 2013 00:13:57 +0000 (20:13 -0400)]
debian/bup.install: remove

12 years agodebian/control: build-depend on par2
Robert S. Edmonds [Fri, 9 Aug 2013 00:13:21 +0000 (20:13 -0400)]
debian/control: build-depend on par2

12 years agoRevert "depend on external tornado"
Robert S. Edmonds [Fri, 9 Aug 2013 00:10:04 +0000 (20:10 -0400)]
Revert "depend on external tornado"

This reverts commit f5e4ddf49be6f8b0f33bdf40596200a0aa9670e7.

Conflicts:
debian/control

12 years agodebian/changelog: 0.25~rc2-1
Robert S. Edmonds [Fri, 9 Aug 2013 00:04:52 +0000 (20:04 -0400)]
debian/changelog: 0.25~rc2-1

12 years agodebian/: split out documentation into bup-doc package
Robert S. Edmonds [Thu, 8 Aug 2013 23:55:18 +0000 (19:55 -0400)]
debian/: split out documentation into bup-doc package

12 years agoactually, generate lib/bup/_version.py ourselves
Robert S. Edmonds [Thu, 8 Aug 2013 23:53:08 +0000 (19:53 -0400)]
actually, generate lib/bup/_version.py ourselves

12 years agodebian/control: depend on python-pylibacl and python-pyxattr
Robert S. Edmonds [Thu, 8 Aug 2013 23:14:02 +0000 (19:14 -0400)]
debian/control: depend on python-pylibacl and python-pyxattr

12 years agodebian/control: simplify git dependency
Robert S. Edmonds [Thu, 8 Aug 2013 23:12:17 +0000 (19:12 -0400)]
debian/control: simplify git dependency

oldstable now has git 1:1.7.2.5-3.

12 years agodebian/control: promote par2 from Recommends to Depends
Robert S. Edmonds [Thu, 8 Aug 2013 23:10:34 +0000 (19:10 -0400)]
debian/control: promote par2 from Recommends to Depends

12 years agodebian/: split out bup-fuse and bup-web commands into their own packages
Robert S. Edmonds [Thu, 8 Aug 2013 23:08:16 +0000 (19:08 -0400)]
debian/: split out bup-fuse and bup-web commands into their own packages

12 years agodebian/: try to fix _version.py handling
Robert S. Edmonds [Thu, 8 Aug 2013 22:44:34 +0000 (18:44 -0400)]
debian/: try to fix _version.py handling

12 years agoMerge branch 'master' into debian
Robert S. Edmonds [Thu, 8 Aug 2013 22:03:42 +0000 (18:03 -0400)]
Merge branch 'master' into debian

Conflicts:
Makefile

12 years ago_apply_linux_attr_rec: treat ENOSYS like EOPNOTSUPP (seen via sshfs).
Rob Browning [Wed, 31 Jul 2013 16:34:29 +0000 (11:34 -0500)]
_apply_linux_attr_rec: treat ENOSYS like EOPNOTSUPP (seen via sshfs).

After reports that set_linux_file_attr() produces ENOSYS on sshfs,
raise raise ApplyError for ENOSYS too.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years ago_create_via_common_rec: treat rmdir() EEXIST like ENOTEMPTY.
Rob Browning [Wed, 31 Jul 2013 16:32:17 +0000 (11:32 -0500)]
_create_via_common_rec: treat rmdir() EEXIST like ENOTEMPTY.

See rmdir(2):

       ENOTEMPTY
              pathname contains entries other than .  and ..  ; or,
              pathname has ..  as its final component.  POSIX.1-2001
              also allows EEXIST for this condition.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoCurrently bup only indexes physical parent paths; adjust tests.
Zoran Zaric [Mon, 29 Jul 2013 17:23:10 +0000 (19:23 +0200)]
Currently bup only indexes physical parent paths; adjust tests.

Fix tests that fail on systems where components of the parent path are
symlinks (like /tmp on OS X).  i.e. if you run:

  bup index /x/y/z

bup might actually store

  /a/z...

if y is a symlink to a.  See index-cmd.py and index.reduce_paths().

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: handle test.sh fix differently; add realpath();
 adjust commit message.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoMakefile: add any environmental CFLAGS to the end of the effective CFLAGS.
Rob Browning [Fri, 5 Jul 2013 17:06:16 +0000 (12:06 -0500)]
Makefile: add any environmental CFLAGS to the end of the effective CFLAGS.

For now, just do the simplest thing.

Thanks to Greg Troxel <gdt@ir.bbn.com> for reporting the issue.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoCompletely disable ACL support on OS X for now.
Rob Browning [Thu, 4 Jul 2013 20:32:07 +0000 (15:32 -0500)]
Completely disable ACL support on OS X for now.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoconfig/configure: add and use bup_find_prog; remove unused MF_PATH_INCLUDEs.
Rob Browning [Thu, 4 Jul 2013 19:12:22 +0000 (14:12 -0500)]
config/configure: add and use bup_find_prog; remove unused MF_PATH_INCLUDEs.

Pull all the common program search code into bup_find_prog() and use
it everywhere.  This also makes configure's output a bit more
consistent in style/content.

Make it obvious that at the moment bup doesn't pay any attention to a
PYTHON or GIT environment variable value. i.e. bup currently ignores a
setting like PYTHON=python2.7.

Bup also doesn't use MF_PATH_INCLUDE settings yet, so remove them.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agogit.py: flush idx_map before close so FILE* operations will see changes.
Rob Browning [Sat, 8 Jun 2013 15:25:33 +0000 (10:25 -0500)]
git.py: flush idx_map before close so FILE* operations will see changes.

Flush idx_map (msync()) before closing it, since it doesn't look like
POSIX guarantees that a matching FILE* (i.e. idx_f) will see the
parallel changes if we don't.

From the original report:

  After `bup save`, `git fsck` would show messages like
  "Packfile index for %s SHA1 mismatch"
  This indicated a bad trailing checksum on the pack index file.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reported-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
Reviewed-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
Tested-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
12 years agoFix completely broken invocations of t/root-status.
Rob Browning [Fri, 7 Jun 2013 05:22:58 +0000 (00:22 -0500)]
Fix completely broken invocations of t/root-status.

No idea what I was thinking.

Thanks to Sascha Silbe <sascha-ml-reply-to-2013-2@silbe.org> for the
report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoSkip the large bloom filter test if mmap fails on 32-bit archtectures.
Rob Browning [Sat, 25 May 2013 20:25:11 +0000 (15:25 -0500)]
Skip the large bloom filter test if mmap fails on 32-bit archtectures.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agot/test.sh: skip two "tree SHA1 didn't change" tests on Cygwin for now.
Rob Browning [Mon, 27 May 2013 16:51:23 +0000 (11:51 -0500)]
t/test.sh: skip two "tree SHA1 didn't change" tests on Cygwin for now.

Apparently Cygwin has some unusual behaviors with respect to access
times, so disable these two tests for now.

Possibly related: http://cygwin.com/ml/cygwin/2007-06/msg00436.html

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoREADME.md: add Cygwin dependencies.
Rob Browning [Mon, 27 May 2013 16:35:07 +0000 (11:35 -0500)]
README.md: add Cygwin dependencies.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agot/compare-trees: don't check ACLs on Cygwin (no support).
Rob Browning [Mon, 27 May 2013 16:15:40 +0000 (11:15 -0500)]
t/compare-trees: don't check ACLs on Cygwin (no support).

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoRemove lib.sh actually-root in favor of t/root-status.
Rob Browning [Sun, 26 May 2013 17:16:40 +0000 (12:16 -0500)]
Remove lib.sh actually-root in favor of t/root-status.

Create a t/root-status command that outputs root, fake, or none and
that uses the same cross-platform logic as helpers.py is_superuser().
Use it everywhere.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agometadata.py: use socket() instead of mknod(...IF_SOCK) on Cygwin.
Rob Browning [Sun, 26 May 2013 16:05:56 +0000 (11:05 -0500)]
metadata.py: use socket() instead of mknod(...IF_SOCK) on Cygwin.

Apparently os.mknod(...IF_SOCK) fails on Cygwin, but our t/mksock tool
(which uses socket()) works just fine, so use that in
_create_via_common_rec() when on Cygwin.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoUse sys.platform instead of platform.system().
Rob Browning [Mon, 27 May 2013 15:27:51 +0000 (10:27 -0500)]
Use sys.platform instead of platform.system().

If nothing else, the former is computed at compile time, and so should
be more efficient.  Use the recommended "startswith()" idiom.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agometa-cmd.py: mention --list in the invocation summary.
Rob Browning [Mon, 27 May 2013 17:26:30 +0000 (12:26 -0500)]
meta-cmd.py: mention --list in the invocation summary.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoREADME.md: describe mmap problems with limited address spaces.
Rob Browning [Sat, 25 May 2013 21:24:58 +0000 (16:24 -0500)]
README.md: describe mmap problems with limited address spaces.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
12 years agoCatch errors when restoring Linux attrs into xfs or btrfs
Yung-Chin Oei [Mon, 15 Apr 2013 14:34:08 +0000 (15:34 +0100)]
Catch errors when restoring Linux attrs into xfs or btrfs

Both xfs and btrfs turn out to return EOPNOTSUPP, rather than ENOTTY,
when we try to apply Linux attrs that they do not support.  This patch
improves matters in that it ensures we can restore into these file
systems without crashing, but does not quite address all issues yet:

- if any of the attributes we try to apply is not supported, none of
  them will be applied to the file at all
- the user will typically drown in error output; eg. for a backup
  originating from an ext4 file system, we can expect endless error
  output relating to the extents-flag not being supported on xfs/btrfs

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
12 years agoDocumentation: replace ~/.bup with $BUP_DIR in bup-index.md and bup-save.md.
Gabriel Filion [Tue, 14 May 2013 06:53:05 +0000 (02:53 -0400)]
Documentation: replace ~/.bup with $BUP_DIR in bup-index.md and bup-save.md.

When one is not using the default bupdir placement, then those files
aren't found inside ~/.bup, but wherever "-d /path.." or $BUP_DIR are
pointing to.

Thanks to krichter722@aol.de for mentioning this.

Signed-off-by: Gabriel Filion <gabster@lelutin.ca>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>