Re: [Rpm-maint] [rpm-software-management/rpm] Requires in package won't upgrade required package (Discussion #2724)

2023-10-17 Thread Matej Zerovnik
Sorry about that, I should mention to you that dcgm was not built by me. Will 
ping Nvidia, but for the time being, I solved it on configuration management 
side.

As far as file goes, it might not work for every case, because dcgm_exporter 
and dcgm packages versions have to match for best compatibility and I don't 
think I can rely on the files inside pkg only. Thanks again for clarifying the 
issue.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2724#discussioncomment-7303285
You are receiving this because you are subscribed to this thread.

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Requires in package won't upgrade required package (Discussion #2724)

2023-10-17 Thread Matej Zerovnik
OK, thank you. Will have to solve that outside RPM then I guess.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2724#discussioncomment-7303054
You are receiving this because you are subscribed to this thread.

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Requires in package won't upgrade required package (Discussion #2724)

2023-10-17 Thread Matej Zerovnik
```
# rpm -qp datacenter-gpu-manager-2.4.7-1-x86_64.rpm --provides
datacenter-gpu-manager
datacenter-gpu-manager = 1:2.4.7-1
datacenter-gpu-manager(x86-64) = 1:2.4.7-1
...
```

Is this unversioned provides the problem here? And if it is, is there something 
I can do to ignore it so I can have my package install the correct version?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2724#discussioncomment-7302103
You are receiving this because you are subscribed to this thread.

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Requires in package won't upgrade required package (Discussion #2724)

2023-10-17 Thread Matej Zerovnik
I have to admit this is a bit too much for me:)

Let me post the output of rpm upgrade and if you can help pointing out the 
problem, I'll be very happy:)

Environment:
```
[root@abc ~]# rpm -qa | grep dcgm_exporter
dcgm_exporter-3.1.7-6.el8.x86_64
[root@ abc ~]# rpm -qa | grep datacenter
datacenter-gpu-manager-2.4.7-1.x86_64
[root@abc ~]# rpm -qp dcgm_exporter-3.1.7-9.el8.x86_64.rpm --requires | grep 
datacenter
datacenter-gpu-manager = 1:3.2.5-1
``` 

Upgrading the package:
```
[root@abc ~]# rpm -Uvv dcgm_exporter-3.1.7-9.el8.x86_64.rpm
ufdio:   1 reads,17154 total bytes in 0.09 secs
D: == dcgm_exporter-3.1.7-9.el8.x86_64.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db environment /var/lib/rpm cdb:0x401
D: opening  db index   /var/lib/rpm/Packages 0x400 mode=0x0
D: locked   db index   /var/lib/rpm/Packages
D: opening  db index   /var/lib/rpm/Name 0x400 mode=0x0
D:  read h# 400
Header SHA1 digest: OK
D: added key gpg-pubkey-3abb34f8-5ffd890e to keyring
D: added subkey 0 of main key gpg-pubkey-3abb34f8-5ffd890e to keyring
D:  read h# 401
Header SHA1 digest: OK
D: added key gpg-pubkey-ef8d349f-57b6233e to keyring
D:  read h# 402
Header SHA1 digest: OK
D: added key gpg-pubkey-9e61ef26-5cabbf8a to keyring
D: added subkey 0 of main key gpg-pubkey-9e61ef26-5cabbf8a to keyring
D:  read h# 594
Header SHA1 digest: OK
D: added key gpg-pubkey-dfef9127-5db710ae to keyring
D:  read h# 603
Header SHA1 digest: OK
D: added key gpg-pubkey-2f86d6a1-5cf7cefb to keyring
D:  read h# 604
Header SHA1 digest: OK
D: added key gpg-pubkey-d42d0685-62589a51 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: dcgm_exporter-3.1.7-9.el8.x86_64.rpm: Header SHA256 digest: OK
D: dcgm_exporter-3.1.7-9.el8.x86_64.rpm: Header SHA1 digest: OK
ufdio:   6 reads, 8384 total bytes in 0.06 secs
D: Plugin: calling hook init in systemd_inhibit plugin
D:  read h#1293
Header SHA256 digest: OK
Header SHA1 digest: OK
D:  added binary package [0]
D: found 0 source and 1 binary packages
D: opening  db index   /var/lib/rpm/Conflictname 0x400 mode=0x0
D: opening  db index   /var/lib/rpm/Requirename 0x400 mode=0x0
D: == +++ dcgm_exporter-3.1.7-9.el8 x86_64/linux 0x2
D: opening  db index   /var/lib/rpm/Basenames 0x400 mode=0x0
D:  read h#  28
Header V4 RSA/SHA256 Signature, key ID c21ad6ea: OK
Header SHA256 digest: OK
Header SHA1 digest: OK
D:  Requires: /bin/sh   YES (db files)
D:  Requires: /bin/sh   YES (cached)
D:  Requires: /bin/sh   YES (cached)
D: opening  db index   /var/lib/rpm/Providename 0x400 mode=0x0
D:  read h#1278
Header V4 RSA/SHA512 Signature, key ID d42d0685: OK
Header SHA256 digest: OK
Header SHA1 digest: OK
D:  Requires: datacenter-gpu-manager = 1:3.2.5-1YES (db provides)
D:  read h# 408
Header V4 RSA/SHA256 Signature, key ID c21ad6ea: OK
Header SHA256 digest: OK
Header SHA1 digest: OK
D:  Requires: libc.so.6()(64bit)YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.2.5)(64bit) YES (db provides)
D:  Requires: libdl.so.2()(64bit)   YES (db provides)
D:  Requires: libdl.so.2(GLIBC_2.2.5)(64bit)YES (db provides)
D:  Requires: libpthread.so.0()(64bit)  YES (db provides)
D:  Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)   YES (db provides)
D:  Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)   YES (db provides)
D:  Requires: libresolv.so.2()(64bit)   YES (db provides)
D:  Requires: libresolv.so.2(GLIBC_2.2.5)(64bit)YES (db provides)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1YES (rpmlib 
provides)
D:  Requires: rpmlib(FileDigests) <= 4.6.0-1YES (rpmlib 
provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1   YES (rpmlib 
provides)
D:  Requires: rpmlib(PayloadIsXz) <= 5.2-1  YES (rpmlib 
provides)
D:  Requires: rtld(GNU_HASH)YES (db provides)
D: opening  db index   /var/lib/rpm/Obsoletename 0x400 mode=0x0
D: == --- dcgm_exporter-3.1.7-6.el8 x86_64/linux 0x2
D: == recording tsort relations
D: == tsorting packages (order, #predecessors, #succesors, depth)
D: 0001   +dcgm_exporter-3.1.7-9.el8.x86_64
D: 1001   -dcgm_exporter-3.1.7-6.el8.x86_64
D: installing binary packages
D: closed   db index   /var/lib/rpm/Packages
D: closed   db index   /var/lib/rpm/Obsoletename
D: closed   db index   /var/lib/rpm/Conflictname
D: closed   db index   /var/lib/rpm/Providename
D: closed   db index   /var/lib/rpm/Requirename
D: closed   db index   /var/lib/rpm/Basenames
D: closed   db index

[Rpm-maint] [rpm-software-management/rpm] Requires in package won't upgrade required package (Issue #2721)

2023-10-16 Thread Matej Zerovnik
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 , 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-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint