Skip to contentSkip to conversation

howto build debion packages from a Xenomai Git repository

Xenomai-help Stefan Kisdaroczi 2 participants 7 messages Feb 3, 2010 – Mar 4, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

below a howto which works for me on a Debian Lenny system.

Regards, Stefan

Building debian packages from a Xenomai Git repository:

This example shows how to build Xenomai 2.5.1, feel free to adapt to your needs.

Prerequisites:

Install the following packages:

 # apt-get install devscripts git-core git-buildpackage debhelper dh-kpatches findutils

You need a local Xenomai Git repository:

 $ git clone git://xenomai.org/xenomai-2.5.git

Finished with prerequisites, here is the starting point for later builds:

Go to the Xenomai Git working tree:

 $ cd xenomai-2.5

Update the Git repository:
xenomai-2.5$ git fetch origin

Create and checkout a new branch based on a git treeish object. In this example, we create a branch v2.5.1-deb based on git tag v2.5.1:
xenomai-2.5$ git-checkout -b v2.5.1-deb v2.5.1

Create a new debian changelog entry:
xenomai-2.5$ debchange -v 2.5.1-0.1 Release 2.5.1

Commit the changelog to the v2.5.1-deb branch:
xenomai-2.5$ git-commit -a --author="Your Name <[email protected]>" -m 2.5.1-0.1

Build the packages in the directory ../build :
xenomai-2.5$ git-buildpackage \
--git-upstream-branch=v2.5.1 \
--git-debian-branch=v2.5.1-deb \
--git-export-dir=../build \
-uc -us

Thats all folks, now switch back to the master branch:
xenomai-2.5$ git checkout master

You could now delete the branch v2.5.1-deb:
xenomai-2.5$ git branch -D v2.5.1-deb

If you keep the branch you can later switch back to it, cherry pick some commits from another branch, adapt and commit the changelog and build the packages again.

#1 lore raw
Quoted 5 lines · Stefan Kisdaroczi

Hi all,

below a howto which works for me on a Debian Lenny system.

Regards, Stefan

That is nice. Would you mind putting it in the wiki, including the kernel build? If you agree, please tell me what your login on the wiki is, and I will give you the permissions to write.

The page we have looks outdated, it mentions inclusion in the official debian distribution, which looks currently unmaintained, and still uses svn whereas we switched to git:
http://www.xenomai.org/index.php/Building_Debian_packages

Regards.

Signature · 1 line
					    Gilles.
#2 lore raw

Am 03.02.2010 20:48, schrieb Gilles Chanteperdrix:

Quoted 10 lines
Quoted 5 lines · Stefan Kisdaroczi

Hi all,

below a howto which works for me on a Debian Lenny system.

Regards, Stefan

That is nice. Would you mind putting it in the wiki, including the kernel build? If you agree, please tell me what your login on the wiki is, and I will give you the permissions to write.

ok, my login is 'kisda'.

Quoted 7 lines

The page we have looks outdated, it mentions inclusion in the official debian distribution, which looks currently unmaintained, and still uses svn whereas we switched to git:
http://www.xenomai.org/index.php/Building_Debian_packages

Regards.

#3 lore raw
Quoted 4 lines · Stefan Kisdaroczi

Am 03.02.2010 20:48, schrieb Gilles Chanteperdrix:

Quoted 3 lines
Quoted 2 lines · Stefan Kisdaroczi

Hi all,

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

below a howto which works for me on a Debian Lenny system.

Regards, Stefan

That is nice. Would you mind putting it in the wiki, including the kernel build? If you agree, please tell me what your login on the wiki is, and I will give you the permissions to write.

ok, my login is 'kisda'.

you should have the permission to write now.

Signature · 1 line
					    Gilles.
#4 lore raw

Am 03.02.2010 21:37, schrieb Gilles Chanteperdrix:

Quoted 7 lines
Quoted 6 lines · Stefan Kisdaroczi

Am 03.02.2010 20:48, schrieb Gilles Chanteperdrix:

Quoted 5 lines
Quoted 4 lines · Stefan Kisdaroczi

Hi all,

below a howto which works for me on a Debian Lenny system.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Regards, Stefan

That is nice. Would you mind putting it in the wiki, including the kernel build? If you agree, please tell me what your login on the wiki is, and I will give you the permissions to write.

ok, my login is 'kisda'.

you should have the permission to write now.

Worked. I did not modify the kernel building howto, but i plan to extend it according to the howto I sent last year to the list:
https://mail.gna.org/public/xenomai-help/2009-10/msg00203.html

Stefan

#5 lore raw
Quoted 12 lines · Stefan Kisdaroczi

Am 03.02.2010 21:37, schrieb Gilles Chanteperdrix:

Quoted 11 lines
Quoted 10 lines · Stefan Kisdaroczi

Am 03.02.2010 20:48, schrieb Gilles Chanteperdrix:

Quoted 9 lines
Quoted 5 lines · Stefan Kisdaroczi

Hi all,

below a howto which works for me on a Debian Lenny system.

Regards, Stefan

That is nice. Would you mind putting it in the wiki, including the kernel build? If you agree, please tell me what your login on the wiki is, and I will give you the permissions to write.

Quoted 6 lines
Quoted 2 lines
Quoted 1 line

ok, my login is 'kisda'.

you should have the permission to write now.

Worked. I did not modify the kernel building howto, but i plan to extend it according to the howto I sent last year to the list:
https://mail.gna.org/public/xenomai-help/2009-10/msg00203.html

Ok, no problem. You may remove the note about xenomai having been merged into an official debian package, since the official debian package is 5 releases behind Xenomai, and ships with versions of the I-pipe patches which have been announced as bogus on Xenomai mailing lists. So, it is not a good idea to advise people to use that.

You may also want to mention your "unofficial" apt repository.

Signature · 4 lines
Gilles Chanteperdrix, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#6 lore raw

Am 04.02.2010 11:26, schrieb Gilles Chanteperdrix:

Quoted 20 lines
Quoted 12 lines · Stefan Kisdaroczi

Am 03.02.2010 21:37, schrieb Gilles Chanteperdrix:

Quoted 11 lines
Quoted 10 lines · Stefan Kisdaroczi

Am 03.02.2010 20:48, schrieb Gilles Chanteperdrix:

Quoted 9 lines
Quoted 5 lines · Stefan Kisdaroczi

Hi all,

below a howto which works for me on a Debian Lenny system.

Regards, Stefan

That is nice. Would you mind putting it in the wiki, including the kernel build? If you agree, please tell me what your login on the wiki is, and I will give you the permissions to write.

Quoted 6 lines
Quoted 2 lines
Quoted 1 line

ok, my login is 'kisda'.

you should have the permission to write now.

Worked. I did not modify the kernel building howto, but i plan to extend it according to the howto I sent last year to the list:
https://mail.gna.org/public/xenomai-help/2009-10/msg00203.html

Quoted 5 lines

Ok, no problem. You may remove the note about xenomai having been merged into an official debian package, since the official debian package is 5 releases behind Xenomai, and ships with versions of the I-pipe patches which have been announced as bogus on Xenomai mailing lists. So, it is not a good idea to advise people to use that.

Hi Gilles,

I have updated the "Building Debian packages howto" in the wiki. Please review, comments and corrections welcome.

Stefan