Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging #5

Open
anarchotaoist opened this issue May 2, 2020 · 6 comments
Open

Packaging #5

anarchotaoist opened this issue May 2, 2020 · 6 comments

Comments

@anarchotaoist
Copy link

Hello!
Bup is not in the new Ubuntu 20.04 packaging archive.
Is it possible to upload to Ubuntu or package bup as a Flatpak etc?
Thanks!

@Nick222
Copy link

Nick222 commented Jul 3, 2020

Good question...

@rlbdv
Copy link
Member

rlbdv commented Jul 5, 2020

That might be because we don't yet officially support Python 3, but we should be close. The current work is in the tmp/proposed branch, which will probably be incorporated soon, in preparation for a release.

@anarchotaoist
Copy link
Author

😃 🙏

@anarchotaoist
Copy link
Author

Hello,

I am trying to install the 0.31 version in Kubuntu 20.04 as "Python 3 is now supported".

I am using 'make install' but am getting errors.
Sorry, I cannot decode them.
What do I need to do?
Thanks.

/Downloads/bup-0.31$make install
fatal: not a git repository (or any of the parent directories): .git
cd lib/bup && /home/anarcho/Downloads/bup-0.31/config/bin/python csetup.py build "-D_FILE_OFFSET_BITS=64 -Wall -Wformat=2 -O2 -Werror -Wno-unknown-pragmas -D_DEFAULT_SOURCE -I/usr/include/readline -DBUP_RL_EXPECTED_XOPEN_SOURCE=600 " "-lreadline -lacl"
running build
running build_ext
building '_helpers' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-1x6jhf/python2.7-2.7.18rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _helpers.c -o build/temp.linux-x86_64-2.7/_helpers.o -D_FILE_OFFSET_BITS=64 -Wall -Wformat=2 -O2 -Werror -Wno-unknown-pragmas -D_DEFAULT_SOURCE -I/usr/include/readline -DBUP_RL_EXPECTED_XOPEN_SOURCE=600
_helpers.c:8:10: fatal error: Python.h: No such file or directory
8 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
make: *** [Makefile:152: lib/bup/_helpers.so] Error 1
anarcho@LuNoHo:
/Downloads/bup-0.31$^C
anarcho@LuNoHo:/Downloads/bup-0.31$ cd /home/anarcho/Downloads/bup-0.31/config
anarcho@LuNoHo:
/Downloads/bup-0.31/config$make install
make: *** No rule to make target 'install'. Stop.
anarcho@LuNoHo:~/Downloads/bup-0.31/config$

@vimdude
Copy link

vimdude commented Dec 14, 2020

Alternative till it's supported is to use docker:

Dockerfile


FROM debian:jessie-slim

RUN apt update && \
    apt install -y bup && \
    rm -rf /var/cahce/apt && \
    rm -rf /var/lib/apt/lists

ENTRYPOINT [ "/usr/bin/bup" ]

create a shell script called bup in your path with the following:


docker run \
    -v $BUP_DIR:/root/backup/dot-bup:rw \
    -v /restore:/restore:rw \
    --rm bup \
    -d /root/backup/dot-bup \
    "$@"

Then you can use as BUP_DIR=/path/to/your/bup/dir bup ls then to restore BUP_DIR=/path/to/your/bup/dir bup restore -C /restore/

@vimdude
Copy link

vimdude commented Dec 27, 2020

an alternative to bup is borg, hope it helps create backups till this is sorted out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants