]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Have the new dtrace-modules-provider-headers obsolete the old.
authorNick Alcock <nick.alcock@oracle.com>
Wed, 29 Jan 2014 20:35:12 +0000 (20:35 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 29 Jan 2014 21:00:13 +0000 (21:00 +0000)
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 <kris.van.hees@oracle.com>
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
dtrace/dtrace-module.spec

index 934b86779cd9c6dcbec8a43c7db44e83e0a9ec39..e618ba9eb29739df2dbfc635c4f6a4034069d88f 100644 (file)
@@ -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.