Devuan bug report logs - #598
eudev: regex in preinst script prevents installation

Package: eudev; Maintainer for eudev is Devuan Dev Team <>; Source for eudev is src:eudev.

Reported by: David Paul <>

Date: Fri, 6 Aug 2021 02:52:01 UTC

Severity: grave

Tags: patch

Found in version 3.2.9-9

Fixed in version 3.2.9-10


Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Devuan Dev Team <>:
bug#598; Package eudev. (Fri, 06 Aug 2021 02:52:01 GMT) (full text, mbox, link).

Acknowledgement sent to David Paul <>:
New bug report received and forwarded. Copy sent to Devuan Dev Team <>. (Fri, 06 Aug 2021 02:52:05 GMT) (full text, mbox, link).

Message #5 received at (full text, mbox, reply):

From: David Paul <>
To: Devuan Bug Tracking System <>
Subject: eudev: regex in preinst script prevents installation
Date: Thu, 5 Aug 2021 21:42:36 -0500
[Message part 1 (text/plain, inline)]
Package: eudev
Version: 3.2.9-9
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Maintainer,

### Summary:
Please apply the attached patch to the eudev source package. A
similar change should also be made to Debian's systemd source package.

### Details:
Last week a user on the Devuan support IRC reported an inability to
upgrade eudev while attempting to perform an upgrade from ASCII to
Beowulf. After much back and forth, I was able to determine the cause
to be a regular expression in the preinst script for the eudev package.
(For the full
conversion see the IRC log beginning at
and ending at
The regex in question is responsible for verifying the presence of six
kernel system call symbols required for eudev to function.
Unfortunately, because of prefixes on the names of the symbols in
the /proc/kallsyms file, the current version of the regex fails to
identify the presence of all the needed symbols. As can be seen in the
timeline that follows, this same issue was discovered November of
2018 and the problematic regular expression was modified accordingly.
Unfortunately, when the eudev maintainer scripts were modified in
January of 2020 to more closely match those of the udev binary package
from the Debian systemd source package, the regex in the check was
inadvertently reverted to the pre-2018 problematic version. The
attached patch modifies the regex back to its fixed version.

For the sake of completeness, it should be noted that the issue
mentioned in Debian bug #552778 (see 2009-11-10 in the timeline that
follows) is left unaddressed by this patch. Given that it involves a
processor architecture no longer supported by Debian (never supported
by Devuan) and applies to an issue with a 12 year old kernel, I think
it can be safely ignored. I will nevertheless be preforming experiments
with a Power Mac G5 to determine if this issue was every resolved
merely through the use of newer kernels. If an additional patch is
required as a result of these tests I will file a separate bug report.

