Skip to content
Denis Demidov edited this page Nov 1, 2017 · 3 revisions

Creating debian package for python-ev3dev

The page mostly follows http://www.ev3dev.org/docs/devtools/packaging-for-ev3dev/ and is just a mental note for the package maintainer.

Update pbuilder environment:

OS=debian ARCH=amd64 DIST=jessie pbuilder-ev3dev base
OS=raspbian ARCH=armhf DIST=jessie pbuilder-ev3dev base

Update debian/changelog, commit the changes, then

git checkout master
git merge develop
git tag -a 1.0.0

Build the packages for debian and raspbian:

OS=debian ARCH=amd64 DIST=jessie pbuilder-ev3dev build
OS=raspbian ARCH=armhf DIST=jessie pbuilder-ev3dev build

Sign the packages:

debsign pbuilder-ev3dev/debian/jessie-amd64/python-ev3dev_1.0.0_amd64.changes
debsign pbuilder-ev3dev/raspbian/jessie-armhf/python-ev3dev_1.0.0_armhf.changes

Upload the packages:

dput ev3dev-deb pbuilder-ev3dev/debian/jessie-amd64/python-ev3dev_1.0.0_amd64.changes
dput ev3dev-rpi pbuilder-ev3dev/raspbian/jessie-armhf/python-ev3dev_1.0.0_armhf.changes

Note:

Ubuntu has finally updated debian-distro-info to the correct codenames for stable/testing since the release of stretch last February, so I [@dlech] have finally updated the ev3dev package archive accordingly.

Effective immediately, if you need to upload a package to "jessie" please use "oldstable" in the changelog. If you need to upload to "stretch", please use "stable" in the changelog. ("testing" will now upload to "buster").

Clone this wiki locally