Bup: Difference between revisions

From miki
Jump to navigation Jump to search
Line 32: Line 32:
Houston, we have a problem. We can reproduce as follows:
Houston, we have a problem. We can reproduce as follows:
<source lang=bash>
<source lang=bash>
cat libintel.py
cat bup_intl_issue.py
# import posix1e; # From package pylibacl
# import posix1e; # From package pylibacl
python libintel.py
python bup_intl_issue.py
# /opt/bin/python2.7: symbol 'libintl_gettext': can't resolve symbol
# Traceback (most recent call last):
# File "bup_intl_issue.py", line 1, in <module>
# import posix1e;
# ImportError: unknown dlopen() error
</source>
We can fix the issue using the <code>LD_PRELOAD</code> trick though:
<source lang="bash">
LD_PRELOAD=/opt/lib/libintl.so python2.7 bup_intl_issue.py
</source>
</source>

Revision as of 00:30, 30 April 2017

References

Bup reviews:

Also details how to setup snapshot on Windows using vscsc to make consistent backups.
Someone commented that par2 should be replaced by zfec.

Install on Lacie-Cloudbox

git clone https://github.com/bup/bup
ipkg install attr libacl
ipkg install python27 py27-tornado py27-pip
which python
which python2
# optware python only available as "python2", and pip as "pip2.7"
pip2.7 install fuse
pip2.7 install xattr libacl
# error: /opt/local/lib/python2.5/site-packages (in --site-dirs) is not on sys.path
export PYTHONPATH=/opt/local/lib/python2.5/site-packages
# see https://forum.qnap.com/viewtopic.php?t=73608

pip2.7 install pyxattr pylibacl       # Do NOT install xattr

export PYTHON=/opt/bin/python2        # To avoid using /usr/bin/python, see bup doc.
make
make test

Houston, we have a problem. We can reproduce as follows:

cat bup_intl_issue.py
# import posix1e;           # From package pylibacl
python bup_intl_issue.py
# /opt/bin/python2.7: symbol 'libintl_gettext': can't resolve symbol
# Traceback (most recent call last):
#   File "bup_intl_issue.py", line 1, in <module>
#     import posix1e;
# ImportError: unknown dlopen() error

We can fix the issue using the LD_PRELOAD trick though:

LD_PRELOAD=/opt/lib/libintl.so python2.7 bup_intl_issue.py