To Require or not to Require?

David Howells dhowells at redhat.com
Thu Aug 11 12:19:49 UTC 2011


Hi,

I have a package (keyutils) that produces three RPMs: keyutils (programs),
keyutils-libs and keyutils-devel.  The programs in the keyutils RPM depend on
the libraries in the keyutils-libs RPM and pick up implicit dependencies thus:

	warthog>rpm -qRp keyutils-1.5.1-1.fc14.x86_64.rpm
	...
	config(keyutils) = 1.5.1-1.fc14
	...
	libkeyutils.so.1()(64bit)  
	libkeyutils.so.1(KEYUTILS_0.3)(64bit)  
	libkeyutils.so.1(KEYUTILS_1.0)(64bit)  
	libkeyutils.so.1(KEYUTILS_1.3)(64bit)  
	libkeyutils.so.1(KEYUTILS_1.4)(64bit)  
	...

So does the keyutils rpm need an explicit Requires on the keyutils-libs rpm in
the specfile or is the implicit library dependency sufficient?

rpmlint does not complain, but, for RHEL, rpmdiff does.

David


More information about the devel mailing list