Bug 1807821

Summary: glibc: nss_db.x86_64 should install nss_db.i686 if glibc.i686 is installed
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: Florian Weimer <fweimer>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, arjun, codonell, dj, fweimer, law, mfabian, pfrankli, rth, siddhesh, sipoyare
Target Milestone: ---Flags: codonell: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.31.9000-12.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1807824 (view as bug list) Environment:
Last Closed: 2020-04-29 11:49:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1807915    
Bug Blocks: 1807824    

Description Florian Weimer 2020-02-27 10:14:05 UTC
If a user installs just nss_db (which means just nss_db.x86_64), 32-bit applications will not work correctly because nss_db.i686 must be separately, now that the lesser-used NSS modules have been split from the main glibc package.

(A similar fix should be applied to nss_hesiod, but that is less important because it's supposedly deprecated.)

Comment 1 Florian Weimer 2020-02-27 13:16:46 UTC
With the redhat-rpm-config change from bug 1807915, this can be implemented lie this:

diff --git a/glibc.spec b/glibc.spec
index 6535306..c83cd56 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -589,6 +589,7 @@ performance with LDAP, and may help with DNS as well.
 %package -n nss_db
 Summary: Name Service Switch (NSS) module using hash-indexed files
 Requires: %{name}%{_isa} = %{version}-%{release}
+%{_glibc_nss_dependencies nss_db}
 
 %description -n nss_db
 The nss_db Name Service Switch module uses hash-indexed files in /var/db
@@ -597,6 +598,7 @@ to speed up user, group, service, host name, and other NSS-based lookups.
 %package -n nss_hesiod
 Summary: Name Service Switch (NSS) module using Hesiod
 Requires: %{name}%{_isa} = %{version}-%{release}
+%{_glibc_nss_dependencies nss_hesiod}
 
 %description -n nss_hesiod
 The nss_hesiod Name Service Switch module uses the Domain Name System

Comment 2 Florian Weimer 2020-04-29 11:49:52 UTC
I have pushed this to rawhide, without depending on the redhat-rpm-config change.