[MDEV-19707] debuginfo RPM packages do not depend on the RPM packages containing the binaries Created: 2019-06-06  Updated: 2019-10-31  Resolved: 2019-10-25

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.2.24, 5.5.64, 10.1.40, 10.3.15, 10.4.5
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Geoff Montee (Inactive) Assignee: Sergei Golubchik
Resolution: Won't Fix Votes: 1
Labels: upstream

Issue Links:
Problem/Incident
is caused by MDEV-18893 debuginfo packages missing from Cento... Closed
Relates
relates to MDEV-4646 No mysqld-debug or debuginfo in Maria... Closed
relates to MDEV-20738 my_addr_resolve passes invalid offset... Open

 Description   

I currently have the following packages installed:

$ rpm -qa | grep -i maria
MariaDB-compat-10.4.4-1.el7.centos.x86_64
MariaDB-common-10.4.5-1.el7.centos.x86_64
MariaDB-server-10.4.5-1.el7.centos.x86_64
MariaDB-backup-10.4.5-1.el7.centos.x86_64
MariaDB-backup-debuginfo-10.4.5-1.el7.centos.x86_64
MariaDB-client-debuginfo-10.4.5-1.el7.centos.x86_64
MariaDB-client-10.4.5-1.el7.centos.x86_64
MariaDB-shared-10.4.5-1.el7.centos.x86_64
MariaDB-server-debuginfo-10.4.5-1.el7.centos.x86_64
MariaDB-shared-debuginfo-10.4.5-1.el7.centos.x86_64
MariaDB-common-debuginfo-10.4.5-1.el7.centos.x86_64

I would expect that the debuginfo packages would depend on the packages containing the binaries, but this is not the case. For example:

$ rpm -q --requires MariaDB-server-debuginfo
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsXz) <= 5.2-1
$ rpm -q --requires MariaDB-client-debuginfo
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsXz) <= 5.2-1
$ rpm -q --requires MariaDB-shared-debuginfo
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsXz) <= 5.2-1

This can cause problems when performing upgrades. For example, you could end up in a situation where a binary package is upgraded, but the debuginfo package is not.



 Comments   
Comment by Sergei Golubchik [ 2019-10-25 ]

This is a CMake issue, I don't see how we can fix it without providing our own spec files.

Comment by Sergei Golubchik [ 2019-10-25 ]

reported upstream

Comment by Sergei Golubchik [ 2019-10-25 ]

CMake maintainer has closed the bug as "Won't Fix", see the linked issue.

Apparently, in Debian debuginfo packages should depend on the corresponding binary packages. But it seems that in Fedora there is no such a rule, so CPackRPM follows conventions of the rpm-based distributions and does not add such a dependency.

Comment by Sergei Golubchik [ 2019-10-26 ]

Also: https://fedoraproject.org/wiki/Changes/ParallelInstallableDebuginfo

Comment by Geoff Montee (Inactive) [ 2019-10-31 ]

One of the comments on the upstream bug report says:

I think there is a DNF plugin to make sure debuginfo packages are kept in sync.

It looks like he is probably referring to the debuginfo-install plugin, which is part of dnf-plugins-core.

https://dnf-plugins-core.readthedocs.io/en/latest/debuginfo-install.html

It looks like you can configure the autoupdate parameter in /etc/dnf/plugins/debuginfo-install.conf.

Generated at Thu Feb 08 08:53:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.