Bug 1536901 - Non-fatal POSTIN scriptlet failure in rpm package lirc-core
Summary: Non-fatal POSTIN scriptlet failure in rpm package lirc-core
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lirc
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alec Leamas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-22 01:14 UTC by Sergio Basto
Modified: 2018-01-30 18:05 UTC (History)
4 users (show)

Fixed In Version: lirc-0.10.0-6.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-30 18:05:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Add generic systemd R: to core sub-package (689 bytes, patch)
2018-01-22 16:56 UTC, Alec Leamas
no flags Details | Diff

Description Sergio Basto 2018-01-22 01:14:31 UTC
Hello I'm seeing this on koji build for F27 in arm and rpmfusion ... 

Description of problem:

DEBUG util.py:479:  /var/tmp/rpm-tmp.E5tyTK: line 7: systemd-tmpfiles: command not found
DEBUG util.py:479:  warning: %post(lirc-core-0.10.0-4.fc27.armv7hl) scriptlet failed, exit status 127

Version-Release number of selected component (if applicable):
lirc-core-0.10.0-4.fc27.armv7hl

How reproducible:
try to build mythtv-29.0-9.20180111.77.g771115f47d.fc27.src.rpm

Steps to Reproduce:
1.
2.
3.

Actual results:
%post scriplet fails

Expected results:
not fail 

Additional info:
http://koji.rpmfusion.org/kojifiles/work/tasks/2316/192316/root.log

Comment 1 Richard Shaw 2018-01-22 13:14:16 UTC
When I first noticed this I noticed it only seems to happen in a mock chroot environment. I don't think it's a big deal but it may be possible for the script to know when it's in a chroot and not execute...

Comment 2 Alec Leamas 2018-01-22 14:19:14 UTC
I don't have the sources at hand, but it might be as simple as a missing Requires(post): systemd... Will look into it later today  or tomorrow

--a

Comment 3 Alec Leamas 2018-01-22 16:52:19 UTC
Hm... 

$ dnf repoquery --releasever=27 -f /usr/bin/systemd-tmpfiles
...
systemd-0:234-8.fc27.i686

From the spec:
   Requires(post):    systemd


From the log: 

/var/tmp/rpm-tmp.E5tyTK: line 7: systemd-tmpfiles: command not found
warning: %post(lirc-core-0.10.0-4.fc27.armv7hl) scriptlet failed, exit status 127


To me, this makes no sense. I cannot see that lirc does anything wrong. Can you? Should this be re-assigned? systemd? mock? 

Scratching whatever hair still left. Thoughts?

Or: Is it that the R(post) is missing within the core package?

Comment 4 Alec Leamas 2018-01-22 16:56:40 UTC
Created attachment 1384534 [details]
Add generic systemd R: to core sub-package

Tentative fix, just a try

Comment 5 Alec Leamas 2018-01-22 16:57:53 UTC
Could you possibly try the attached patch?

Comment 6 Sergio Basto 2018-01-22 17:00:44 UTC

(In reply to Alec Leamas from comment #3)
> Hm... 
> 
> $ dnf repoquery --releasever=27 -f /usr/bin/systemd-tmpfiles
> ...
> systemd-0:234-8.fc27.i686
> 
> From the spec:
>    Requires(post):    systemd
>

but root.log show that only installed systemd-libs [1] so seems correct ...


[1]
DEBUG util.py:479:   systemd-libs                 armv7hl  234-9.fc27                  build  432 k

Comment 7 Alec Leamas 2018-01-22 17:23:52 UTC
Could you possibly try the attached patch?

Comment 8 Alec Leamas 2018-01-22 17:26:33 UTC
sorry for the mess... but it actually make sense.  The R(post) in current spec applies ti the base package, but we have error in the -core subpackage. If I'm right, tthe patch should fix it? Or?

Comment 9 Sergio Basto 2018-01-22 17:34:52 UTC
yes the patch should fix it [1] , please apply it and many thanks 


[1]
   rpm -E %{?systemd_requires}

Requires(post): systemd 
Requires(preun): systemd 
Requires(postun): systemd

Comment 10 Fedora Update System 2018-01-22 18:12:01 UTC
lirc-0.10.0-6.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-7581993a47

Comment 11 Alec Leamas 2018-01-22 18:12:46 UTC
Thanks for reporting!

Comment 12 Fedora Update System 2018-01-23 23:42:27 UTC
lirc-0.10.0-6.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-7581993a47

Comment 13 Fedora Update System 2018-01-30 18:05:14 UTC
lirc-0.10.0-6.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.