Bug 1796532 - Unnecessary output from scriptlets
Summary: Unnecessary output from scriptlets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: firebird
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Philippe Makowski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-30 16:27 UTC by Lukas Slebodnik
Modified: 2020-07-23 01:05 UTC (History)
2 users (show)

Fixed In Version: firebird-3.0.6.33328-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-23 01:05:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Slebodnik 2020-01-30 16:27:56 UTC
Description of problem:
I noticed that is output of getent group firefid in the output of scriptlet


Version-Release number of selected component (if applicable):
firebird-3.0.5.33220-1.fc32.x86_64

How reproducible:
Deterministic

Steps to Reproduce:
1. #ensure that there is older version of firebird installed
 e.g. rpm -q firebird
 # dnf install -y -e1 -d1 --nogpgcheck https://kojipkgs.fedoraproject.org//packages/firebird/3.0.4.33054/5.fc31/x86_64/firebird-3.0.4.33054-5.fc31.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/firebird/3.0.4.33054/5.fc31/x86_64/firebird-utils-3.0.4.33054-5.fc31.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/firebird/3.0.4.33054/5.fc31/x86_64/libfbclient2-3.0.4.33054-5.fc31.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/firebird/3.0.4.33054/5.fc31/x86_64/libib-util-3.0.4.33054-5.fc31.x86_64.rpm

2. dnf update -y firebird


Actual results:
[root@0dface230cec /]# rpm -q firebird
firebird-3.0.4.33054-5.fc31.x86_64
[root@0dface230cec /]# dnf update -y firebird --nogpgcheck
Last metadata expiration check: 0:04:00 ago on Thu Jan 30 16:21:19 2020.
Dependencies resolved.
================================================================================
 Package              Architecture Version                  Repository     Size
================================================================================
Upgrading:
 firebird             x86_64       3.0.5.33220-1.fc32       rawhide       3.4 M
 firebird-utils       x86_64       3.0.5.33220-1.fc32       rawhide       1.1 M
 libfbclient2         x86_64       3.0.5.33220-1.fc32       rawhide       590 k
 libib-util           x86_64       3.0.5.33220-1.fc32       rawhide        11 k

Transaction Summary
================================================================================
Upgrade  4 Packages

Total size: 5.1 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Running scriptlet: libfbclient2-3.0.5.33220-1.fc32.x86_64                 1/1 
  Upgrading        : libfbclient2-3.0.5.33220-1.fc32.x86_64                 1/8 
  Upgrading        : firebird-utils-3.0.5.33220-1.fc32.x86_64               2/8 
  Upgrading        : libib-util-3.0.5.33220-1.fc32.x86_64                   3/8 
  Running scriptlet: firebird-3.0.5.33220-1.fc32.x86_64                     4/8 
firebird:x:995:

  Upgrading        : firebird-3.0.5.33220-1.fc32.x86_64                     4/8 
  Running scriptlet: firebird-3.0.5.33220-1.fc32.x86_64                     4/8 
  Running scriptlet: firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
  Cleanup          : firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
  Running scriptlet: firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
  Cleanup          : firebird-utils-3.0.4.33054-5.fc31.x86_64               6/8 
  Cleanup          : libfbclient2-3.0.4.33054-5.fc31.x86_64                 7/8 
  Cleanup          : libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 
  Running scriptlet: libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 
  Verifying        : firebird-3.0.5.33220-1.fc32.x86_64                     1/8 
  Verifying        : firebird-3.0.4.33054-5.fc31.x86_64                     2/8
  Verifying        : firebird-utils-3.0.5.33220-1.fc32.x86_64               3/8 
  Verifying        : firebird-utils-3.0.4.33054-5.fc31.x86_64               4/8 
  Verifying        : libfbclient2-3.0.5.33220-1.fc32.x86_64                 5/8 
  Verifying        : libfbclient2-3.0.4.33054-5.fc31.x86_64                 6/8 
  Verifying        : libib-util-3.0.5.33220-1.fc32.x86_64                   7/8 
  Verifying        : libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 

