From: Stefan Kisdaroczi <kisda@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] howto build debion packages from a Xenomai Git repository
Date: Wed, 03 Feb 2010 20:37:27 +0100 [thread overview]
Message-ID: <4B69D077.7000307@domain.hid> (raw)
[-- 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 --]
next reply other threads:[~2010-02-03 19:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 19:37 Stefan Kisdaroczi [this message]
2010-02-03 19:48 ` [Xenomai-help] howto build debion packages from a Xenomai Git repository 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B69D077.7000307@domain.hid \
--to=kisda@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.