On 9 Jul 2022, Rob Browning said:
> Quite a bit has changed since 0.32, and before we start merging some of
> Johannes' even more substantial changes, let's release what we have.
>
>
https://github.com/bup/bup/tree/master
>
https://salsa.debian.org/rlb/bup/-/commits/master
>
> Among other things, this release will be notable in that it's the first
> one without support for python 2. At the moment, we don't enforce the
> limit on the minor version (though I've been considering adding that),
> but we do assume/require 3.7+.
>
> Also be aware that the configuration process has changed (along with the
> change of bup from a #! script to a binary) to require/respect
> BUP_PYTHON_CONFIG rather than PYTHON, if you need to select a particular
> version, e.g.:
>
> BUP_PYTHON_CONFIG=/usr/bin/python3.9-config ./configure
>
> instead of
>
> PYTHON=/usr/bin/python3.9 ./configure
OK so I just tried this with commit
36fce270ed41330d1cf4ada5dda17c1b816f677d (HEAD of master right now). I
see pylint failures (with Python 3.10.4 and pylint 2.12.2, atop xfs:
upgrading pytest to 2.14 drops me into a nightmare of python packaging
problems involving an inability to find the packaging package, *even
when trying to install the packaging package*, which I don't have the
time or inclination to track down right now):
************* Module lib.bup.helpers
lib/bup/helpers.py:859:19: R1714: Consider merging these comparisons with "in" to 'ex.errno in (errno.EINVAL, errno.ENODEV)' (consider-using-in)
************* Module lib.bup.metadata
lib/bup/metadata.py:576:17: R1714: Consider merging these comparisons with "in" to 'e.errno in (errno.EPERM, errno.EOPNOTSUPP)' (consider-using-in)
lib/bup/metadata.py:698:23: R1714: Consider merging these comparisons with "in" to 'e.errno in (errno.EPERM, errno.EOPNOTSUPP)' (consider-using-in)
This halts make check. Doing as suggested lets the actual tests run.
Eventually test-save-restore-excludes fails:
Testing "index --exclude-rx '/foo/.' (dir content)" in /usr/src/bup/foo/test/ext/test-save-restore-excludes:
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:144 rm -rf src /usr/src/bup/foo/test/tmp/test-save-restore-excludes-CmFe40C/bup buprestore.tmp ok
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty shared Git repository in /usr/src/bup/foo/test/tmp/test-save-restore-excludes-CmFe40C/bup/
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:145 bup init ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:146 mkdir src ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:147 touch src/a ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:148 touch src/b ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:149 touch src/foo ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:150 mkdir src/sub ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:151 mkdir src/sub/foo ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:152 touch src/sub/foo/a ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:153 bup index -u src --exclude-rx /foo/. ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:154 bup save --strip -n bupdir src ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:155 bup restore -C buprestore.tmp /bupdir/latest/ ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:156 cd buprestore.tmp ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:156 find . ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:156 sort ok
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:157 exactly 2 arguments ok
Comparing:
.
--
.
./a
./b
./foo
./sub
./sub/foo
! /usr/src/bup/foo/test/ext/test-save-restore-excludes:157 '.' = '. ./a ./b ./foo ./sub ./sub/foo' FAILED
called from /usr/src/bup/foo/test/ext/test-save-restore-excludes:157 WVPASSEQ . .
./a
./b
./foo
./sub
./sub/foo
===================================================================================================== short test summary info =====================================================================================================
FAILED test/ext/test-save-restore-excludes::
=============================================================================== 1 failed, 135 passed, 7 skipped, 1 deselected in 1627.89s (0:27:07) ===============================================================================
My locale (except for LC_COLLATE) is en_GB, but forcing LANG and
LANGUAGE to C doesn't help.