Bug 1886201

Summary: Please drop dependency on perl
Product: Red Hat Enterprise Linux 8 Reporter: Prashanth Sundararaman <psundara>
Component: s390utilsAssignee: Dan Horák <dhorak>
Status: CLOSED ERRATA QA Contact: Vilém Maršík <vmarsik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.2CC: dhorak, rvr
Target Milestone: rc   
Target Release: 8.4   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: s390utils-2.15.1-2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 14:55:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1894529    
Bug Blocks:    

Description Prashanth Sundararaman 2020-10-07 21:37:57 UTC
Similar to https://bugzilla.redhat.com/show_bug.cgi?id=1877905

When building RHCOS for Openshift container platform, noticed that perl is being pulled in as a dependency.

We'd like not to ship perl (or any interpreters) on the host system to avoid people depending on them.
https://github.com/coreos/fedora-coreos-tracker/blob/master/Design.md#approach-towards-shipping-Python

Comment 1 Dan Horák 2020-10-08 12:40:08 UTC
We can't drop the Perl dependency without rewriting the remaining tools in some other language. But we can split the "base" subpackage so only the bare minimum of the tools will be in a new "core" subpackage with the Perl dependency. They will allow the system to be installed and to boot, but nothing else. This change has been already done in Fedora (see https://src.fedoraproject.org/rpms/s390utils/c/365ca29316f968e8c05ac0ecde3589288fffa582?branch=master and few next commits) and will be part of the s390utils rebase in 8.4.

Comment 6 Vilém Maršík 2020-11-06 12:42:03 UTC
Looks good. A new package s390utils-core was created without Perl dependency, and the very base functionality (zipl, dasdfmt) is there:
$ rpm -q --requires http://download.eng.brq.redhat.com/brewroot/packages/s390utils/2.15.1/2.el8/s390x/s390utils-core-2.15.1-2.el8.s390x.rpm | grep -i perl
$ rpm -ql http://download.eng.brq.redhat.com/brewroot/packages/s390utils/2.15.1/2.el8/s390x/s390utils-core-2.15.1-2.el8.s390x.rpm | grep bin/
/usr/sbin/chreipl
/usr/sbin/chzdev
/usr/sbin/cio_ignore
/usr/sbin/dasd_cio_free
/usr/sbin/dasdconf.sh
/usr/sbin/dasdfmt
/usr/sbin/dasdinfo
/usr/sbin/device_cio_free
/usr/sbin/normalize_dasd_arg
/usr/sbin/zfcp_cio_free
/usr/sbin/zfcpconf.sh
/usr/sbin/zipl
/usr/sbin/znet_cio_free

Comment 8 errata-xmlrpc 2021-05-18 14:55:06 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 (s390utils bug fix and enhancement update), 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-2021:1617