Skip to content

Add Debian package files for local build#1336

Open
silentjet wants to merge 3 commits intoArduPilot:masterfrom
silentjet:add_debian_package_files
Open

Add Debian package files for local build#1336
silentjet wants to merge 3 commits intoArduPilot:masterfrom
silentjet:add_debian_package_files

Conversation

@silentjet
Copy link
Copy Markdown

@silentjet silentjet commented Mar 9, 2024

Add debian package file to allow local build of the debian packages in custom systems

@silentjet silentjet force-pushed the add_debian_package_files branch from c1ec115 to ff79a5d Compare September 2, 2025 10:42
@silentjet silentjet force-pushed the add_debian_package_files branch from ff79a5d to a96399e Compare January 7, 2026 22:10
@silentjet silentjet changed the title WIP: Add Debian package files Add Debian package files for local build Jan 7, 2026
@silentjet silentjet force-pushed the add_debian_package_files branch 2 times, most recently from b9ebb78 to 99f9e59 Compare January 7, 2026 22:21
On some custom systems it is not possible to instal mavproxy via pip (or
similar mechanism). By having such files the user can easily build and
install mavproxy into a system (or build container) just in two commands
immediatelly after clone:
  dpkg-buildpackage -b -us -uc
  dpkg -i ../python3-mavproxy_*_amd64.deb
If there are some unmet deps, just run
  apt-get -f install
@silentjet silentjet force-pushed the add_debian_package_files branch from f2b1d10 to 6030f27 Compare January 12, 2026 14:34
@silentjet
Copy link
Copy Markdown
Author

@tridge @peterbarker please review.
Another one from this series: ArduPilot/pymavlink#927
This two PRs brings ability to avoid pip infrastrcuture and replace it with pure deb packages.

Copy link
Copy Markdown
Contributor

@tridge tridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!
any chance of a patch to CI to make sure this stays working? my past experience of debian packaging is it can be fragile

@tridge
Copy link
Copy Markdown
Contributor

tridge commented Jan 24, 2026

@silentjet I've fixed some errors and added the CI job

@tridge tridge force-pushed the add_debian_package_files branch 2 times, most recently from 4b5a4d5 to 3ee9ec0 Compare January 24, 2026 00:46
tridge and others added 2 commits January 25, 2026 12:15
- Change Architecture from 'any' to 'all' (pure Python package)
- Remove python3-pymavlink from Depends (not available via apt)
- Add Recommends: python3-opencv, python3-matplotlib, python3-lxml, python3-yaml
- Comment out non-existent samples/* in dh_installexamples
- Auto-sync package version from setup.py using grep

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Test debian package build on Ubuntu 22.04:
- Install build dependencies
- Run dpkg-buildpackage
- Install pymavlink via pip (not available as apt package)
- Test package installation
- Upload built .deb as artifact

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tridge tridge force-pushed the add_debian_package_files branch from 5f1daed to 34db976 Compare January 25, 2026 01:16
@silentjet
Copy link
Copy Markdown
Author

@tridge Thanks for this update! Looks good to me.
The only suggestion from my side is to avoid mentioning use of the pip, cause it is an inconsistent approach: the system-wide installed package shall not depend on your user specific package installation (which command pip install pymavlink actually does). We can either keep deb pkg dep to the pymavlink or not, that's not a big deal.
for pymavlink I also created similar PR ArduPilot/pymavlink#927

@silentjet silentjet requested a review from tridge February 6, 2026 08:55
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