Upgraded:
  firebird-3.0.5.33220-1.fc32.x86_64                                            
  firebird-utils-3.0.5.33220-1.fc32.x86_64                                      
  libfbclient2-3.0.5.33220-1.fc32.x86_64                                        
  libib-util-3.0.5.33220-1.fc32.x86_64                                          

Complete!

Expected results:
[root@0dface230cec /]# rpm -q firebird
firebird-3.0.4.33054-5.fc31.x86_64
[root@0dface230cec /]# dnf update -y firebird --nogpgcheck
Last metadata expiration check: 0:04:00 ago on Thu Jan 30 16:21:19 2020.
Dependencies resolved.
================================================================================
 Package              Architecture Version                  Repository     Size
================================================================================
Upgrading:
 firebird             x86_64       3.0.5.33220-1.fc32       rawhide       3.4 M
 firebird-utils       x86_64       3.0.5.33220-1.fc32       rawhide       1.1 M
 libfbclient2         x86_64       3.0.5.33220-1.fc32       rawhide       590 k
 libib-util           x86_64       3.0.5.33220-1.fc32       rawhide        11 k

Transaction Summary
================================================================================
Upgrade  4 Packages

Total size: 5.1 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Running scriptlet: libfbclient2-3.0.5.33220-1.fc32.x86_64                 1/1 
  Upgrading        : libfbclient2-3.0.5.33220-1.fc32.x86_64                 1/8 
  Upgrading        : firebird-utils-3.0.5.33220-1.fc32.x86_64               2/8 
  Upgrading        : libib-util-3.0.5.33220-1.fc32.x86_64                   3/8 
  Running scriptlet: firebird-3.0.5.33220-1.fc32.x86_64                     4/8 
firebird:x:995:

  Upgrading        : firebird-3.0.5.33220-1.fc32.x86_64                     4/8 
  Running scriptlet: firebird-3.0.5.33220-1.fc32.x86_64                     4/8 
  Running scriptlet: firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
  Cleanup          : firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
  Running scriptlet: firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
  Cleanup          : firebird-utils-3.0.4.33054-5.fc31.x86_64               6/8 
  Cleanup          : libfbclient2-3.0.4.33054-5.fc31.x86_64                 7/8 
  Cleanup          : libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 
  Running scriptlet: libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 
  Verifying        : firebird-3.0.5.33220-1.fc32.x86_64                     1/8 
  Verifying        : firebird-3.0.4.33054-5.fc31.x86_64                     2/8
  Verifying        : firebird-utils-3.0.5.33220-1.fc32.x86_64               3/8 
  Verifying        : firebird-utils-3.0.4.33054-5.fc31.x86_64               4/8 
  Verifying        : libfbclient2-3.0.5.33220-1.fc32.x86_64                 5/8 
  Verifying        : libfbclient2-3.0.4.33054-5.fc31.x86_64                 6/8 
  Verifying        : libib-util-3.0.5.33220-1.fc32.x86_64                   7/8 
  Verifying        : libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 

Upgraded:
  firebird-3.0.5.33220-1.fc32.x86_64                                            
  firebird-utils-3.0.5.33220-1.fc32.x86_64                                      
  libfbclient2-3.0.5.33220-1.fc32.x86_64                                        
  libib-util-3.0.5.33220-1.fc32.x86_64                                          

Complete!


Additional info:
[root@0dface230cec /]# rpm -q --scripts firebird | head
preinstall scriptlet (using /bin/sh):
# Create the firebird group if it doesn't exist
getent group firebird || /usr/sbin/groupadd -r firebird 
getent passwd firebird >/dev/null || /usr/sbin/useradd -d / -g firebird -s /sbin/nologin -r firebird 

# Add gds_db to /etc/services if needed
FileName=/etc/services
newLine="gds_db 3050/tcp  # Firebird SQL Database Remote Protocol"
oldLine=`grep "^gds_db" $FileName`
if [ -z "$oldLine" ]; then


Output of "getent passwd" is already sent to /dev/null

Comment 1 Ben Cotton 2020-02-11 17:22:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 2 Lukas Slebodnik 2020-07-09 08:51:27 UTC
I can still see the problem on f32
Reproducer is in the description and I used docker.io/fedora:32 image


