Bug #54574 | Vendor name change breaks RPM downgrades | ||
---|---|---|---|
Submitted: | 17 Jun 2010 5:30 | Modified: | 28 Oct 2010 18:03 |
Reporter: | Mikiya Okuno | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Packaging | Severity: | S3 (Non-critical) |
Version: | 5.1.47 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[17 Jun 2010 5:30]
Mikiya Okuno
[28 Oct 2010 18:03]
Joerg Bruehe
First: The step you describe is no upgrade, it is a downgrade. I do not think we ever planned to support automated downgrades. This is not a bug, but the direct consequence of Oracle having acquired MySQL. One implication of this was that we had to change the "vendor" field. We must check that field on RPM upgrade, because RPMs of MySQL provided by other vendors (like Debian does with ".deb" packages) may use a different structure in the file system so the upgrade script would not work. The vendor check makes sure this is reported to the user, who must then do it manually. On a change of the vendor field (MySQL -> Sun, Sun -> Oracle) we have always maintained the scriptlets in the spec file so upgrades from a previous to the current vendor could be done automated. While in theory we could have RPMs with vendor "MySQL" that accept changing from "Sun" or "Oracle", this is impossible in practice: These versions are old versions whose RPMs have already been built (and published), so we cannot change them. Even though the rpm program supports downgrades, the vendor field change will insert barriers there. The only way out would be a rebuild of RPMs from old source versions with changed scriptlets that accept the new vendor. If there is sufficient justification for such an automated downgrade, ask for a custom build.