All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] howto build debion packages from a Xenomai Git repository
@ 2010-02-03 19:37 Stefan Kisdaroczi
  2010-02-03 19:48 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Kisdaroczi @ 2010-02-03 19:37 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

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 <your@domain.hid>" -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.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-04 17:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-03 19:37 [Xenomai-help] howto build debion packages from a Xenomai Git repository Stefan Kisdaroczi
2010-02-03 19:48 ` Gilles Chanteperdrix
2010-02-03 20:34   ` Stefan Kisdaroczi
2010-02-03 20:37     ` Gilles Chanteperdrix
2010-02-04 10:18       ` Stefan Kisdaroczi
2010-02-04 10:26         ` Gilles Chanteperdrix
2010-03-04 17:08           ` Stefan Kisdaroczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.