Bug 1876430 - RFE: Please dump file trigger script execution to dnf installation log
Summary: RFE: Please dump file trigger script execution to dnf installation log
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1875899
TreeView+ depends on / blocked
 
Reported: 2020-09-07 08:02 UTC by Pavel Raiskup
Modified: 2021-11-05 09:18 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Raiskup 2020-09-07 08:02:26 UTC
E.g. installing any info page below %_infodir triggers the
%transfiletriggerin of info.rpm.  That's though not dumped
to standard output:

$ dnf reinstall tar
...
  Preparing        :                            1/1
  Reinstalling     : tar-2:1.32-6.fc33.x86_64   1/2
  Cleanup          : tar-2:1.32-6.fc33.x86_64   2/2
  Running scriptlet: tar-2:1.32-6.fc33.x86_64   2/2
  Verifying        : tar-2:1.32-6.fc33.x86_64   1/2
  Verifying        : tar-2:1.32-6.fc33.x86_64   2/2

While $ dnf reinstall tar --rpmverbosity=debug
...
D: %triggerin(info-6.7-8.fc33.x86_64): scriptlet start
D: %triggerin(info-6.7-8.fc33.x86_64): execv(/bin/sh) pid 350
+ '[' -f /usr/share/info/dir ']'
+ create_arg=
+ /usr/sbin/fix-info-dir /usr/share/info/dir
D: %triggerin(info-6.7-8.fc33.x86_64): waitpid(350) rc 350 status 0
...
D: %triggerpostun(info-6.7-8.fc33.x86_64): scriptlet start
D: %triggerpostun(info-6.7-8.fc33.x86_64): execv(/bin/sh) pid 370
+ '[' -f /usr/share/info/dir ']'
+ /usr/sbin/fix-info-dir --delete /usr/share/info/dir
D: %triggerpostun(info-6.7-8.fc33.x86_64): waitpid(370) rc 370 status 0
...

Both are %transfile* variants, so even the debug output isn't quite
correct, but that's just a cosmetics.

Expected results, e.g.:

  Preparing        :                            1/1
  Reinstalling     : tar-2:1.32-6.fc33.x86_64   1/2
  Cleanup          : tar-2:1.32-6.fc33.x86_64   2/2
  Running scriptlet: tar-2:1.32-6.fc33.x86_64   2/2
  Verifying        : tar-2:1.32-6.fc33.x86_64   1/2
  Verifying        : tar-2:1.32-6.fc33.x86_64   2/2
  Running scriptlet: info-<EVRA> (triggerin)
  Running scriptlet: glibc-common-<EVRA> (triggerin)
  Running scriptlet: info-6.7-8.fc33.x86_64 (triggerpostun)

Comment 1 Ben Cotton 2021-11-04 17:32:31 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


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