Red Hat Bugzilla – Bug 1209229
openldap-servers leverages 'find' from findutils which is not a dep of the rpm
Last modified: 2015-11-19 03:53:02 EST
Description of problem: The openldap-servers package uses a postscript which leverages the "find" command. However, "findutils" (the package that provides it) is not a dependency of the RPM. Therefore, on a Docker EL7 instance when trying to use openldap-servers, you will find that the configs are not generated in %post because the find command was not found and exited unsuccessfully. This also does not seem to generate an error when installing the RPM. How reproducible: 100% Steps to Reproduce: 1. Start with a Docker el7 container 2. install openldap-servers Actual results: config is not properly generated in /etc/openldap/slapd.d Expected results: config should be generated Additional info:
Yes, that is because findutils are part of the base installation (on Fedora and on RHEL). Trying to 'yum remove' findutils completely wrecks the whole RHEL-7 installation. I'd say that your container is broken anyway without findutils.
If by "my container" you mean the RHEL7 container from registry.access.redhat.com then I suppose you are correct. While it may be part of the *base* installation on RHEL, the EL7 Docker image does not use "base". None of that has anything to do with the fact that: 1) The %post script for this package doesn't fail properly in the absence of findutils 2) The package doesn't properly declare all of its dependencies So which is it? Is your package broken because it doesn't properly fail and doesn't declare all of its dependencies, or is the Red Hat provided Docker image "broken" because it works fine but doesn't support your package?
(In reply to Jan Synacek from comment #2) > Yes, that is because findutils are part of the base installation (on Fedora > and on RHEL). Trying to 'yum remove' findutils completely wrecks the whole > RHEL-7 installation. > > I'd say that your container is broken anyway without findutils. well, I can remove findutils just fine and have a working minimal system. reopening
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://rhn.redhat.com/errata/RHSA-2015-2131.html