public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Lind <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/bluez] f45: hid2hci: don't fail %post when udevadm is unavailable
Date: Tue, 03 Nov 2026 12:45:06 GMT [thread overview]
Message-ID: <179370990651.1.4767788100400348326.rpms-bluez-7fc70ac9a125@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bluez
Branch : f45
Commit : 7fc70ac9a125df215e5a0aa7da09999c2a24154e
Author : Michel Lind <salimma@fedoraproject.org>
Date : 2026-11-03T10:45:55+00:00
Stats : +11/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/bluez/c/7fc70ac9a125df215e5a0aa7da09999c2a24154e?branch=f45
Log:
hid2hci: don't fail %post when udevadm is unavailable
The hid2hci %post scriptlet calls /sbin/udevadm, which is provided by
systemd-udev, but nothing requires that package. In a minimal root
(e.g. mock --postinst) the scriptlet fails with exit status 127 and the
transaction is reported as failed.
Retriggering USB devices is only a convenience so the new rule applies
to already-connected devices, so skip it when udevadm is not installed
and tolerate it failing (e.g. in containers with a read-only /sys).
Add an ordering hint so udevadm is available when both are installed
in the same transaction.
Assisted-by: Claude Code:claude-opus-5-5
(cherry picked from commit 72cc379054d7d42c9bdd972b9c03005066ee7409)
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/bluez.spec b/bluez.spec
index 5b07b9e..e0ed33e 100644
--- a/bluez.spec
+++ b/bluez.spec
@@ -13,7 +13,7 @@
Name: bluez
Version: 5.87+1.git%{gitsha}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Bluetooth utilities
License: GPL-2.0-or-later
URL: http://www.bluez.org/
@@ -103,6 +103,8 @@ use in Bluetooth applications.
%package hid2hci
Summary: Put HID proxying bluetooth HCI's into HCI mode
Requires: bluez%{?_isa} = %{version}-%{release}
+# Order after udev when both are installed, without depending on it
+OrderWithRequires(post): systemd-udev
%description hid2hci
Most allinone PC's and bluetooth keyboard / mouse sets which include a
@@ -221,7 +223,11 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
%systemd_postun_with_restart bluetooth.service
%post hid2hci
-/sbin/udevadm trigger --subsystem-match=usb
+# udevadm is not installed in minimal roots (containers, mock)
+if command -v udevadm >/dev/null; then
+ # retrigger is best-effort, e.g. /sys may be read-only in containers
+ udevadm trigger --subsystem-match=usb || :
+fi
%post mesh
%systemd_user_post bluetooth-mesh.service
@@ -344,6 +350,9 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
%{_userunitdir}/obex.service
%changelog
+* Tue Nov 03 2026 Michel Lind <salimma@fedoraproject.org> - 5.87+1.git789f6e154-3
+- hid2hci: don't fail %%post when udevadm is unavailable
+
* Wed Sep 16 2026 Peter Robinson <pbrobinson@fedoraproject.org> - 5.87+1.git789f6e154-2
- Rebase to latest upstream. Fixes CVE-2026-19774 (rhbz:2535010)
reply other threads:[~2026-11-03 12:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179370990651.1.4767788100400348326.rpms-bluez-7fc70ac9a125@fedoraproject.org \
--to=salimma@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox