RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1609331 - libffi: Uninstall of libffi-devel fails with tsflags=nodocs
Summary: libffi: Uninstall of libffi-devel fails with tsflags=nodocs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libffi
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: DJ Delorie
QA Contact: Michal Kolar
URL:
Whiteboard:
Depends On:
Blocks: 1710255
TreeView+ depends on / blocked
 
Reported: 2018-07-27 15:25 UTC by Yaakov Selkowitz
Modified: 2020-03-31 19:58 UTC (History)
5 users (show)

Fixed In Version: libffi-3.0.13-19.el7
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 19:58:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch for rhel-7.6 (1.37 KB, patch)
2018-07-27 15:27 UTC, Yaakov Selkowitz
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1090 0 None None None 2020-03-31 19:58:06 UTC

Description Yaakov Selkowitz 2018-07-27 15:25:41 UTC
Description of problem:
libffi-devel will not uninstall when installed with tsflags=nodocs.

Version-Release number of selected component (if applicable):
libffi-3.0.13-18.el7

How reproducible:
100%

Steps to Reproduce:
1. yum install --setopt=tsflags=nodocs libffi-devel
2. yum erase --setopt=tsflags=nodocs libffi-devel

Actual results:

$ sudo yum -y install --setopt=tsflags=nodocs libffi-devel
[sudo] password for yselkowi: 
Loaded plugins: auto-update-debuginfo, product-id, search-disabled-
              : repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package libffi-devel.aarch64 0:3.0.13-18.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================
 Package       Arch     Version        Repository               Size
=====================================================================
Installing:
 libffi-devel  aarch64  3.0.13-18.el7  rhel-7-for-arm-64-rpms   22 k

Transaction Summary
=====================================================================
Install  1 Package

Total download size: 22 k
Installed size: 23 k
Downloading packages:
libffi-devel-3.0.13-18.el7.aarch64.rpm          |  22 kB   00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libffi-devel-3.0.13-18.el7.aarch64                1/1 
install-info: No such file or directory for /usr/share/info/libffi.info.gz
warning: %post(libffi-devel-3.0.13-18.el7.aarch64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package libffi-devel-3.0.13-18.el7.aarch64
  Verifying  : libffi-devel-3.0.13-18.el7.aarch64                1/1 

Installed:
  libffi-devel.aarch64 0:3.0.13-18.el7                               

Complete!
$ sudo yum -y erase --setopt=tsflags=nodocs libffi-devel
Loaded plugins: auto-update-debuginfo, product-id, search-disabled-
              : repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package libffi-devel.aarch64 0:3.0.13-18.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================
 Package      Arch    Version          Repository               Size
=====================================================================
Removing:
 libffi-devel aarch64 3.0.13-18.el7    @rhel-7-for-arm-64-rpms  23 k

Transaction Summary
=====================================================================
Remove  1 Package

Installed size: 23 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
install-info: No such file or directory for /usr/share/info/libffi.info.gz
error: %preun(libffi-devel-3.0.13-18.el7.aarch64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package libffi-devel-3.0.13-18.el7.aarch64
  Verifying  : libffi-devel-3.0.13-18.el7.aarch64                1/1 

Failed:
  libffi-devel.aarch64 0:3.0.13-18.el7                               


Expected results:
Package successfully uninstalls even with tsflags=nodocs.

Additional info:
The install-info commands should have ||: appended for this very reason, per:
https://fedoraproject.org/wiki/Packaging:Scriptlets#Texinfo

For QE, please consider adding an install/erase sequence with tsflags=nodocs (and perhaps other similar options) to TPS for all packages to catch similar cases.

Comment 1 Yaakov Selkowitz 2018-07-27 15:27:37 UTC
Created attachment 1471135 [details]
Patch for rhel-7.6

Comment 2 Yaakov Selkowitz 2018-07-27 15:31:16 UTC
This was fixed in Fedora earlier in bug 1467299:

https://src.fedoraproject.org/cgit/rpms/libffi.git/commit/?id=e3a78d20c9b8e60087522e235b181644bc05eb0c

rhel-8.0 already includes this fix.

Comment 4 DJ Delorie 2019-07-24 03:40:30 UTC
Fixed in libffi-3.0.13-19.el7

Comment 6 Michal Kolar 2019-11-12 11:24:59 UTC
Reproduced against libffi-devel-3.0.13-18.el7 and verified against libffi-devel-3.0.13-19.el7.

Comment 8 errata-xmlrpc 2020-03-31 19:58:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1090


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