### Timeline (reverse chronological order):
The eudev.{init,preinst,postinst,prerm} scripts are modified to more
closely match the udev.{init,preinst,postinst,prerm} scripts in the
Debian package systemd 243-8 (see In
the process the regex in question in the eudev.preinst is inadvertently
reverted to the earlier problematic version.
The regex in the kernel symbol check in eudev.preinst is changed to
contain "(_+.*_)" in place of "\.?" for detecting prefixed symbol
names. This change is the result of a conversation on IRC spanning from
The eudev.preinst symlink to udev.preinst is replaced with a standard
file and udev.preinst is deleted.
eudev.preinst is added as a symlink to udev.preinst
The first commit with a debian/ directory is added to the current eudev
packaging repository. Included is a udev.preinst file. Prior early
debian packaging work is referenced in the included debian/changelog
file, but as far as I can tell that early work is not publicly
preserved, though I'd be happy to be proved wrong about that.
The explicit checks in udev.preinst and udev.postinst for linux kernel
versions >= 2.6.32, which was released in 2009, are dropped. Support
for forcing udev upgrades via /etc/udev/kernel-upgrade to kernels known
to not be compatible is also dropped. check_kernel_features() remains
in udev.preinst but is simplified.
A check is added to udev.preinst for the syscall symbol accept4,
resolving Debian bug #648325.
Checks are added to udev.preinst for the syscall symbols
open_by_handle_at, timerfd_create, and epoll_create.
Following the merging of udev into systemd upstream, debian/ files from
udev 175-7 are incorporated into the systemd source package.
The explicit kernel version incompatibilities are removed in
debian/control from the udev package stanza.
The regex in the udev preinst script is changed to also match kernel
symbols with a leading dot to address Debian bug #552778 involving a
powerpc64 system.
The check_kernel_features() function is first added to the udev.preinst
script. The function checks for the inotify_init and signalfd system
call symbols.
[eudev-preinst-fix.patch (text/x-patch, attachment)]

Information forwarded to, Devuan Dev Team <>:
bug#598; Package eudev. (Fri, 06 Aug 2021 17:12:02 GMT) (full text, mbox, link).

Acknowledgement sent to "David (Plasma) Paul" <>:
Extra info received and forwarded to list. Copy sent to Devuan Dev Team <>. (Fri, 06 Aug 2021 17:12:04 GMT) (full text, mbox, link).

Message #10 received at (full text, mbox, reply):

From: "David (Plasma) Paul" <>
Subject: Corrected patch for Devuan bug #598
Date: Fri, 6 Aug 2021 12:03:16 -0500
[Message part 1 (text/plain, inline)]

I just realized that the patch I submitted yesterday with the original
bug report is missing a single question mark. While the patch, as sent,
does indeed fix the issue for systems affected by it, it actually
_causes_ the issue on systems that were working fine. Oops!

The corrected patched is attached.
[eudev-preinst-corrected-fix.patch (text/x-patch, attachment)]

Reply sent to
You have taken responsibility. (Sun, 05 Sep 2021 22:52:23 GMT) (full text, mbox, link).

Notification sent to David Paul <>:
bug acknowledged by developer. (Sun, 05 Sep 2021 22:52:25 GMT) (full text, mbox, link).

Message #15 received at (full text, mbox, reply):

Subject: #598: fixed in src:eudev version 3.2.9-10
Date: Sun, 05 Sep 2021 21:29:25 +0000
Version: 3.2.9-10

Source package eudev (3.2.9-10) added to Devuan suite unstable.

This closes bug report 598.


DAK managing the Devuan archive

Hash: SHA512

Format: 1.8
Date: Sat, 04 Sep 2021 13:05:24 +0200
Source: eudev
Architecture: source
Version: 3.2.9-10
Distribution: unstable
Urgency: high
Maintainer: Devuan Dev Team <>
Changed-By: Svante Signell <>
Closes: 407 598 600
 eudev (3.2.9-10) unstable; urgency=high
   * debian/eudev.maintscript: Remove. Fixes build with debhelper 13.5.
   * debian/changelog: Fix indentation and long lines.
   * debian/eudev.preinst: Fix detection of needed kernel features for
     recent kernels. (Closes: #407, #598)
   * debian/control: Remove dependency on debconf.
   * debian/eudev.postrm: Remove db_purge since we no longer use debconf.
     (Closes: #600)
 5ce112896d9724eaa7b38fa98987e9c7a088b4c4 2349 eudev_3.2.9-10.dsc
 7828272d2f41b7934340975d0e1c4d788780060b 62388 eudev_3.2.9-10.debian.tar.xz
 33c9448e580a35ff8d503846fc70814b36194f98 5158 eudev_3.2.9-10_source.buildinfo
 6edeac63382214a78eb0ee2267021ef32617155c20aea71cbdeff22e65e20e6d 2349 eudev_3.2.9-10.dsc
 3a9198b282ae092f28a4f0766c35d8369f5ac7a2e41b48842bd2cd5a655d8838 62388 eudev_3.2.9-10.debian.tar.xz
 0f218435c089746fa805aed6eda76705c944b2081e7e51a6d7e8bd35ae104e3b 5158 eudev_3.2.9-10_source.buildinfo
 3fd2203af8cb37e2d5a2f3deffbddace 2349 admin optional eudev_3.2.9-10.dsc
 1aebdadfe119630c4aa38925e6487428 62388 admin optional eudev_3.2.9-10.debian.tar.xz
 e2621664cfd62622da0206b953c1ac27 5158 admin optional eudev_3.2.9-10_source.buildinfo



Information forwarded to, Devuan Dev Team <>:
bug#598; Package eudev. (Tue, 16 Nov 2021 23:10:02 GMT) (full text, mbox, link).

Acknowledgement sent to Dimitris <>:
Extra info received and forwarded to list. Copy sent to Devuan Dev Team <>. (Tue, 16 Nov 2021 23:10:05 GMT) (full text, mbox, link).

Message #20 received at (full text, mbox, reply):

From: Dimitris <>
Subject: 598 followup
Date: Wed, 17 Nov 2021 01:00:19 +0200

i know this is closed/fixed, but can the fixed version also be copied to 
fixed version 3.2.9-10~beowulf1 is only available at 
beowulf-proposed-updates/main now.

some more info available here :


Send a report that this bug log contains spam.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <>.
Last modified: Tue May 17 16:38:56 2022;