Bug 1543306 - broken %postun scriptlet in ibus-libs package
Summary: broken %postun scriptlet in ibus-libs package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-08 08:32 UTC by Mattias Ellert
Modified: 2018-02-27 16:52 UTC (History)
3 users (show)

Fixed In Version: ibus-1.5.17-6.fc27 ibus-1.5.17-6.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-14 17:30:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mattias Ellert 2018-02-08 08:32:14 UTC
Description of problem:

When updating the ibus-libs package the postun scriptlet fails and emits an error:

Non-fatal POSTUN scriptlet failur in rpm package ibus-libs

Version-Release number of selected component (if applicable):

ibus-libs-1.5.17-5.fc27.x86_64 (and others)

How reproducible:

Always.

Steps to Reproduce:
1. Update ibus-libs (using a method that doesn's silently hide errors)
2. See the error message

Actual results:

You can see that there is an issue using the command
$ echo ---- ; rpm -q --scripts ibus-libs; echo ----
----
postinstall program: /sbin/ldconfig
postuninstall scriptlet (using /sbin/ldconfig):

# FIXME: no version number
----

Expected results:

What you expect is the following:
$ echo ---- ; rpm -q --scripts -p results_ibus/1.5.17/7.fc28/ibus-libs-1.5.17-7.fc27.x86_64.rpm ; echo ----
----
postinstall program: /sbin/ldconfig
postuninstall program: /sbin/ldconfig
----

I.e. The %postun script should be empty, like the %post script is. The FIXME comment in the specfile is currently placed in the %postun scriptlet, and /sbin/ldconfig does not understand it and throws an error.

Additional info:

This can be fixed by moving the FIXME comment into the %files section:

diff --git a/ibus.spec b/ibus.spec
index b0ac4ca..8ff21f7 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -346,8 +346,8 @@ dconf update || :
 
 %ldconfig_scriptlets libs
 
-# FIXME: no version number
 %files -f %{name}10.lang
+# FIXME: no version number
 %doc AUTHORS COPYING README
 %dir %{_datadir}/ibus/
 %{_bindir}/ibus

The rpm used in the "Expected results" section was built with this change.

Comment 1 Fedora Update System 2018-02-09 06:28:45 UTC
ibus-1.5.17-6.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-abc8910c09

Comment 2 Fedora Update System 2018-02-09 06:28:52 UTC
ibus-1.5.17-6.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-27cb0cd918

Comment 3 Fedora Update System 2018-02-09 18:35:30 UTC
ibus-1.5.17-6.fc26 has been pushed to the Fedora 26 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-27cb0cd918

Comment 4 Fedora Update System 2018-02-09 18:48:01 UTC
ibus-1.5.17-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-abc8910c09

Comment 5 Fedora Update System 2018-02-14 17:30:31 UTC
ibus-1.5.17-6.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2018-02-27 16:52:50 UTC
ibus-1.5.17-6.fc26 has been pushed to the Fedora 26 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.