All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Morris <john@zultron.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Debian package build problems
Date: Tue, 08 Jan 2013 02:37:28 -0600	[thread overview]
Message-ID: <50EBDAC8.8010006@zultron.com> (raw)
In-Reply-To: <50EB4FAD.2000804@xenomai.org>

Hi Gilles,
On 01/07/2013 04:43 PM, Gilles Chanteperdrix wrote:
> On 01/07/2013 10:55 AM, John Morris wrote:
>> I encountered a couple of problems building packages for 2.6.2 when
>> following the instructions to build from git in this link:
>>
>> http://www.xenomai.org/index.php/Building_Debian_packages
>>
>> First, the autoconf-generated 'configure' script is checked into git.
>> When git-buildpackage cleans up, it removes the configure script, and
>> then bombs out when it finds uncommitted changes (i.e. the configure
>> script removed) in the git tree.  I hacked around it by committing a
>> 'git rm configure' in my own tree, but don't have a more sophisticated
>> fix (is the configure script committed in git for a reason?).
> 
> The configure script is commited in the repository in order to allow
> users to compile the xenomai package without the need to install the
> correct version of the autotools.

I suspected that was the reason.  To work around the problem, one may
add '--git-ignore-new' to the git-buildpackage command line.

>> Second, the kernel patch copying code in debian/rules is out of date.
>> It expects to find "adeos-ipipe-*.patch" in the top-level directory.
>> Here's a patch to copy the ipipe-core patch files from the
>> ksrc/arch/<arch>/patches/ directory instead.
>>
>> One more problem when building the 3.2.21 kernel (I'm building 3.5.3
>> now, but since I have the fix, may as well report it).  The ipipe-core
>> patch introduces a syntax error in arch/x86/kernel/apic/io_apic.c,
>> breaking compile.  Here's a second patch to fix that.
> 
> These issues have been fixed in xenomai git, 

The master branch does indeed work, great!  I needed another small
addition to the git-buildpackage command line to fix the tarball
creation breaking:  '--git-upstream-branch=master
--git-upstream-tree=branch'.

> if you are interested by
> xenomai packages (currently only on the amd64 architectures) see:
> http://www.xenomai.org/pipermail/xenomai/2013-January/027252.html

Yes, I am interested in xenomai packages, thank you!  I'm working on the
project to add new RT systems to LinuxCNC (you might know Michael
Haberler, who wrote the Xenomai ports).  Now that we have a version
ready for testing, we find that the community is having trouble building
working kernels.  They all run Debian-like distros, the only ones
supported by LinuxCNC, so despite having never used Debian/Ubuntu, I
have been busy writing instructions for creating Ubuntu packages.  Next
step is to create a package repo to make it even easier.

The most difficult part has been to create a kernel config that works on
everybody's hardware.  My approach to solving that problem is to create
a well-documented, minimal set of configuration changes that may be
applied to stock distro kernels.  My results have been tested on EL6,
x86_64 (not Deb or 32-bit yet), and the config files can be seen here:

https://github.com/zultron/kernel-tools/tree/master/configs

The community mostly seems to run 32-bit machines, so your repo doesn't
satisfy all their needs yet.  :)  There will soon be a BeagleBone port,
too, an arch I haven't begun to tackle yet.

It seems terrible to duplicate this effort, so let me know if there's
anything I can do to help.  I can also supply packages for EL6 (my own
most familiar distro).

	John


  reply	other threads:[~2013-01-08  8:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07  9:55 [Xenomai] Debian package build problems John Morris
2013-01-07 22:43 ` Gilles Chanteperdrix
2013-01-08  8:37   ` John Morris [this message]
2013-01-08 20:25     ` Gilles Chanteperdrix
2013-01-13  7:37       ` John Morris
2013-01-13 12:19         ` Gilles Chanteperdrix
2013-01-13 19:46           ` John Morris
2013-01-28  7:34             ` John Morris
2013-01-28  7:39               ` Gilles Chanteperdrix
2013-01-28  7:48                 ` John Morris
2013-01-28  8:09                   ` Gilles Chanteperdrix
2013-01-28  8:19                     ` John Morris
2013-01-28  8:25                       ` Gilles Chanteperdrix

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=50EBDAC8.8010006@zultron.com \
    --to=john@zultron.com \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.