View Issue Details

IDProjectCategoryView StatusLast Update
0007822Rocky-Linux-9rpmpublic2024-09-10 18:37
ReporterWilliam Laeder Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformx86_64/AMD64OSrocky-9.4OS Version9.4 (Plow)
Summary0007822: Inconsistent behavior between RHEL-9.4 and Rocky-9.4 when installing packages
DescriptionThe difference in behavior is found between Rocky Linux 9.4 (Blue Onyx) and Redhat Enterprise Linux 9.4 (Plow).

Relevant package information

| info | RHEL-9.4 | Rocky-9.4 |
| :-: | :-: | :-: |
| `rpm --version` | `RPM version 4.16.1.3` | `RPM version 4.16.1.3`
| `dnf list installed rpm` | `4.16.1.3-29.el9 ` | `4.16.1.3-29.el9`
| `dnf --version` | `4.14.0` | `4.14.0`
| `sha1 /usr/lib64/librpm.so.9` | `eAeJqH8EEPijHlDC3lDquYLxTcg=` | `xyvGdRN2IEt3eVmxB/uWaQLuXBU=` |
| `rpm -qf /usr/lib64/librpm.so.9` | `rpm-libs-4.16.1.3-29.el9.x86_64` | `rpm-libs-4.16.1.3-29.el9.x86_64` |
| `rpm -qf /bin/sudo` | `sudo-1.9.5p2-7.el9.x86_64` | `sudo-1.9.5p2-10.el9_3.x86_64` |

SHA1 sum's are base64 encoded to save space.

This problem occurs in 3 parts, it involves an internal version of openldap (which is tagged older than 2.6. We're providing this RPM).

# Problem 1

The follow command succeeds on RHEL-9.4, it fails on Rocky-9.4 with the following error

```
$ sudo rpm -i openldap-2.4.rpm

    package openldap-2.6.6-3.el9.x86_64 (which is newer than openldap-2.4.0.el9.x86_64) is already installed
    file /usr/share/doc/openldap/ANNOUNCEMENT from install of openldap-2.4.0.el9.x86_64 conflicts with file from package openldap-2.6.6-3.el9.x86_64
    file /usr/share/doc/openldap/CHANGES from install of openldap-2.4.0.el9.x86_64 conflicts with file from package openldap-2.6.6-3.el9.x86_64
    file /usr/share/doc/openldap/README from install of openldap-2.4.0.el9.x86_64 conflicts with file from package openldap-2.6.6-3.el9.x86_64
    file /usr/share/licenses/openldap/COPYRIGHT from install of openldap-2.4.0.el9.x86_64 conflicts with file from package openldap-2.6.6-3.el9.x86_64
    file /usr/share/man/man5/ldap.conf.5.gz from install of openldap-2.4.0.el9.x86_64 conflicts with file from package openldap-2.6.6-3.el9.x86_64
    file /usr/share/man/man5/ldif.5.gz from install of openldap-2.4.0.el9.x86_64 conflicts with file from package openldap-2.6.6-3.el9.x86_64
```

We can clear up these conflicts and rebuild. To be clear. RHEL-9.4 does not "_care_" about these conflicts

# Problem 2

If we fix the conflicts (by re-naming files & repacking, or removing in the case of `man5` entries).

We now see

```
$ sudo rpm -i openldap-2.4.rpm

    package openldap-2.6.6-3.el9.x86_64 (which is newer than openldap-2.4.0.el9.x86_64) is already installed
```

Which doesn't occur on RHEL-9.4

Installing with

```
$ sudo rpm -i --oldpackage openldap-2.4.rpm
```

Succeeds. As there are no conflicts/overlap with openldap-2.6 it isn't impacted and sudo isn't impacted.

I would also highlight that when doing this via `dnf` (instead of `rpm`), Rocky-9.4 only states "_installation would remove protected package sudo_". It gives no details on what the underlying conflict.
Steps To Reproducerpm -i openldap-2.4.rpm

Additional InformationI'm not sure what modifications the rocky project is making to dnf/rpm but they're behaving different from red hat.

TagsNo tags attached.

Activities

William Laeder

William Laeder

2024-09-10 18:37

reporter   ~0008317

I will follow up with legal if we can share our internal openldap builds.

Issue History

Date Modified Username Field Change
2024-09-10 18:35 William Laeder New Issue
2024-09-10 18:37 William Laeder Note Added: 0008317