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 1666244 - scriptlet can fail if hostname is not installed
Summary: scriptlet can fail if hostname is not installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: postfix
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Jaroslav Škarvada
QA Contact: Patrik Moško
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-15 10:30 UTC by Petr Sklenar
Modified: 2020-04-28 16:47 UTC (History)
3 users (show)

Fixed In Version: postfix-3.3.1-11.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:47:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed fix (433 bytes, patch)
2019-09-25 11:36 UTC, Jaroslav Škarvada
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1816 0 None None None 2020-04-28 16:47:20 UTC

Description Petr Sklenar 2019-01-15 10:30:50 UTC
Description of problem:
scriptlet can fail if hostname is not installed

Version-Release number of selected component (if applicable):
postfix-3.3.1-8.el8.x86_64

How reproducible:
always

Steps to Reproduce:
1. remove hostname and yum install ...
or
1. yum install --installroot /tmp/mastambugu postfix

Actual results:
  Running scriptlet: postfix-2:3.3.1-8.el8.x86_64                       188/205
  Installing       : postfix-2:3.3.1-8.el8.x86_64                       188/205
  Running scriptlet: postfix-2:3.3.1-8.el8.x86_64                       188/205
/var/tmp/rpm-tmp.QAYfr0: line 47: hostname: command not found

Expected results:
no install failure in minimum installation

Additional info:
rhel7 does not use 'hostname' cmd:
postfix-2.10.1-7.el7.x86_64: rpm -q --scripts postfix | grep hostname
===> adding regression

Comment 1 Jaroslav Škarvada 2019-08-23 13:54:34 UTC
Fix is simple, just by adding requirements.

Comment 3 Jaroslav Škarvada 2019-09-25 11:36:49 UTC
Created attachment 1618980 [details]
Proposed fix

Comment 8 errata-xmlrpc 2020-04-28 16:47:16 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:1816


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