Bug 129411 - Newer compat-db provides a db4 version without an explicit Provides
Summary: Newer compat-db provides a db4 version without an explicit Provides
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pam
Version: 2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-08 14:56 UTC by Jeff Pitman
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-02-10 10:33:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeff Pitman 2004-08-08 14:56:04 UTC
Compiling compat-db 4.1.25 on FC1 and then trying to install it causes
apt/yum to remove pam because pam has a db4 = 4.1.25 dependency.

Version-Release number of selected component (if applicable):

4.1.25-2.1

Steps to Reproduce:
1. Grab compat-db from FC2.
2. mach -r fc1 build compat-db.spec
3. mach -r fc1 apt-get install compat-db

Recommendation:

Insert a Provides: db4 = 4.1.25 inside of compat-db.spec to make pam
happy.  

Maybe I should file against pam for putting db4 = 4.1.25, Redhat 9 did
not have a problem compiling compat-db 4.1.25-2.1 because pam required
the library libdb-4.0.so and not the package itself.

Anyway, something fishy is happening, but the Provides: hack works in
the interim.

Comment 1 Jeff Johnson 2004-08-09 13:49:05 UTC
Pam should do
   Requires: libddb-4.1.so
rather than
   Requires: db4 = 4.1.25
so that the requirement can be satisfied by either
db4 or compat-db.

Adding an additional Provides: to compat-db is likely
to confuse the issue further.

Comment 2 Tomas Mraz 2005-01-14 16:45:18 UTC
Hmm... the question is how the format of the db files change. See this
comment in pam.spec:
# We internalize libdb to get a non-threaded copy, but we should at
least try
# to coexist with the system's copy of libdb, which will be used to
make the
# files for use by pam_userdb (either by db_load or Perl's DB_File
module).

It means that the only reason of the Requires in the pam package is
compatibility of the database files created. What db versions are file
compatible?


Comment 3 Tomas Mraz 2005-02-10 10:33:52 UTC
As pam doesn't really require libdb to be functional there is now
rather Conflict: db4 >= 4.4.0 in the devel pam.



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