Re: [Xenomai-core] Xenomai in Debian

2010-02-25 Thread Stefan Kisdaroczi
Am 24.02.2010 14:06, schrieb Stefan Kisdaroczi:
 Hi Philippe,
 
 Am 23.02.2010 18:46, schrieb Philippe Gerum:
 On Tue, 2010-02-23 at 17:52 +0100, Stefan Kisdaroczi wrote:
 Hi,

 Am 14.02.2010 10:38, schrieb Philippe Gerum:

 snip
 In the future, maybe we could simply provide a wrapper script accepting
 sub-commands, such as xeno latency, xeno sigtest etc, to be put
 into /usr/bin by distros, which would hide the actual location of those
 binaries?

 In any case, thanks for your work so far. We probably need to discuss
 the packaging issues on this list, so that we get both consistency and
 usability in the future.

 Gilles and Roland, if this is fine with you, I'll handle the liaison
 role with upstream packagers, so please CC me explicitly on those mails.
 We'll sort out this issue, it doesn't look that bad anyway.

 Roland added a xeno wrapper to the debian.org xenomai package 2.5.1-3.

 I synced now the debian/ directories from debian.org and xenomai.org:
  - For debian.org I sent patches to the Debian bugtracker [1] [2].
Another patch for dpkg-cross support [3] I sent to Roland privately.
  - For xenomai.org I attached patches to this mail (against -2.5.git).

 If both parties apply the patches the debian directories are in sync,
 except some minor differences in the debian/control file, see patch
 do-not-commit-please.patch. I would like to keep these changes out so
 that the xenomai.org packages are compatible with Debian 5.0 Lenny.
 The debian.org packages are for Debian 6.0 Squeeze.


 Merged into my queue (except the last one as mentioned). This will be
 pushed upstream to Gilles for 2.5.2. Thanks.
 
 I took a look at your branch for-upstream. Your commit
   scripts: add wrapper script to run standard Xenomai commands
   6e0574791f48cbf8b3421a68c5789254e7d084b7
 adds the same wrapper as my patch 
 0005-debian-wrapper-script-usr-bin-xeno-to-call-executa.patch
   debian: wrapper script /usr/bin/xeno to call executables in 
 /usr/lib/xenomai/
   fbe86cc50d3a65cd23e93d43adba4ed369fe70b1
 Please revert the commit of my patch, we need another fix for debian/rules 
 for your wrapper.

Thanks for reverting. Roland has uploaded 2.5.1-4 yesterday.
Attached a patch to stay in sync. Based on your for-upstream branch this time.

kisda

 How do I call configure to install the wrapper in /usr/bin and
 the programs like latency, switchtest etc. to /usr/lib/xenomai ?
 
 Stefan
 

 Thanks
 kisda

 [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571099
 [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571104
 [3] 
 http://git.xenomai.org/?p=xenomai-2.5.git;a=commitdiff;h=5bcd18f714f4cbeaaac0cc4a08e6c9f375aa3b77


 
 
 
 
 ___
 Xenomai-core mailing list
 Xenomai-core@gna.org
 https://mail.gna.org/listinfo/xenomai-core

From f6b7a0115f3f785f08f8d085e66c8bf8d7057f88 Mon Sep 17 00:00:00 2001
From: Stefan Kisdaroczi ki...@hispeed.ch
Date: Thu, 25 Feb 2010 13:27:31 +0100
Subject: [PATCH] debian: sync 2.5.1-4 from debian.org

---
 debian/changelog|9 +
 debian/libxenomai1.dirs |2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 45736a4..6d2d3cf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+xenomai (2.5.1-4) unstable; urgency=low
+
+  * Added patches by Stefan Kisdaroczi ki...@hispeed.ch:
+- debian/copyright: Typo and email address (Closes: #571099)
+- debian/control: ia64 support removed (Closes: #571104)
+- debian/rules: Added dpkg-cross support
+
+ -- Roland Stigge sti...@antcom.de  Wed, 24 Feb 2010 22:20:10 +0100
+
 xenomai (2.5.1-3) unstable; urgency=low
 
   * xenomai-runtime: Replaced xenomai- prefixed executables with
diff --git a/debian/libxenomai1.dirs b/debian/libxenomai1.dirs
index d5bb34f..1737ea1 100644
--- a/debian/libxenomai1.dirs
+++ b/debian/libxenomai1.dirs
@@ -1,2 +1,2 @@
-etc/udev
+etc/udev/rules.d
 usr/share/lintian/overrides
-- 
1.5.6.5



signature.asc
Description: OpenPGP digital signature
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Xenomai in Debian

2010-02-25 Thread Gilles Chanteperdrix
Stefan Kisdaroczi wrote:
 Hi,
 
 Am 14.02.2010 10:38, schrieb Philippe Gerum:
 snip
 In any case, thanks for your work so far. We probably need to discuss
 the packaging issues on this list, so that we get both consistency and
 usability in the future.

 Gilles and Roland, if this is fine with you, I'll handle the liaison
 role with upstream packagers, so please CC me explicitly on those mails.
 We'll sort out this issue, it doesn't look that bad anyway.
 
 udev/xenomai.rules sets the group for realtime devices to xenomai.
 Patch attached to create the group xenomai on installation.
 
 Additionally, it would be nice to set xeno_nucleus.xenomai_gid to
 group xenomai too. Is this possible with a udev rule ?

Well, no, xeno_nucleus.xenomai_gid is a kernel parameter, so it is boot
loader stuff. However, if xeno_nucleus is compiled as a module, you can
add parameters in /etc/modprobe.d. Well, that would have been the place
to do it some time ago. I may not be completely up-to-date.

 
 regards
 kisda
 
 
 
 
 ___
 Xenomai-core mailing list
 Xenomai-core@gna.org
 https://mail.gna.org/listinfo/xenomai-core


-- 
Gilles.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Xenomai in Debian

2010-02-25 Thread Stefan Kisdaroczi
Am 25.02.2010 14:49, schrieb Gilles Chanteperdrix:
 Stefan Kisdaroczi wrote:
 Hi,

 Am 14.02.2010 10:38, schrieb Philippe Gerum:
 snip
 In any case, thanks for your work so far. We probably need to discuss
 the packaging issues on this list, so that we get both consistency and
 usability in the future.

 Gilles and Roland, if this is fine with you, I'll handle the liaison
 role with upstream packagers, so please CC me explicitly on those mails.
 We'll sort out this issue, it doesn't look that bad anyway.

 udev/xenomai.rules sets the group for realtime devices to xenomai.
 Patch attached to create the group xenomai on installation.

 Additionally, it would be nice to set xeno_nucleus.xenomai_gid to
 group xenomai too. Is this possible with a udev rule ?
 
 Well, no, xeno_nucleus.xenomai_gid is a kernel parameter, so it is boot
 loader stuff. However, if xeno_nucleus is compiled as a module, you can
 add parameters in /etc/modprobe.d. Well, that would have been the place
 to do it some time ago. I may not be completely up-to-date.

Hi Gilles,

can a init.d script with
  echo gid  /sys/module/xeno_nucleus/parameters/xenomai_gid
work in module and builtin case ?


 regards
 kisda


 

 ___
 Xenomai-core mailing list
 Xenomai-core@gna.org
 https://mail.gna.org/listinfo/xenomai-core
 
 




signature.asc
Description: OpenPGP digital signature
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Xenomai in Debian

2010-02-25 Thread Jan Kiszka
Gilles Chanteperdrix wrote:
 Stefan Kisdaroczi wrote:
 Hi,

 Am 14.02.2010 10:38, schrieb Philippe Gerum:
 snip
 In any case, thanks for your work so far. We probably need to discuss
 the packaging issues on this list, so that we get both consistency and
 usability in the future.

 Gilles and Roland, if this is fine with you, I'll handle the liaison
 role with upstream packagers, so please CC me explicitly on those mails.
 We'll sort out this issue, it doesn't look that bad anyway.
 udev/xenomai.rules sets the group for realtime devices to xenomai.
 Patch attached to create the group xenomai on installation.

 Additionally, it would be nice to set xeno_nucleus.xenomai_gid to
 group xenomai too. Is this possible with a udev rule ?
 
 Well, no, xeno_nucleus.xenomai_gid is a kernel parameter, so it is boot
 loader stuff. However, if xeno_nucleus is compiled as a module, you can
 add parameters in /etc/modprobe.d. Well, that would have been the place
 to do it some time ago. I may not be completely up-to-date.

You can change this [module] parameter at any time:

echo GID  /sys/module/xeno_nucleus/parameters/xenomai_gid

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [Adeos-main] I-pipe for 2.6.32 PPC

2010-02-25 Thread Philippe Gerum
On Tue, 2010-02-23 at 11:57 +0100, Richard Cochran wrote:
 On Tue, Feb 23, 2010 at 11:07:57AM +0100, Philippe Gerum wrote:
  With ipipe-2.6.33 solely tracking mainline, only the few temporary trees
  with not-mainlined-yet features/support will pull from the DENX tree to
  get them.
 
 Okay, its now clear to me. Thanks for the explanation.

You are welcome. Out of curiosity, what was unclear exactly?

 
 Richard
 
 ___
 Adeos-main mailing list
 adeos-m...@gna.org
 https://mail.gna.org/listinfo/adeos-main


-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Xenomai in Debian

2010-02-25 Thread Stefan Kisdaroczi
Am 25.02.2010 15:29, schrieb Stefan Kisdaroczi:
 Am 25.02.2010 14:59, schrieb Stefan Kisdaroczi:
 Am 25.02.2010 14:49, schrieb Gilles Chanteperdrix:
 Stefan Kisdaroczi wrote:
 Hi,

 Am 14.02.2010 10:38, schrieb Philippe Gerum:
 snip
 In any case, thanks for your work so far. We probably need to discuss
 the packaging issues on this list, so that we get both consistency and
 usability in the future.

 Gilles and Roland, if this is fine with you, I'll handle the liaison
 role with upstream packagers, so please CC me explicitly on those mails.
 We'll sort out this issue, it doesn't look that bad anyway.

 udev/xenomai.rules sets the group for realtime devices to xenomai.
 Patch attached to create the group xenomai on installation.

 Additionally, it would be nice to set xeno_nucleus.xenomai_gid to
 group xenomai too. Is this possible with a udev rule ?

 Well, no, xeno_nucleus.xenomai_gid is a kernel parameter, so it is boot
 loader stuff. However, if xeno_nucleus is compiled as a module, you can
 add parameters in /etc/modprobe.d. Well, that would have been the place
 to do it some time ago. I may not be completely up-to-date.

 Hi Gilles,

 can a init.d script with
   echo gid  /sys/module/xeno_nucleus/parameters/xenomai_gid
 work in module and builtin case ?
 
 it seems that init.d will work for the builtin case and modprobe.d for the
 module case. So adding both should work in all cases :-)
 I'll give it a try ...

Attached a patch that adds a init-script /etc/init.d/xenomai to the package 
libxenomai1.
If group xenomai and the file /sys/module/xeno_nucleus/parameters/xenomai_gid 
are found,
xenomai_gid is set on startup.

Now looking at modprobe.d ...


 regards
 kisda


 

 ___
 Xenomai-core mailing list
 Xenomai-core@gna.org
 https://mail.gna.org/listinfo/xenomai-core






 ___
 Xenomai-core mailing list
 Xenomai-core@gna.org
 https://mail.gna.org/listinfo/xenomai-core
 
 
 
 
 ___
 Xenomai-core mailing list
 Xenomai-core@gna.org
 https://mail.gna.org/listinfo/xenomai-core

diff -uNrp xenomai-2.5.1/debian/libxenomai1.xenomai.init 
xenomai-2.5.1.new/debian/libxenomai1.xenomai.init
--- xenomai-2.5.1/debian/libxenomai1.xenomai.init   1970-01-01 
01:00:00.0 +0100
+++ xenomai-2.5.1.new/debian/libxenomai1.xenomai.init   2010-02-25 
17:13:51.0 +0100
@@ -0,0 +1,37 @@
+#!/bin/sh -e
+### BEGIN INIT INFO
+# Provides:  xenomai
+# Required-Start:mountkernfs
+# Required-Stop:
+# Default-Start: S
+# Default-Stop:
+# Short-Description: Set xeno_nucleus group
+### END INIT INFO
+
+GROUP=xenomai
+INITNAME=/etc/init.d/xenomai
+FILENAME=/sys/module/xeno_nucleus/parameters/xenomai_gid
+GID=$(getent group $GROUP | cut -d: -f3)
+
+test -e $FILENAME || exit 0
+test -n $GID || exit 0
+
+case $1 in
+  start)
+echo $GID  $FILENAME
+;;
+  stop)
+echo -1  $FILENAME
+;;
+  restart|force-reload)
+$0 stop
+$0 start
+;;
+  *)
+echo Usage: $INITNAME {start|stop|restart|force-reload}
+exit 1
+;;
+esac
+
+exit 0
+
diff -uNrp xenomai-2.5.1/debian/rules xenomai-2.5.1.new/debian/rules
--- xenomai-2.5.1/debian/rules  2010-02-25 16:56:05.0 +0100
+++ xenomai-2.5.1.new/debian/rules  2010-02-25 17:33:20.0 +0100
@@ -132,6 +132,7 @@ binary-indep: build install
 binary-arch: build install
dh_testdir -s
dh_testroot -s
+   dh_installinit -s --name=xenomai
dh_installman -s
dh_installdocs -s -A CREDITS README.INSTALL TROUBLESHOOTING
dh_link -s


signature.asc
Description: OpenPGP digital signature
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core