[root@4361ced18549 /]# rpm -q firebird
firebird-3.0.4.33054-5.fc31.x86_64
[root@4361ced18549 /]# dnf update -y firebird
Last metadata expiration check: 0:04:00 ago on Thu Jul  9 08:45:41 2020.
Dependencies resolved.
================================================================================
 Package              Architecture Version                   Repository    Size
================================================================================
Upgrading:
 firebird             x86_64       3.0.5.33220-2.fc32        fedora       3.4 M
 firebird-utils       x86_64       3.0.5.33220-2.fc32        fedora       1.1 M
 libfbclient2         x86_64       3.0.5.33220-2.fc32        fedora       594 k
 libib-util           x86_64       3.0.5.33220-2.fc32        fedora        12 k

Transaction Summary
================================================================================
Upgrade  4 Packages

Total download size: 5.1 M
Downloading Packages:
(1/4): libfbclient2-3.0.5.33220-2.fc32.x86_64.r 429 kB/s | 594 kB     00:01    
(2/4): libib-util-3.0.5.33220-2.fc32.x86_64.rpm 129 kB/s |  12 kB     00:00    
(3/4): firebird-utils-3.0.5.33220-2.fc32.x86_64 530 kB/s | 1.1 MB     00:02    
(4/4): firebird-3.0.5.33220-2.fc32.x86_64.rpm   885 kB/s | 3.4 MB     00:03    
--------------------------------------------------------------------------------
Total                                           1.1 MB/s | 5.1 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Running scriptlet: libfbclient2-3.0.5.33220-2.fc32.x86_64                 1/1 
  Upgrading        : libfbclient2-3.0.5.33220-2.fc32.x86_64                 1/8 
  Upgrading        : firebird-utils-3.0.5.33220-2.fc32.x86_64               2/8 
  Upgrading        : libib-util-3.0.5.33220-2.fc32.x86_64                   3/8 
  Running scriptlet: firebird-3.0.5.33220-2.fc32.x86_64                     4/8 
firebird:x:995:

  Upgrading        : firebird-3.0.5.33220-2.fc32.x86_64                     4/8 
  Running scriptlet: firebird-3.0.5.33220-2.fc32.x86_64                     4/8 
  Running scriptlet: firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
  Cleanup          : firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
  Running scriptlet: firebird-3.0.4.33054-5.fc31.x86_64                     5/8 
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

  Cleanup          : firebird-utils-3.0.4.33054-5.fc31.x86_64               6/8 
  Cleanup          : libfbclient2-3.0.4.33054-5.fc31.x86_64                 7/8 
  Cleanup          : libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 
  Running scriptlet: libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 
  Verifying        : firebird-3.0.5.33220-2.fc32.x86_64                     1/8 
  Verifying        : firebird-3.0.4.33054-5.fc31.x86_64                     2/8 
  Verifying        : firebird-utils-3.0.5.33220-2.fc32.x86_64               3/8 
  Verifying        : firebird-utils-3.0.4.33054-5.fc31.x86_64               4/8 
  Verifying        : libfbclient2-3.0.5.33220-2.fc32.x86_64                 5/8 
  Verifying        : libfbclient2-3.0.4.33054-5.fc31.x86_64                 6/8 
  Verifying        : libib-util-3.0.5.33220-2.fc32.x86_64                   7/8 
  Verifying        : libib-util-3.0.4.33054-5.fc31.x86_64                   8/8 

Upgraded:
  firebird-3.0.5.33220-2.fc32.x86_64                                            
  firebird-utils-3.0.5.33220-2.fc32.x86_64                                      
  libfbclient2-3.0.5.33220-2.fc32.x86_64                                        
  libib-util-3.0.5.33220-2.fc32.x86_64                                          

Complete!

Comment 3 Fedora Update System 2020-07-09 10:51:02 UTC
FEDORA-2020-242cf32df3 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-242cf32df3

Comment 4 Fedora Update System 2020-07-10 01:42:23 UTC
FEDORA-2020-242cf32df3 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-242cf32df3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-242cf32df3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2020-07-23 01:05:05 UTC
FEDORA-2020-242cf32df3 has been pushed to the Fedora 32 stable repository.
If problem still persists, 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.