Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lirc for openSUSE:Factory checked in 
at 2026-01-26 10:43:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lirc (Old)
 and      /work/SRC/openSUSE:Factory/.lirc.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lirc"

Mon Jan 26 10:43:51 2026 rev:80 rq:1328946 version:0.10.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/lirc/lirc.changes        2025-02-12 
21:31:37.910489988 +0100
+++ /work/SRC/openSUSE:Factory/.lirc.new.1928/lirc.changes      2026-01-26 
10:45:29.003664576 +0100
@@ -1,0 +2,8 @@
+Fri Jan 23 10:48:40 UTC 2026 - Bernhard Wiedemann <[email protected]>
+
+- Add lirc.sysusers to replace useradd/groupadd/usermod for transactional
+  updates (jsc#PED-14918)
+- Add lirc-rpmlintfix.patch to make rpmlint happy
+- Add %check from Fedora
+
+-------------------------------------------------------------------

New:
----
  lirc-rpmlintfix.patch
  lirc.sysusers

----------(New B)----------
  New:  updates (jsc#PED-14918)
- Add lirc-rpmlintfix.patch to make rpmlint happy
- Add %check from Fedora
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lirc.spec ++++++
--- /var/tmp/diff_new_pack.lHNCzT/_old  2026-01-26 10:45:30.095710413 +0100
+++ /var/tmp/diff_new_pack.lHNCzT/_new  2026-01-26 10:45:30.099710581 +0100
@@ -31,11 +31,13 @@
 URL:            http://www.lirc.org/
 Source0:        
https://downloads.sourceforge.net/project/lirc/LIRC/%{version}/lirc-%{version}.tar.bz2
 Source1:        baselibs.conf
+Source9:        %{name}.sysusers
 Patch0:         reproducible.patch
 Patch1:         harden_irexec.service.patch
 Patch2:         harden_lircd-uinput.service.patch
 Patch3:         harden_lircd.service.patch
 Patch4:         harden_lircmd.service.patch
+Patch5:         lirc-rpmlintfix.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  gobject-introspection
@@ -59,6 +61,11 @@
 BuildRequires:  pkgconfig(systemd)
 BuildRequires:  pkgconfig(udev)
 BuildRequires:  pkgconfig(x11)
+BuildRequires:  sysuser-tools
+# for tests:
+BuildRequires:  expect
+BuildRequires:  socat
+%sysusers_requires
 Requires:       udev
 Recommends:     lirc-remotes
 Suggests:       lirc-kmp
@@ -159,6 +166,7 @@
 Group:          Hardware/Other
 Requires:       %{name}-core = %{version}-%{release}
 Recommends:     lirc-core = %{version}
+BuildArch:      noarch
 
 %description  disable-kernel-rc
 Udev rule which disables the kernel built-in handling of infrared devices
@@ -214,6 +222,7 @@
 %build
 %configure --enable-devinput
 make %{?_smp_mflags}
+%sysusers_generate_pre %{SOURCE9} %{name} %{name}.conf
 
 %install
 %make_install
@@ -235,13 +244,14 @@
 install -Dpm 644 contrib/99-remote-control-lirc.rules \
     %{buildroot}%{_udevrulesdir}/99-remote-control-lirc.rules
 # get rid of libtool file
-find %{buildroot} -type f -name "*.la" -delete -print
+find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
 #
 #
 # Don't install documentation in a non standard directory
 rm -rf %{buildroot}%{_datadir}/{,%{name}/}doc
 # hide python dependency
 chmod a+x %{buildroot}%{_bindir}/pronto2lirc
+install -D -m 0644 %{SOURCE9} %{buildroot}%{_sysusersdir}/%{name}.conf
 mkdir -p %{buildroot}%{_rundir}
 # Remove old %%{_rundir}; deprecated but still installed by lirc, which is not 
looking for it
 rm -rf %{buildroot}%{_localstatedir}
@@ -260,6 +270,20 @@
 %python3_fix_shebang_path %{buildroot}%{python3_sitearch}/lirc-setup/*
 %endif
 
+%check
+%if 0%{?suse_version} >= 1600
+if test -d python-pkg/tests; then
+    cd python-pkg/tests; python3 -m unittest discover || exit 1
+    cd $OLDPWD
+fi
+%endif
+ 
+echo "Plugins: 34" > summary.ok
+echo "Drivers: 45" >> summary.ok
+echo "Errors: 0"   >> summary.ok
+tools/lirc-lsplugins -U plugins/.libs -s > summary
+diff -w summary summary.ok || exit 1
+
 %post -n liblirc_client0 -p /sbin/ldconfig
 %post -n liblirc_driver0 -p /sbin/ldconfig
 %post -n liblirc0 -p /sbin/ldconfig
@@ -270,13 +294,6 @@
 %postun -n libirrecord0 -p /sbin/ldconfig
 
 %pre core
-getent group lirc >/dev/null || groupadd -r lirc
-getent passwd lirc >/dev/null || \
-    useradd -r -g lirc -d %{_localstatedir}/log/lirc -s /sbin/nologin \
-        -c "LIRC daemon user, runs lircd." lirc
-usermod -a -G dialout lirc &> /dev/null || :
-usermod -a -G lock lirc &> /dev/null || :
-usermod -a -G input lirc &> /dev/null || :
 %service_add_pre lircd.service lircmd.service lircd-uinput.service 
lircd-setup.service lircd.socket irexec.service
 
 %post core
@@ -296,9 +313,9 @@
 %doc contrib
 %dir %{_datadir}/%{name}
 %dir %{_libdir}/%{name}
-%dir %ghost %{_rundir}/lirc
-%ghost %{_rundir}/lirc/lircm
-%ghost %{_rundir}/lirc/lircd
+%dir %ghost %attr(0755,root,root) %{_rundir}/lirc
+%ghost %attr(0644,root,root) %{_rundir}/lirc/lircm
+%ghost %attr(0644,root,root) %{_rundir}/lirc/lircd
 %exclude %{_bindir}/irxevent
 %exclude %{_bindir}/xmode2
 %{_bindir}/*
@@ -323,6 +340,7 @@
 %config(noreplace,missingok) %{_sysconfdir}/%{name}/irexec.lircrc
 %{_unitdir}/lirc*
 %{_unitdir}/irexec.service
+%{_sysusersdir}/%{name}.conf
 %{_tmpfilesdir}/lirc.conf
 
 %files devel

++++++ lirc-rpmlintfix.patch ++++++
diff --git a/doc/lirc-data2table b/doc/lirc-data2table
index 14c492b..9f79327 100644
--- a/doc/lirc-data2table
+++ b/doc/lirc-data2table
@@ -1,3 +1,4 @@
+#!/usr/bin/python3
 ''' Create the lirc Supported Devices Table using data in hardware.yaml '''
 
 import glob
diff --git a/tools/lirc-postinstall b/tools/lirc-postinstall
index a0d0830..ccdd169 100755
--- a/tools/lirc-postinstall
+++ b/tools/lirc-postinstall
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
 #
 # Perform post-install updates after lirc or externak driver install:
 #  - Create the drivers.yaml list from the configs directory

++++++ lirc.sysusers ++++++
#Type Name  ID GECOS            Home directory  Shell
g     lirc  -  -                             -  -
u     lirc  -  "LIRC daemon user, runs lircd" /log/lirc -
m     lirc  dialout
m     lirc  lock
m     lirc  input

Reply via email to