Bug 1651260 - glibc: glibc-nss-devel should depend on exact version of glibc.
Summary: glibc: glibc-nss-devel should depend on exact version of glibc.
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 1649890
TreeView+ depends on / blocked
Reported: 2018-11-19 14:46 UTC by Carlos O'Donell
Modified: 2018-11-27 20:09 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-11-27 20:09:07 UTC
Type: Bug

Attachments (Terms of Use)

Description Carlos O'Donell 2018-11-19 14:46:19 UTC
The glibc-nss-devel package contains symbolic links to the installed glibc versions of the files.

While it is the case that glibc will always be installed, it should be made specific that the -devel package must match exactly the package it was built for in order to avoid warnings from rpm consistency checking in the distribution.

For example:

diff --git a/glibc.spec b/glibc.spec
index 7395c23b..3d40c929 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -598,6 +598,7 @@ the Hesiod convention of Project Athena.
 %package nss-devel
 Summary: Development files for directly linking NSS service modules
+Requires: %{name} = %{version}-%{release}
 Requires: nss_db%{_isa} = %{version}-%{release}
 Requires: nss_hesiod%{_isa} = %{version}-%{release}

This way the devel package is always upgraded to match the most recent glibc version, without depending on nss_db or nss_hesiod to do that indirectly.

Comment 2 Carlos O'Donell 2018-11-27 20:09:07 UTC
Fixed on Rawhide.

Note You need to log in before you can comment on or make changes to this bug.