All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] libevl: Add debian package config
@ 2026-07-17 20:58 Hannes Diethelm
  2026-07-17 20:58 ` [PATCH 1/1] debian: add " Hannes Diethelm
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Hannes Diethelm @ 2026-07-17 20:58 UTC (permalink / raw)
  To: xenomai, rpm; +Cc: Hannes Diethelm

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-20 22:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 20:58 [PATCH 0/1] libevl: Add debian package config Hannes Diethelm
2026-07-17 20:58 ` [PATCH 1/1] debian: add " Hannes Diethelm
2026-07-20 14:30 ` [PATCH 0/1] libevl: Add " Jan Kiszka
2026-07-20 22:22   ` Hannes Diethelm
2026-07-20 14:38 ` Philippe Gerum
2026-07-20 15:55 ` Florian Bezdeka

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.