Documentation and support for Build to [armhf] for raspberry pi4 targets
I have:
-
searched https://gitlab.com/duplicity/duplicity/-/issues for similar issues. If you find a similar issue and the issue is still open, add a comment to the existing issue instead of opening a new one. If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. -
searched https://bugs.launchpad.net/duplicity for similar issues. If you find a similar issue, open a new issue on here and include a link to the original issue in the body of your new one. -
tested that this issue still occurs on the latest stable snap (install instructions: https://snapcraft.io/duplicity), please include the snap version ( snap info duplicity | grep installed
) output:installed: x.xx.xx (xx)
-
ideally, tested that this issue still occurs on the latest edge snap, if you can test without risking your data. Please include the snap version output: installed: x.xx.xx (xx)
Summary
Firstly, failed installation on Raspbian (armhf).
Failed install for armhf for latest 0.8.18 duplicity to install without Development dependence's.
Secondly, how to distribute a test build (no dev dependencies) to PI4 (armhf)
This is the most particularly, (key reason) for how to distribute a test build to another device with out Development dependence's. This is to test a proposed PR for gdrive Backend. The WIP (pre submission as PR) fork/branch is https://gitlab.com/auphof/duplicity/-/tree/dev-au-210421-gdrive-user This proposed PR enables backup to Google Drive Shared Folder based on gdrive backend recently merged in. The propose PR is passing all tests and executes successfully on the PI4 in the Development configuration.
Steps to reproduce
Firstly attempt to install current duplicity 0.8.18 on pi4 Buster
snapd installed and core updated
PI4 with latest raspbian-lite 2021-03-04: https://downloads.raspberrypi.org/raspios_lite_armhf/release_notes.txt
Raspberry Pi firmware fcf8d2f7639ad8d0330db9c8db9b71bd33eaaa28
Linux kernel 5.10.17
uname -a
-> Linux raspberrypi 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
snap install (restart required for kernel update)
sudo apt install snapd
sudo shutdown -r 0
sudo snap install core
now attempt duplicity install
sudo snap install duplicity --classic --edge
Secondly
How to create a deployable binary/package to test on another PI4 (armhf) device without installing all development dependencies ?
I have followed dist/makesnap
and am currently trying to modify to work on my clean PI4 as it appears to be only supporting amd64 and I am experiencing many issues getting it to work. I finally managed to produce a snap but only to experiece problems with incompatible linker GCLIB 2.28. Is anybody doing anything to support armhf and have a development workflow that I can use or contribute to ?
What is the current bug behaviour?
The snap install listed above fails with
error: snap "duplicity" is not available on edge for this architecture (armhf) but exists on other
architectures (amd64).`
What is the expected correct behaviour?
Expect duplicity -V
to work with all dependencies loaded on armhf (pi4) with most current Raspbian
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)