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

Debuild only #214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

narc-Ontakac2
Copy link

@narc-Ontakac2 narc-Ontakac2 commented Apr 25, 2024

This modernizes the Debian package build a bit. It also gives it the ability to run standalone, which obsoletes build-deb.sh. So cloning the repository and running

debuild

should give you a deb package.

In addition this gives you the ability to cross build for all Debian based platforms including Raspbian using pbuilder.

wget http://raspbian.raspberrypi.org/raspbian/pool/main/r/raspbian-archive-keyring/raspbian-archive-keyring_20120528.2_all.deb
sudo apt-get install ./raspbian-archive-keyring_20120528.2_all.deb    
sudo apt-get install pbuilder mmdebstrap qemu-user-static

sudo pbuilder create --architecture armhf \
                 --distribution bookworm \
                 --mirror http://mirror.netcologne.de/raspbian/raspbian/ \
                 --basetgz /var/cache/pbuilder/raspbian-bookworm.tgz \
                 --debootstrap mmdebstrap \
                 --debootstrapopts \
                     --keyring=/usr/share/keyrings/raspbian-archive-keyring.gpg

should set up the build environment.

sudo pbuilder build \
                 --architecture  armhf \
                 --basetgz /var/cache/pbuilder/raspbian-bookworm.tgz libmbus_0.9.0.dsc

then builds the Raspbian deb. Note that the dsc file is created by debuild in the directory that contains the build directory.

The above sets up a Qemu virtual machine to do the build. This is inefficient and a bit slow. It is however much easier to do than setting up a cross compile.

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.

1 participant