[PATCH 0/1] libevl: Add debian package config

Hannes Diethelm <[email protected]> Fri, 17 Jul 2026 22:58:19 +0200
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
This patch adds a debian package config that allows to build a deb's
using dpkg-buildpackage -b -uc.

The packages are libevl / libevl-test similar to[1]. However, latmus
is placed in libevl. One might not need the tests but still want to
use latmus.

Additionally, libevl installs /usr/lib/udev/rules.d/90-libevl.rules which sets all evl
device files to group evl, g+rw. libevl.postinst adds this group and triggers an udev reload.

This allows to use libevl without root. However, using SCHED_FIFO still
needs either root or setcap cap_sys_nice+ep and possibly some other tweaks.
Some tests and my application work with cap_sys_nice+ep. However, for example latmus fails
due to unknown reasons. The debian packages sets no capabilities but this could be added
if desired.

Caveats:

The test ptrace-sync fails with <timeout waiting for gdb>. dh_strip -Xptrace-sync from[1]
does not help and it is not needed: When libevl-test-dbgsym is installed, the symbols are
available but the test still fails. With dh_strip -Xptrace-sync, the symbols are not found:
warning: could not find '.gnu_debugaltlink' file for /usr/libexec/evl/tests/ptrace-sync

If linux-evl is also built and installed as a debian package, linux-libc-dev can not be
installed due to /usr/include/evl/*-abi.h are both installed by libevl and linux-libc-dev
from the kernel build. However, installing linux-libc-dev from debian trixie works fine.

[1] https://gitlab.com/Xenomai/xenomai-images/-/tree/master/recipes-xenomai/libevl/files/debian?ref_type=heads

Hannes Diethelm (1):
  debian: add debian package config

 debian/README.Debian        |  6 ++++
 debian/changelog            |  5 ++++
 debian/control              | 33 ++++++++++++++++++++++
 debian/copyright            | 55 +++++++++++++++++++++++++++++++++++++
 debian/libevl-test.install  |  2 ++
 debian/libevl.install       | 11 ++++++++
 debian/libevl.postinst      | 50 +++++++++++++++++++++++++++++++++
 debian/libevl.postrm        | 41 +++++++++++++++++++++++++++
 debian/rules                | 22 +++++++++++++++
 debian/source/format        |  1 +
 debian/udev/90-libevl.rules | 12 ++++++++
 11 files changed, 238 insertions(+)
 create mode 100644 debian/README.Debian
 create mode 100644 debian/changelog
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/libevl-test.install
 create mode 100644 debian/libevl.install
 create mode 100644 debian/libevl.postinst
 create mode 100644 debian/libevl.postrm
 create mode 100755 debian/rules
 create mode 100644 debian/source/format
 create mode 100644 debian/udev/90-libevl.rules

-- 
2.47.3