[Bug 2126785] Review Request: usbrelay - USB-connected electrical relay control, based on hidapi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2126785



--- Comment #12 from Paweł <pmarciniak@xxxxxxxxxxxx> ---
It looks like %sysusers_create_compat macro doesn't see rpm/usbrelay.sysusers
file.

But, if I include usbrelay.conf as a separate file e.g.

Source1: usbrelay.conf
....
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/usbrelay.conf
....
%sysusers_create_compat %{SOURCE1}

it starts to work properly.

$ rpm -qp --scripts usbrelay-mqtt-1.1-1.fc36.x86_64.rpm 
preinstall scriptlet (using /bin/sh):

# generated from usbrelay.conf
getent group 'usbrelay' >/dev/null || groupadd -r 'usbrelay' || :
postinstall scriptlet (using /bin/sh):

PS.

Currently, usbrelay owns an %{_sysusersdir}/usbrelay.conf file. Shouldn't it
belong to usbrelay-mqtt?


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2126785
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux