Debian package xenomai-2.4.3-4 available
[Warning: First in a series of several issues applicable to xenomai.org's code.]
Hi,
at http://packages.qa.debian.org/x/xenomai.html, you can find the latest version of Debian's package "xenomai". The "diff" to xenomai 2.4.3 applies to the normal Xenomai distribution with an empty debian/ directory.
Feel free to synchronize the Debian changes back to the mainline Xenomai repository, especially the Debian packaging has been fixed.
Thanks,
Roland
Quoted 11 lines · Roland Stigge
[Warning: First in a series of several issues applicable to xenomai.org's code.]
Hi,
at http://packages.qa.debian.org/x/xenomai.html, you can find the latest version of Debian's package "xenomai". The "diff" to xenomai 2.4.3 applies to the normal Xenomai distribution with an empty debian/ directory.
Feel free to synchronize the Debian changes back to the mainline Xenomai repository, especially the Debian packaging has been fixed.
Hi Roland,
reading your mail, I realize that the patch to remove the few "bashisms" in xenomai scripts was forgotten. So, since nobody complained, I will apply it now, so that you will not have to replace /bin/sh with /bin/bash in the next release.
Thanks for your work.
Signature · 1 line
Gilles.
Quoted 11 lines · Roland Stigge
[Warning: First in a series of several issues applicable to xenomai.org's code.]
Hi,
at http://packages.qa.debian.org/x/xenomai.html, you can find the latest version of Debian's package "xenomai". The "diff" to xenomai 2.4.3 applies to the normal Xenomai distribution with an empty debian/ directory.
Feel free to synchronize the Debian changes back to the mainline Xenomai repository, especially the Debian packaging has been fixed.
Hi Roland,
I am trying to merge the debian changes back into Xenomai, however, I have two problems:
- I can not find back the 2.4.3-4 patch, I only find 2.4.3-7;
- I do not want to merge changes that replace /bin/sh with /bin/bash since we fixed the bashism the right way (it is important for people of the embedded world, that Xenomai does not require /bin/bash, since embedded boxes may use other shells);
- I do not want to include the manual pages in the debian/ sub-directory since I merged your patch adding manual pages to the proper place.
So, could you re-generate a patch using Xenomai v2.4.x branch fixing these two issues ? I promise, this time I will not wait one month before merging the changes.
Thanks in advance.
Signature · 1 line
Gilles.
Hi Gilles,
thanks for your response. ;-)))
Quoted 3 lines · Gilles Chanteperdrix
I am trying to merge the debian changes back into Xenomai, however, I have two problems:
- I can not find back the 2.4.3-4 patch, I only find 2.4.3-7;
No problem - always just take the latest one, currently 2.4.3-7.
Quoted 7 lines
- I do not want to merge changes that replace
/bin/shwith/bin/bashsince we fixed the bashism the right way (it is important for people of the embedded world, that Xenomai does not require/bin/bash, since embedded boxes may use other shells);
- I do not want to include the manual pages in the debian/ sub-directory since I merged your patch adding manual pages to the proper place.
Fine. Just do the changes the way you like it Xenomai ("upstream"):
Bashism fixes and man pages in the proper upstream place. On next merge from Xenomai (e.g. 2.4.4 to Debian 2.4.4-1), I will synchronize it from xenomai.org. For 2.4.3, the respective change would require maintainer script regeneration due to changes in Makefile.am's, which I would like to prevent.
So feel free to do a 2.4.4 (or whatever) release soon. :-)
(For integrating the Debian changes in addition to the respective upstream changes, just remove the man pages in debian/, debian/xenomai-runtime.manpages and the /bin/bash patch.)
bye,
Roland
Quoted 26 lines · Roland Stigge
Hi Gilles,
thanks for your response. ;-)))
Quoted 3 lines · Gilles Chanteperdrix
I am trying to merge the debian changes back into Xenomai, however, I have two problems:
- I can not find back the 2.4.3-4 patch, I only find 2.4.3-7;No problem - always just take the latest one, currently 2.4.3-7.
Quoted 7 lines
- I do not want to merge changes that replace
/bin/shwith/bin/bashsince we fixed the bashism the right way (it is important for people of the embedded world, that Xenomai does not require/bin/bash, since embedded boxes may use other shells);
- I do not want to include the manual pages in the debian/ sub-directory since I merged your patch adding manual pages to the proper place.Fine. Just do the changes the way you like it Xenomai ("upstream"):
Bashism fixes and man pages in the proper upstream place. On next merge from Xenomai (e.g. 2.4.4 to Debian 2.4.4-1), I will synchronize it from xenomai.org. For 2.4.3, the respective change would require maintainer script regeneration due to changes in Makefile.am's, which I would like to prevent.
Quoted 5 lines
So feel free to do a 2.4.4 (or whatever) release soon. :-)
(For integrating the Debian changes in addition to the respective upstream changes, just remove the man pages in debian/, debian/xenomai-runtime.manpages and the
/bin/bashpatch.)
I would have felt more comfortable if you could have done it (and more importantly test it). Besides, the 2.4.4 release is coming, and I would have liked to release it with all the changes that you made.
Signature · 1 line
Gilles.
Hi,
Quoted 9 lines · Gilles Chanteperdrix
Quoted 5 lines
So feel free to do a 2.4.4 (or whatever) release soon. :-)
(For integrating the Debian changes in addition to the respective upstream changes, just remove the man pages in debian/, debian/xenomai-runtime.manpages and the
/bin/bashpatch.)I would have felt more comfortable if you could have done it (and more importantly test it). Besides, the 2.4.4 release is coming, and I would have liked to release it with all the changes that you made.
I'm attaching a patch that I would apply to branches/v2.4.x if it would be considered as 2.4.4.
Please note that on integrating Xenomai 2.4.4 (or whatever) upstream in Debian, I will strip debian/* from the original tarball to separate the Debian part from "upstream". For the same reason, please consider to remove it from the tarball. (It can stay in SVN, though.)
bye,
Roland
xenomai-2.4.4/configure.in renamed from configure.in +11 -0
@@ -799,6 +799,17 @@ doc/Makefile \ doc/txt/Makefile \ doc/man/Makefile \ + doc/man/clocktest.man \ + doc/man/cyclictest.man \ + doc/man/irqbench.man \ + doc/man/irqloop.man \ + doc/man/klatency.man \ + doc/man/latency.man \ + doc/man/rtcanconfig.man \ + doc/man/rtcanrecv.man \ + doc/man/rtcansend.man \ + doc/man/switchbench.man \ + doc/man/switchtest.man \ doc/man/runinfo.man \ doc/man/xeno-config.man \ doc/man/xeno-info.man \
xenomai-2.4.4/debian/changelog renamed from debian/changelog +60 -0
63 lines not on this page · raw message
xenomai-2.4.4/debian/control renamed from debian/control +3 -3
@@ -8,7 +8,7 @@ Package: xenomai-runtime Section: devel -Architecture: amd64 arm i386 ia64 powerpc +Architecture: amd64 arm armeb armel i386 ia64 powerpc Depends: ${shlibs:Depends} Suggests: linux-patch-xenomai, xenomai-doc Replaces: xenomai
@@ -47,7 +47,7 @@ Package: libxenomai1 Section: libs -Architecture: amd64 arm i386 ia64 powerpc +Architecture: amd64 arm armeb armel i386 ia64 powerpc Depends: ${shlibs:Depends} Suggests: linux-patch-xenomai, xenomai-doc Replaces: xenomai
@@ -64,7 +64,7 @@ Package: libxenomai-dev Section: libdevel -Architecture: amd64 arm i386 ia64 powerpc +Architecture: amd64 arm armeb armel i386 ia64 powerpc Depends: libxenomai1 (= ${binary:Version}) Suggests: linux-patch-xenomai, xenomai-doc Replaces: xenomai
xenomai-2.4.4/debian/libxenomai1.lintian renamed from debian/libxenomai1.lintian +1 -0
@@ -1 +1,2 @@ +# no contained shared library names refer to "xenomai", therefore own name libxenomai1: package-name-doesnt-match-sonames libnative1 libpsos0 libpthread-rt1 librtai0 librtdk0 librtdm1 libuitron0 libvrtx0 libvxworks1
xenomai-2.4.4/debian/libxenomai-dev.dirs renamed from debian/libxenomai-dev.dirs +1 -0
@@ -0,0 +1 @@ +usr/share/lintian/overrides
xenomai-2.4.4/debian/libxenomai-dev.install renamed from debian/libxenomai-dev.install +1 -0
@@ -4,6 +4,7 @@ usr/lib/*.a usr/lib/*.so usr/lib/posix.wrappers +usr/share/man/man1/xeno-config.1 ../../examples usr/share/libxenomai-dev ../../ksrc/skins/vxworks/demos usr/share/libxenomai-dev/examples/kernel/skins/vxworks ../../ksrc/skins/native/demos usr/share/libxenomai-dev/examples/kernel/skins/native
xenomai-2.4.4/debian/libxenomai-dev.lintian renamed from debian/libxenomai-dev.lintian +7 -0
@@ -0,0 +1,7 @@ +# Upstream author insists that those recursive directories exist for +# compatibility reasons of compiles applications +libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-generic/xenomai . +libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/asm . +libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/xenomai . +libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-x86/xenomai . +libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/xenomai .
xenomai-2.4.4/debian/linux-patch-xenomai.kpatches.in renamed from debian/linux-patch-xenomai.kpatches.in +3 -0
@@ -0,0 +1,3 @@ +Patch-name: Xenomai realtime kernel patches +Patch-id: xenomai +Architecture: all
xenomai-2.4.4/debian/linux-patch-xenomai.README.Debian renamed from debian/linux-patch-xenomai.README.Debian +15 -0
@@ -0,0 +1,15 @@ +Xenomai kernel patches in Debian +================================ + +With this package, you can patch and build kernels suitable for usage with +Xenomai. This can be done with, e.g.: + +# cd /usr/src/linux-source-2.6.24 +# fakeroot make-kpkg --initrd --added-patches xenomai kernel_image + +This is intended for vanilla and Debian kernel sources. + +NOTE: In the kernel config, PARAVIRT should be turned off for Xenomai kernels + to compile successfully. + + -- Roland Stigge <[email protected]>, Fri, 11 Apr 2008 09:02:28 +0200
xenomai-2.4.4/debian/prepare-patch.sh renamed from debian/prepare-patch.sh +17 -4
@@ -104,6 +104,9 @@ x86_64) base_arch=x86 ;; + x86) + base_arch=x86 + ;; *) base_arch=$linux_arch ;;
@@ -146,11 +149,11 @@ cd $xenomai_root -echo "Patch-name: Xenomai realtime kernel patches" > $xenomai_root/debian/linux-patch-xenomai.kpatches -echo "Patch-id: xenomai" >> $xenomai_root/debian/linux-patch-xenomai.kpatches -echo "Architecture: all" >> $xenomai_root/debian/linux-patch-xenomai.kpatches +#echo "Patch-name: Xenomai realtime kernel patches" > $xenomai_root/debian/linux-patch-xenomai.kpatches +#echo "Patch-id: xenomai" >> $xenomai_root/debian/linux-patch-xenomai.kpatches +#echo "Architecture: all" >> $xenomai_root/debian/linux-patch-xenomai.kpatches -find $xenomai_root/ksrc/ -name "adeos-ipipe-2.6.*.patch" | +find $xenomai_root/ksrc/ -name "adeos-ipipe-2.6.*-$supported_arch-*.patch" | while read f ; do file=`basename $f`
@@ -173,6 +176,9 @@ x86_64) march=amd64 ;; + x86) + march=i386 + ;; esac # Only one patch per arch/kver - Having a common plus kver/arch patch
@@ -183,6 +189,13 @@ echo "Kernel-version: $kver" >> $xenomai_root/debian/linux-patch-xenomai.kpatches echo "Architecture: $march" >> $xenomai_root/debian/linux-patch-xenomai.kpatches + if [ "$arch" = "x86" ] ; then + echo "" >> $xenomai_root/debian/linux-patch-xenomai.kpatches + echo "Patch-file: $file" >> $xenomai_root/debian/linux-patch-xenomai.kpatches + echo "Kernel-version: $kver" >> $xenomai_root/debian/linux-patch-xenomai.kpatches + echo "Architecture: amd64" >> $xenomai_root/debian/linux-patch-xenomai.kpatches + fi + cp $f $xenomai_root/$file cat $xenomai_root/$patch_file >> $xenomai_root/$file
xenomai-2.4.4/debian/rules renamed from debian/rules +20 -10
@@ -6,26 +6,32 @@ #export DH_VERBOSE=1 -DEB_BUILD_GNU_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) -DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) +DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) -ifeq ($(DEB_BUILD_ARCH), i386) +ifeq ($(DEB_HOST_ARCH), i386) # Note: Would like to use --includedir=/usr/include/xenomai, but # there appears to be a `make install` problem. CONFIG_OPTS = \ --enable-x86-tsc endif -ifeq ($(DEB_BUILD_ARCH), amd64) +ifeq ($(DEB_HOST_ARCH), amd64) CONFIG_OPTS = \ --enable-smp \ --enable-x86-tsc \ --enable-x86-sep endif -ifeq ($(DEB_BUILD_ARCH), powerpc) +ifeq ($(DEB_HOST_ARCH), powerpc) CONFIG_OPTS = endif -ifeq ($(DEB_BUILD_ARCH), arm) - CONFIG_OPTS = +ifeq ($(DEB_HOST_ARCH), armeb) + CONFIG_OPTS = --enable-arm-mach=imx --enable-arm-tsc --enable-arm-eabi +endif +ifeq ($(DEB_HOST_ARCH), armel) + CONFIG_OPTS = --enable-arm-mach=imx --enable-arm-tsc --enable-arm-eabi +endif +ifeq ($(DEB_HOST_ARCH), arm) + CONFIG_OPTS = --enable-arm-mach=imx --enable-arm-tsc endif CONFIG_OPTS += --prefix=/usr \ --includedir=/usr/include/xenomai \
@@ -46,9 +52,10 @@ patch-stamp: dh_testdir -# The kernel patches get generated next - Need to revisit again -# when 2.6.24 ipipe patch is released. - bash $(CURDIR)/debian/prepare-patch.sh arm i386 powerpc x86_64 + cp debian/linux-patch-xenomai.kpatches.in debian/linux-patch-xenomai.kpatches + for i in arm i386 powerpc x86_64 x86 ; do \ + bash $(CURDIR)/debian/prepare-patch.sh $$i ; \ + done touch patch-stamp config.status: configure-stamp
@@ -78,12 +85,14 @@ dh_install --sourcedir=$(CURDIR)/debian/tmp # xeno-config should be only in libxenomai-dev rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config + rm -f $(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1 for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \ cat $$f >> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ done # remove empty directory rm -rf $(CURDIR)/debian/xenomai-doc/usr/share/doc/xenomai-doc/ps cp debian/libxenomai1.lintian $(CURDIR)/debian/libxenomai1/usr/share/lintian/overrides/libxenomai1 + cp debian/libxenomai-dev.lintian $(CURDIR)/debian/libxenomai-dev/usr/share/lintian/overrides/libxenomai-dev dh_installkpatches # Build architecture-independent files here.
@@ -112,6 +121,7 @@ binary-arch: build install dh_testdir -s dh_testroot -s + dh_installman -s dh_installdocs -s -A CREDITS README.INSTALL TROUBLESHOOTING dh_installchangelogs -s ChangeLog dh_link -s
xenomai-2.4.4/debian/watch renamed from debian/watch +2 -0
@@ -0,0 +1,2 @@ +version=3 +http://download.gna.org/xenomai/stable/xenomai-(.*)\.tar\.bz2
xenomai-2.4.4/debian/xenomai-doc.install renamed from debian/xenomai-doc.install +1 -1
@@ -1 +1 @@ -usr/share/doc/xenomai-2.4.*/* usr/share/doc/xenomai-doc +usr/share/doc/xenomai/* usr/share/doc/xenomai-doc
xenomai-2.4.4/debian/xenomai-runtime.install renamed from debian/xenomai-runtime.install +1 -1
@@ -1,4 +1,4 @@ usr/bin usr/sbin usr/share/man -usr/share/xenomai usr/lib +usr/share/xenomai
xenomai-2.4.4/doc/man/Makefile.am renamed from doc/man/Makefile.am +4 -4
@@ -1,7 +1,7 @@ man1_MANS = xeno-config.man xeno-info.man xeno-load.man xeno-test.man \ - clocktest.man.in cyclictest.man.in irqbench.man.in irqloop.man.in \ - klatency.man.in latency.man.in rtcanconfig.man.in \ - rtcanrecv.man.in rtcansend.man.in switchbench.man.in \ - switchtest.man.in + clocktest.man cyclictest.man irqbench.man irqloop.man \ + klatency.man latency.man rtcanconfig.man \ + rtcanrecv.man rtcansend.man switchbench.man \ + switchtest.man man5_MANS = runinfo.man
xenomai-2.4.4/scripts/xeno-test.in renamed from scripts/xeno-test.in +15 -15
@@ -441,18 +441,18 @@ # #2. Much more testing. Heres a weak start. You migth be better off #using and improving test/test-xeno-test.rb. - -#!/bin/bash -PATH=.:$PATH -xeno-test -L -xeno-test -N foo -T 18 -l 6 -s -xeno-test -L -N foo1- -xeno-test -m -xeno-test -T 1 -M $USER@localhost -xeno-test -N foo0 -w0 -l 5 -T 30 -h -xeno-test -L -N foo4- -w4 -xeno-test -L -N foo4W- -w4 -W 'dd if=/dev/hda1 of=/dev/null' - -3. Repeat the same tests under the BusyBox. - -4. Check for border cases like missing awk, curl, mail, script, /proc/config.gz +# +##!/bin/bash +#PATH=.:$PATH +#xeno-test -L +#xeno-test -N foo -T 18 -l 6 -s +#xeno-test -L -N foo1- +#xeno-test -m +#xeno-test -T 1 -M $USER@localhost +#xeno-test -N foo0 -w0 -l 5 -T 30 -h +#xeno-test -L -N foo4- -w4 +#xeno-test -L -N foo4W- -w4 -W 'dd if=/dev/hda1 of=/dev/null' +# +#3. Repeat the same tests under the BusyBox. +# +#4. Check for border cases like missing awk, curl, mail, script, /proc/config.gz
Quoted 13 lines · Roland Stigge
Hi,
Quoted 9 lines · Gilles Chanteperdrix
Quoted 5 lines
So feel free to do a 2.4.4 (or whatever) release soon. :-)
(For integrating the Debian changes in addition to the respective upstream changes, just remove the man pages in debian/, debian/xenomai-runtime.manpages and the
/bin/bashpatch.)I would have felt more comfortable if you could have done it (and more importantly test it). Besides, the 2.4.4 release is coming, and I would have liked to release it with all the changes that you made.
Quoted 7 lines
I'm attaching a patch that I would apply to branches/v2.4.x if it would be considered as 2.4.4.
Please note that on integrating Xenomai 2.4.4 (or whatever) upstream in Debian, I will strip debian/* from the original tarball to separate the Debian part from "upstream". For the same reason, please consider to remove it from the tarball. (It can stay in SVN, though.)
Your patch is merged, thank you very much. I just removed the changelog entry about the 2.4.4 release, since, well, 2.4.4 is not released yet.
Shipping the xenomai tarball with the debian directory has a real added
value: it allows people to build debian package without anything else, this is an unofficial package, of course, but it can be built before the Debian patch is generated.
IMO, it would make your life easier if you considered the debian directory part of the Xenomai package, and start working from this directory. If you ask for it, we can probably even give you write access to the repository, so that the debian packaging effort is fully integrated to Xenomai.
Signature · 1 line
Gilles.
Hi,
Quoted 4 lines · Gilles Chanteperdrix
Shipping the xenomai tarball with the debian directory has a real added
value: it allows people to build debian package without anything else, this is an unofficial package, of course, but it can be built before the Debian patch is generated.
Well, for people who catch the package within the few hours between Xenomai release and the Debian version of it. ;-)
Quoted 5 lines
IMO, it would make your life easier if you considered the debian directory part of the Xenomai package, and start working from this directory. If you ask for it, we can probably even give you write access to the repository, so that the debian packaging effort is fully integrated to Xenomai.
As discussed earlier this year: Every Debian package is a (small) fork of the respective "upstream" release, with own Debian release numbers between upstream releases, e.g. 2.4.4-1 and 2.4.4-2. Maintaining this at xenomai.org would require branches on every (minor) Xenomai release, e.g. 2.4.3 and 2.4.4 (besides me having repository write access), because Debian revisions usually come out more often than "upstream" versions (as you have seen 2.4.3-1 ... 2.4.3-7). Therefore, I prefer maintaining it at Debian like most other packages. We already have "trunk" and the stable release branches at xenomai.org. The above would require an additional level of branching, maintenance and synchronization work.
Another solution at Debian is called "native" packages where Debian revisions and upstream versions are synchronized (i.e. no separate Debian revisions). The problem here is that at every point in time, Debian can decide to do a new revision (e.g. within a few hours on security fixes) which may not be in the interest of other xenomai maintainers. E.g. this way, Debian would decide when 2.4.5 and 2.4.6 (or 2.4.4.1 and 2.4.4.2?) will be released. This doesn't scale well with the number of Linux distros. ;)
For non-native packages in Debian (as Xenomai is currently), the debian/ directory is separated out into the .diff.gz patch which is good for seeing how e.g. debian/rules looks like. If I would take the current "upstream" tarball and only patch debian/rules in the diff.gz, the resulting contents of the file is no recognizable from the patch alone. Therefore, this is not common practice in Debian.
Further, it's not only me who works on Debian packages. Sometimes, when I'm not available, one of the other 1000 Debian developers will do Debian adjustments to the xenomai package in Debian. I guess you don't want to give all of them write access to xenomai.org. ;)
So you have the choice between the following possibilities:
1) Leave the process as it is (Debian using the upstream tarball, stripped from debian/*, and adding an own debian/* in a separately shipped patch)
2) Give me (and maybe Debian as a whole) write access to Xenomai.org and the right to branch at every "normal" Xenomai release, doing Debian revisions. Problem here: Additional work for Debian because not only Debian revisions must be done but also synchronization to the v2.4.x (stable) brach and trunk. (I.e. changes are most often in 3 places)
3) Give me (and maybe Debian as a whole) write access to Xenomai.org and the right to do xenomai releases whenever Debian wants (i.e. "native" Debian package)
I guess you prefer (1)? ;-)
bye,
Roland
Quoted 10 lines · Roland Stigge
Hi,
Quoted 4 lines · Gilles Chanteperdrix
Shipping the xenomai tarball with the debian directory has a real added
value: it allows people to build debian package without anything else, this is an unofficial package, of course, but it can be built before the Debian patch is generated.Well, for people who catch the package within the few hours between Xenomai release and the Debian version of it. ;-)
We like the Xenomai package to be as much "self-contained" as possible, which is why it ships with the generated autotools files, the generated documentation, the drivers and examples directories, and why I would prefer it to ship with a working debian directory.
Quoted 52 lines
Quoted 6 lines
IMO, it would make your life easier if you considered the debian directory part of the Xenomai package, and start working from this directory. If you ask for it, we can probably even give you write access to the repository, so that the debian packaging effort is fully integrated to Xenomai.
As discussed earlier this year: Every Debian package is a (small) fork of the respective "upstream" release, with own Debian release numbers between upstream releases, e.g. 2.4.4-1 and 2.4.4-2. Maintaining this at xenomai.org would require branches on every (minor) Xenomai release, e.g. 2.4.3 and 2.4.4 (besides me having repository write access), because Debian revisions usually come out more often than "upstream" versions (as you have seen 2.4.3-1 ... 2.4.3-7). Therefore, I prefer maintaining it at Debian like most other packages. We already have "trunk" and the stable release branches at xenomai.org. The above would require an additional level of branching, maintenance and synchronization work.
Another solution at Debian is called "native" packages where Debian revisions and upstream versions are synchronized (i.e. no separate Debian revisions). The problem here is that at every point in time, Debian can decide to do a new revision (e.g. within a few hours on security fixes) which may not be in the interest of other xenomai maintainers. E.g. this way, Debian would decide when 2.4.5 and 2.4.6 (or 2.4.4.1 and 2.4.4.2?) will be released. This doesn't scale well with the number of Linux distros. ;)
For non-native packages in Debian (as Xenomai is currently), the debian/ directory is separated out into the .diff.gz patch which is good for seeing how e.g. debian/rules looks like. If I would take the current "upstream" tarball and only patch debian/rules in the diff.gz, the resulting contents of the file is no recognizable from the patch alone. Therefore, this is not common practice in Debian.
Further, it's not only me who works on Debian packages. Sometimes, when I'm not available, one of the other 1000 Debian developers will do Debian adjustments to the xenomai package in Debian. I guess you don't want to give all of them write access to xenomai.org. ;)
So you have the choice between the following possibilities:
1) Leave the process as it is (Debian using the upstream tarball, stripped from debian/*, and adding an own debian/* in a separately shipped patch)
2) Give me (and maybe Debian as a whole) write access to Xenomai.org and the right to branch at every "normal" Xenomai release, doing Debian revisions. Problem here: Additional work for Debian because not only Debian revisions must be done but also synchronization to the v2.4.x (stable) brach and trunk. (I.e. changes are most often in 3 places)
Quoted 5 lines
3) Give me (and maybe Debian as a whole) write access to Xenomai.org and the right to do xenomai releases whenever Debian wants (i.e. "native" Debian package)
I guess you prefer (1)? ;-)
I am sorry to use this argument, because I love Debian as an end-user (actually, I installed my first Debian in 1997 and upgraded it until now, copying my hard disks when changing machines), but as far as I understood, the way Debian maintained a patch to the ssh package is the reason why a bug could remain unnoticed during two years in Debian distributions, including so-called "stable" distributions. So, maybe it is time for a change.
The only problem I have with the current scheme is that merging back debian patches in xenomai repository is rendered hard by the fact that the patch is generated against an empty debian directory. So, it looks to me like it would be much simpler for you to simply keep Xenomai own debian directory and generate patches against it. Of course it makes the patch a bit less readable, but I do not see how it violates a Debian policy.
But of course, if you insist, this probably can be worked around by writing some merging script.
Signature · 1 line
Gilles.
Hi,
Quoted 4 lines · Gilles Chanteperdrix
the way Debian maintained a patch to the ssh package is the reason why a bug could remain unnoticed during two years in Debian distributions, including so-called "stable" distributions. So, maybe it is time for a change.
First, it doesn't matter most how you maintain a patch. Most important is that sufficient code review is done, which unfortunately didn't happen in the libssl case.
Second, the actual libssl patch in .diff.gz was the following:
=======================================================================
diff -u openssl-0.9.8g/crypto/rand/md_rand.copenssl-0.9.8g/crypto/rand/md_rand.c
crypto/rand/md_rand.c +3 -0
@@ -271,7 +271,10 @@else MD_Update (&m,&(state[st_idx]),j); +/* +* Don't add uninitialised data. MD_Update(&m,buf,j); +*/ MD_Update (&m,(unsigned char *)&(md_c[0 ]),sizeof (md_c));MD_Final (&m,local_md); md_c[1 ]++;
=======================================================================
I.e. quite clear in my opinion. It wouldn't be if Debian wouldn't ship .diff.gz separately. (The above patch was actually reported upstream and there was no objection.)
Third, the above case is different from our case: While I consider debian/* as Debian specific, the above patch was not Debian specific (it was actually introduced to ease valgrind usage). Therefore, I even consider the libssl patch style (not the semantics! :-) ) above as good; but patching debian/* in Debian's diff.gz as bad.
Fourth, you are proposing the same patching technique as above (which you criticize as not appropriate).
Quoted 2 lines
But of course, if you insist, this probably can be worked around by writing some merging script.
Yeah, maybe this is the way to go. Easy to implement and minimizes the work for all participants.
bye,
Roland
Quoted 36 lines · Roland Stigge
Hi,
Quoted 4 lines · Gilles Chanteperdrix
the way Debian maintained a patch to the ssh package is the reason why a bug could remain unnoticed during two years in Debian distributions, including so-called "stable" distributions. So, maybe it is time for a change.
First, it doesn't matter most how you maintain a patch. Most important is that sufficient code review is done, which unfortunately didn't happen in the libssl case.
Second, the actual libssl patch in .diff.gz was the following:
=======================================================================
diff -uopenssl-0.9.8g/crypto/rand/md_rand.copenssl-0.9.8g/crypto/rand/md_rand.ccrypto/rand/md_rand.c +3
-0@@ -271,7 +271,10 @@else MD_Update (&m,&(state[st_idx]),j); +/* +* Don't add uninitialised data. MD_Update(&m,buf,j); +*/ MD_Update (&m,(unsigned char *)&(md_c[0 ]),sizeof (md_c));MD_Final (&m,local_md); md_c[1 ]++;=======================================================================
I.e. quite clear in my opinion. It wouldn't be if Debian wouldn't ship .diff.gz separately. (The above patch was actually reported upstream and there was no objection.)
Quoted 8 lines
Third, the above case is different from our case: While I consider debian/* as Debian specific, the above patch was not Debian specific (it was actually introduced to ease valgrind usage). Therefore, I even consider the libssl patch style (not the semantics! :-) ) above as good; but patching debian/* in Debian's diff.gz as bad.
Fourth, you are proposing the same patching technique as above (which you criticize as not appropriate).
What I criticize is patching without submitting patches upstream, or without consulting upstream package maintainers, or making debian patches hard to apply upstream.
For instance I saw there was a bug with generating debian packages for ARM. Instead of reporting this bug upstream, which, as the maintainer of Xenomai ARM port, I could have helped to resolve, you chose to resolve the bug silently, but unfortunately chose a solution which will not work with the imx21 and more generally for machines which do not provide tsc emulation in user-space based on a free-running counter. The proper solution is to add a "generic" architecture to the --enable-arm-mach option of the configure script, which sets the architecture to 4, disables the tsc emulation, and enables the SA1100 quirks. I will try to do this for the 2.4.4 release.
Quoted 6 lines
Quoted 3 lines
But of course, if you insist, this probably can be worked around by writing some merging script.
Yeah, maybe this is the way to go. Easy to implement and minimizes the work for all participants.
Ok. Will do that.
Signature · 1 line
Gilles
Hi,
Quoted 3 lines · Gilles Chanteperdrix
What I criticize is patching without submitting patches upstream, or without consulting upstream package maintainers, or making debian patches hard to apply upstream.
I both submitted to Xenomai upstream and provided an easy patch (not even assuming the stripped debian/*), you should be fully satisfied now... ;-)
For the libssl case, it was basically the same, as I understand it. (I'm not involved into Debian's openssl packaging, though.)
Quoted 4 lines
For instance I saw there was a bug with generating debian packages for ARM. Instead of reporting this bug upstream, which, as the maintainer of Xenomai ARM port, I could have helped to resolve, you chose to resolve the bug silently [...]
I just incorporated the patch by Riku Voipio for Debian #477720 which resolved the problem for Debian's ARM porters. (Further, I sent you the patch in a convenient way...)
If you have further improvements in 2.4.4, fine. :-)
bye,
Roland
PS: I hope it doesn't look to the others like we are complaining about each other's work. So for the rest of xenomai-core developers: This is just mine and Gilles' way to say "thanks for your work" to each other. ;-)))
Quoted 19 lines · Roland Stigge
Hi,
Quoted 3 lines · Gilles Chanteperdrix
What I criticize is patching without submitting patches upstream, or without consulting upstream package maintainers, or making debian patches hard to apply upstream.
I both submitted to Xenomai upstream and provided an easy patch (not even assuming the stripped debian/*), you should be fully satisfied now... ;-)
For the libssl case, it was basically the same, as I understand it. (I'm not involved into Debian's openssl packaging, though.)
Quoted 4 lines
For instance I saw there was a bug with generating debian packages for ARM. Instead of reporting this bug upstream, which, as the maintainer of Xenomai ARM port, I could have helped to resolve, you chose to resolve the bug silently [...]
Quoted 5 lines
I just incorporated the patch by Riku Voipio for Debian #477720 which resolved the problem for Debian's ARM porters. (Further, I sent you the patch in a convenient way...)
If you have further improvements in 2.4.4, fine. :-)
Ok. I have no excuse, it was even in the changelog if I did not want to read the whole patch. But technically you did not announce the 2.4.3-7 patch on Xenomai mailing list :-)
Quoted 3 lines
PS: I hope it doesn't look to the others like we are complaining about each other's work. So for the rest of xenomai-core developers: This is just mine and Gilles' way to say "thanks for your work" to each other. ;-)))
Yes, I should stress that I consider it as a great advance for the Xenomai project to have a Debian package, and thank you for the packaging hard work.
Signature · 1 line
Gilles