Bug 498955
Summary: | Unnecessary dependencies installed on RHEL5 | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Andrew Colin Kissa <andrew> |
Component: | ejabberd | Assignee: | Peter Lemenkov <lemenkov> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | el5 | CC: | gemi, lemenkov, mmahut, silfreed |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-05-04 18:23:07 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Andrew Colin Kissa
2009-05-04 15:24:13 UTC
As I understand it, I doubt this is fixable to your satisfaction, as rpm doesn't really distiguish between deps required for scriptlets vs runtime. It only affects install ordering. Actually it is fixable, please look at my attached patch to the spec file to achieve it. 49c49,50 < Requires(pre): fedora-usermgmt --- > Requires(pre): /usr/sbin/useradd > Requires(pre): /usr/sbin/groupadd 73,74c74,75 < /usr/sbin/fedora-groupadd 27 -r ejabberd &>/dev/null || : < /usr/sbin/fedora-useradd 27 -r -s /sbin/nologin -d /var/lib/ejabberd -M \ --- > /usr/sbin/groupadd 27 -r ejabberd &>/dev/null || : > /usr/sbin/useradd 27 -r -s /sbin/nologin -d /var/lib/ejabberd -M \ [andrew@bison ~]$ diff -ruN redhat/SPECS/ejabberd.spec ejabberd.spec --- redhat/SPECS/ejabberd.spec 2009-01-26 18:53:25.000000000 +0200 +++ ejabberd.spec 2009-05-04 17:35:41.000000000 +0200 @@ -46,7 +46,8 @@ Requires: erlang Requires: usermode -Requires(pre): fedora-usermgmt +Requires(pre): /usr/sbin/useradd +Requires(pre): /usr/sbin/groupadd Requires(post): /sbin/chkconfig Requires(post): /usr/bin/openssl Requires(preun): /sbin/chkconfig @@ -70,8 +71,8 @@ Documentation for ejabberd. %pre -/usr/sbin/fedora-groupadd 27 -r ejabberd &>/dev/null || : -/usr/sbin/fedora-useradd 27 -r -s /sbin/nologin -d /var/lib/ejabberd -M \ +/usr/sbin/groupadd 27 -r ejabberd &>/dev/null || : +/usr/sbin/useradd 27 -r -s /sbin/nologin -d /var/lib/ejabberd -M \ -c 'ejabberd' -g ejabberd ejabberd &>/dev/null || : %post Oh sure, by simply making the pkg not use it, but that's up to the maintainer whether they're willing to do without the extra functionality that fedora-usermgmt provides. I was going on the assumption that the maintainer made a conscious choice to use fedora-usermgmt. re-opening, maintainer's call to make. My point is fedora-usermgmt is only being pulled in to perform 2 functions add a group and a user for ejabberd to run as. As a EPEL user i do not see the pointing having 4 packages on the system that are of no use. I'll fix it ASAP. Ok, we discussed this issue. Unfortunately, we decided not to replace fedora-usermgmt utilities with their useradd/groupadd alternatives. The rationale behind this decision is that fedora-usermgmt doesn't add large dependency chains (several kilobytes), although it provides some functionality over plain useradd/groupadd (predictable uid/gid): http://fedoraproject.org/wiki/PackageUserCreation As a workaround, I advise you to type $ sudo yum remove fedora-usermgmt* after installation of ejabberd - they required only for installation. |