From d700b2f16824dcf7340bcbabf2607c716a6a3923 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Wed, 29 Jan 2014 20:35:12 +0000 Subject: [PATCH] Have the new dtrace-modules-provider-headers obsolete the old. The package name has changed but the new package contains the same files as the old, so we need to Obsolete: the old ones so that yum will remove them. (Because the old scheme generated package names on the fly according to the running kernel, the list in this patch may well be missing a few packages.) Caveat: this fixes 'yum update' but cannot fix direct RPM installation. You'll have to uninstall the old package manually if you do that. Orabug: 18061595 Reviewed-by: Kris Van Hees Signed-off-by: Nick Alcock --- dtrace/dtrace-module.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dtrace/dtrace-module.spec b/dtrace/dtrace-module.spec index 934b86779cd9..e618ba9eb297 100644 --- a/dtrace/dtrace-module.spec +++ b/dtrace/dtrace-module.spec @@ -91,6 +91,15 @@ communicate with the DTrace kernel module. %package -n dtrace-modules-provider-headers Summary: Header files for implementation of DTrace providers. Requires: dtrace-modules-headers +%{lua: + local obsoleted = {"16.1.1", "16.2.1", "16.2.2", "16.2.3", "16.3.1", + "16.3.2", "16.3.3", "16"} + + for ignore, vers in ipairs(obsoleted) do + print("Obsoletes: dtrace-modules-3.8.13-" .. vers .. + ".el6uek-provider-headers\n") + end +} %description -n dtrace-modules-provider-headers This package contains header files defining the API used to implement DTrace providers. -- 2.50.1