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

Update dpkgfiles to support building raspberry pi armhf .deb #587

Closed
wants to merge 3 commits into from

Conversation

phoenix-xbt
Copy link

@phoenix-xbt phoenix-xbt commented Apr 27, 2019

Requires new build dependency "hardening-wrapper" when making armhf debian package with RPi toolchain.
If I have time I'll see if I can get it to play nice with different build option variables and without hardening-wrapper. Normal builds should run fine without it at least.

hardening-wrapper is gone! ✔️
Tested with debhelper v9 compat rules in effect. It'd be nice to set that but would in theory need to increase the debhelper dependency version to match.

My python is pretty scrappy at best but improvements welcomed all over.

Normal use of dpkgfiles/make_deb_package.py is retained as is.
Raspberry Pi builds are enabled by running

dpkgfiles/make_deb_package.py --cross=armhf \ 
--toolchain-path=/home/armory/RPi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin \
--extra-python-includes=/home/armory/RPi/usr/include

(Short flags available)
Substitute paths for toolchain and the extrapython path for real ones. Validates enough to know if a directory exists but it is not smart enough to know if the directory actually contains the files needed.

I have yet to test the packaged deb files on real hardware, but compiles completed fine to the best of my knowledge.

Requires new build dependency "hardening-wrapper" when making this
specific debian package.
Tested with debhelper 9 compat rules in effect.
@phoenix-xbt
Copy link
Author

Improved implementation and I've tested on a Pi with Raspbian Stretch now. Managed to create a new offline wallet without any problems.

arm-rpi-4.9.3-linux-gnueabihf gcc-linaro-arm-linux-gnueabihf-raspbian (& x64)
@phoenix-xbt phoenix-xbt changed the base branch from master to testing June 10, 2019 00:02
@phoenix-xbt
Copy link
Author

Hi @goatpig, I know you and @droark are busy with 0.97 but is there anything I need to fix or change in this PR?
Created in response to https://bitcointalk.org/index.php?topic=5135648

@goatpig
Copy link
Owner

goatpig commented Jun 11, 2019

This PR is fine as is. I'll get back to you if I need help merging this into the 0.97 build system. Thanks.

@phoenix-xbt
Copy link
Author

Good to know, thanks.
Just to note: if the CMake build tools PR #590 gets merged this PR (and make_deb_package.py) may be largely redundant/obsolete. When I was researching possible solutions I came across CMake frequently.
It has been a while now but I think the gist was that you needed a cross compile target for CMake and then a few lines so that CPack would package it up as a .deb. All at least sounded rather painless compared to wrangling with dpkg and debhelper.

@goatpig goatpig deleted the branch goatpig:testing December 8, 2021 11:22
@goatpig goatpig closed this Dec 8, 2021
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

Successfully merging this pull request may close these issues.

2 participants