From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Leopold Palomo-Avellaneda <leo@alaxarxa.net>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Packaging Xenomai-3
Date: Mon, 26 Jan 2015 15:55:05 +0100 [thread overview]
Message-ID: <20150126145505.GJ12812@hermes.click-hack.org> (raw)
In-Reply-To: <1511773.t4MVMy7lsq@soho>
On Mon, Jan 26, 2015 at 03:47:03PM +0100, Leopold Palomo-Avellaneda wrote:
> El Dilluns, 26 de gener de 2015, a les 15:01:27, Philippe Gerum va escriure:
> > On 01/26/2015 01:39 PM, Leopold Palomo-Avellaneda wrote:
> > > Maybe I'm wrong. But after reading this thread I understood that to have a
> > > kernel with both patches (i-pipe and preempt_rt) and, I understand,
> > > Xenomai-3 with the two versions could be a very interesting system to
> > > work on.
> > >
> > > For instance, I'm in the robotics field, and after that mails I thought
> > > that it could be a good solution that fit the cases where you have
> > > several loops, with several rates with different importance.
> >
> > You are missing an important point: Xenomai 3 over Mercury is about
> > running non-POSIX RTOS APIs over a native kernel (with or without
> > preempt-rt, this is orthogonal to the issue).
>
> this is an interesting point.
>
> [...]
>
> >
> > Therefore, your proposal mainly addresses the issue of running a mixed
> > configuration, with some Mercury-based application(s) ported from a
> > traditional RTOS to linux, and other application(s) running over Cobalt
> > in dual kernel mode, concurrently on the same system. People who just
> > want to run POSIX apps over a native kernel don't need Xenomai 3. In
> > short, the potential user base for the mixed setup as described is quite
> > small.
> >
> > With that in mind, using a mixed installation root between Mercury and
> > Cobalt also means that any 2.x Makefile currently using "xeno-config"
> > would have to be fixed up, to reflect the new suffixed path or call
> > pkg-config to retrieve it, whatever fits. We have been advertising
> > xeno-config since years, as a mean to stay away from installation
> > specifics, so this would be quite wrong to end up asking people to run
> > xeno-config-cobalt or xeno-config-mercury.
>
> xeno-config --with-core=cobalt/mercury
>
> could be a solution. But, some default core should be defined.
>
> > As I mentioned already, we won't go for single binaries running over
> > both cores, the performance and maintenance impact would be a nightmare.
>
> Yes, two types of binaries. Your argumentation was clear.
>
> > Since all our build system is autoconfiscated, you can pick any root
> > prefix that makes sense, and even fine tune every installation directory
> > already (lib, include, bin etc). This means that having multiple roots
> > is definitely a non-issue, and does not introduce any limitation.
> >
> > I don't buy the "suffix to disambiguate" argument either:
> > /usr/lib/libvxworks-m.so is not clearer than
> > /usr/lib/mercury/libvxworks.so, or
> > /usr/xenomai/mercury/lib/libvxworks.so. And this does not even work
> > better with /usr/lib/libvxworks-mercury.so.
> >
> > Besides, there is no shortage of ways to find out which Xenomai
> > configuration your build system and even your application is currently
> > depending on.
>
> well, I usually ask to ldd. So, if I have a binary and I run:
>
> ldd /usr/local/lib/libcpp4ec.so
> linux-vdso.so.1 (0x00007fffee0dc000)
> libsoemrt.so.1.3.0 => /usr/local/lib/libsoemrt.so.1.3.0
> (0x00007feea2352000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007feea214a000)
> libnative.so.3 => /usr/lib/libnative.so.3 (0x00007feea1f40000)
> libxenomai.so.0 => /usr/lib/libxenomai.so.0 (0x00007feea1d39000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007feea1b1c000)
> libpugixml.so.1 => /usr/lib/x86_64-linux-gnu/libpugixml.so.1
> (0x00007feea18e7000)
> librtdm.so.1 => /usr/lib/librtdm.so.1 (0x00007feea16e5000)
>
> for example, if I had libvxworks-cobalt there, I knew that my binary was built
> against xenomai with cobalt.
>
>
> > The only requirement is to query the right xeno-config
> > script or application, which may be as simple as setting the PATH
> > variable appropriately for your setup:
> >
> > $ xeno-config --core
> > mercury
> > $ xeno-config --cflags
>
> [...]
>
> Yes, I liked. I thought that it was a good solution but I don't know if it's
> fhs, if follow debian/fedora policies for instance. That's all. It was my
> first idea to propose you but I asked and to put libraries in places non-
> standards isn't a good idea. I'm investigating it.
>
> But, for instance in debian mentors irc they found it "Sounds suspicious"
Again: pass to the configure script the option
--program-suffix=-cobalt
And xeno-config will be named xeno-config-cobalt.
Please stop this useless discussion. Xenomai has all the flexibility
to allow you install things how you see fit.
--
Gilles.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150126/d19794da/attachment.sig>
next prev parent reply other threads:[~2015-01-26 14:55 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 12:09 [Xenomai] Packaging Xenomai-3 Leopold Palomo-Avellaneda
2015-01-23 15:52 ` Gilles Chanteperdrix
2015-01-23 16:50 ` Leopold Palomo-Avellaneda
2015-01-23 17:27 ` Gilles Chanteperdrix
2015-01-24 17:56 ` Leopold Palomo-Avellaneda
2015-01-25 9:14 ` Philippe Gerum
2015-01-25 11:14 ` Leopold Palomo-Avellaneda
2015-01-25 18:10 ` Philippe Gerum
2015-01-25 18:43 ` Leopold Palomo-Avellaneda
2015-01-26 12:08 ` Gilles Chanteperdrix
2015-01-26 12:39 ` Leopold Palomo-Avellaneda
2015-01-26 13:38 ` Daniele Nicolodi
2015-01-26 14:17 ` Leopold Palomo-Avellaneda
2015-01-26 14:24 ` Daniele Nicolodi
2015-01-26 14:01 ` Philippe Gerum
2015-01-26 14:47 ` Leopold Palomo-Avellaneda
2015-01-26 14:55 ` Gilles Chanteperdrix [this message]
2015-01-26 14:08 ` Gilles Chanteperdrix
2015-01-26 14:56 ` Leopold Palomo-Avellaneda
2015-01-26 14:59 ` Gilles Chanteperdrix
2015-01-26 17:46 ` Leopold Palomo-Avellaneda
2015-01-26 18:20 ` Gilles Chanteperdrix
2015-01-26 22:17 ` Leopold Palomo-Avellaneda
2015-01-26 22:26 ` Daniele Nicolodi
2015-01-26 22:57 ` Leopold Palomo-Avellaneda
2015-01-26 18:32 ` Gilles Chanteperdrix
2015-01-26 22:19 ` Leopold Palomo-Avellaneda
2015-01-23 16:04 ` Philippe Gerum
2015-01-23 17:02 ` Leopold Palomo-Avellaneda
2015-01-23 17:24 ` Philippe Gerum
2015-01-23 17:47 ` Gilles Chanteperdrix
2015-01-24 10:05 ` Philippe Gerum
2015-01-24 17:43 ` Leopold Palomo-Avellaneda
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=20150126145505.GJ12812@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=leo@alaxarxa.net \
--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.