From: Nick Alcock Date: Wed, 29 Jan 2014 20:35:12 +0000 (+0000) Subject: Have the new dtrace-modules-provider-headers obsolete the old. X-Git-Tag: v4.1.12-111.0.20170907_2225~3^2~3^2~98 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d700b2f16824dcf7340bcbabf2607c716a6a3923;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/dtrace/dtrace-module.spec b/dtrace/dtrace-module.spec index 934b86779cd9c..e618ba9eb2973 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.