I hope this is the right tracker to post this.

I'm building a package that has a hard requirement on a specific package, but 
when installing the RPM, it doesn't get updated.

SPEC snippet:
```
%define dcgm_version _DCGM_
...
Name:    dcgm_exporter
Version: %{version}
Release: %{patch}%{?dist}
...
Requires: datacenter-gpu-manager = 1:%{dcgm_version}-1
```

`dcgm_version` is set before build process starts (in my case, to version 
3.2.5).

When I check the RPM requirements, I can see the correct version:
```
rpm -qp dcgm_exporter-3.1.7-7.el8.x86_64.rpm --requires | grep datacen
datacenter-gpu-manager = 1:3.2.5-1
```

Then I instal the package with dnf install <pkgname>, but it will only install 
`dcgm_exporter` and won't also update `datacenter-gpu-manager` to required 
version.

```
[root@foobar ~]# rpm -qa | grep dcgm
dcgm_exporter-3.1.7-7.el8.x86_64
[root@foobar ~]# rpm -qa | grep datacenter
datacenter-gpu-manager-2.4.7-1.x86_64
```

The required version is available in the repos:
```
# dnf info datacenter-gpu-manager-1:3.2.5
Available Packages
Name         : datacenter-gpu-manager
Epoch        : 1
Version      : 3.2.5
Release      : 1
Architecture : x86_64
Size         : 835 M
Source       : datacenter-gpu-manager-3.2.5-1.src.rpm
Repository   : nvidia
```

According to http://ftp.rpm.org/api/4.4.2.2/dependencies.html and 
http://ftp.rpm.org/max-rpm/s1-rpm-depend-manual-dependencies.html, 
configuration is correct. I also looked at some SRPMS from distro and the 
configuration is the same.

What am I doing wrong? I can't see the issue, thanks.





-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2721
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to