]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: Fix RPM dependencies.
authorKris Van Hees <kris.van.hees@oracle.com>
Fri, 20 Dec 2013 16:19:01 +0000 (11:19 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Fri, 20 Dec 2013 16:19:01 +0000 (11:19 -0500)
commit035039d1d7ede1876a1d3af5f9f46f48d6ddf251
treefd33f1ef9ef25e63e88427663dc2f3e0638f9fe6
parent406d4c28ee994660cc2f19a463fdfcda978c59b8
dtrace: Fix RPM dependencies.

Userspace depends on dtrace-modules-headers so that it can #include the headers
shared between kernel and userspace.  However, it is crucial that this inclusion
not drag in the dtrace module itself, nor the kernel on which it depends,
because that module might be of a version different to that already on the
system (likely older, which would cause yum upgrade to fail).

So drop the dependency between dtrace-modules-headers and the module itself.

Also, userspace has ceased depending on the dtrace-kernel-interface capability,
in favour of automatic but explicit yum installation of module RPMs when needed:
so drop that capability, unversion the dtrace-modules-headers capability, and
remove the kernel version from the dtrace-modules-headers package's name, since
it is not dependent on the running kernel in any way.  Unversion the
modules-provider-headers capability too, but leave its name versioned: since it
is meant for provider authors, and providers are kernel modules, it is
necessarily kernel-version-dependent.

--

Modified to allow building of modules prior to 0.4.2 using the older scheme
for dependencies, and use the new scheme starting with 0.4.2.

Orabug: 17804881
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/NEWS
dtrace/dtrace-module.spec