-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The RPM spec files should Obsolete the old package names of version 4 of the ZFS libraries #11844
Comments
In order for package managers such as dnf to upgrade cleanly after the package SONAME bump the obsolete package names must be known. Update the new packages to correctly obsolete the old ones. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844
@siebenmann thanks for catching this again. I've opened #11847 to obsolete the old packages.
The conflicting libraries didn't need a version bump in this case since they were unchanged. However, I do think this points out a possible issue in the packaging since the |
In order for package managers such as dnf to upgrade cleanly after the package SONAME bump the obsolete package names must be known. Update the new packages to correctly obsolete the old ones. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844
In order for package managers such as dnf to upgrade cleanly after the package SONAME bump the obsolete package names must be known. Update the new packages to correctly obsolete the old ones. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #11844 Closes #11847
In order for package managers such as dnf to upgrade cleanly after the package SONAME bump the obsolete package names must be known. Update the new packages to correctly obsolete the old ones. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844 Closes openzfs#11847
In order for package managers such as dnf to upgrade cleanly after the package SONAME bump the obsolete package names must be known. Update the new packages to correctly obsolete the old ones. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844 Closes openzfs#11847
In order for package managers such as dnf to upgrade cleanly after the package SONAME bump the obsolete package names must be known. Update the new packages to correctly obsolete the old ones. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844 Closes openzfs#11847
Unfortunately it looks like at least one RPM was missed, libzfs5-devel, which needs to obsolete libzfs4-devel (I didn't notice this immediately because I don't have the -devel package installed on all of my machines). |
Thanks I'll open a PR for it. Sorry I'm not sure how I overlooked that |
I think it's just hard to remember. Perhaps a comment block in the zfs.spec.in is called for, with a 'do this if you're increasing the .so version'. There will be future times and people's memories for infrequent procedures are always imperfect. (And I missed the -devel package myself when I was looking at the zfs.spec.in for the first bug report.) |
Follow up to d5ef91a which adds a missing 'obsoletes' for the libzfs-devel package. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#11844
Follow up to d5ef91a which adds a missing 'obsoletes' for the libzfs-devel package. Add a comment to the zfs.spec file as a reminder that previous versions of the package should be marked as obsolete. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#11844
Good idea, I've opened #11895 which adds the missing obsoletes and a comment. |
Follow up to d5ef91a which adds a missing 'obsoletes' for the libzfs-devel package. Add a comment to the zfs.spec file as a reminder that previous versions of the package should be marked as obsolete. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #11844 Closes #11895
Follow up to d5ef91a which adds a missing 'obsoletes' for the libzfs-devel package. Add a comment to the zfs.spec file as a reminder that previous versions of the package should be marked as obsolete. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844 Closes openzfs#11895
Follow up to d5ef91a which adds a missing 'obsoletes' for the libzfs-devel package. Add a comment to the zfs.spec file as a reminder that previous versions of the package should be marked as obsolete. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844 Closes openzfs#11895
In order for package managers such as dnf to upgrade cleanly after the package SONAME bump the obsolete package names must be known. Update the new packages to correctly obsolete the old ones. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844 Closes openzfs#11847
Follow up to d5ef91a which adds a missing 'obsoletes' for the libzfs-devel package. Add a comment to the zfs.spec file as a reminder that previous versions of the package should be marked as obsolete. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11844 Closes openzfs#11895
System information
Describe the problem you're observing
Commit fe6babc changes the RPM spec files so that they now produce libzfs5 and libzpool5 RPMs (and shared library versions), instead of libzfs4 and libzpool4 RPMs. However, the RPM spec files don't Obsoletes the old versions, leading to upgrade time conflicts. This is a rerun of issue #11230 from the previous library version bump.
This time around there appear to be no conflicts between libzpool5 and libzpool4, but it's probably a good thing to Obsolete that one too. Also, the fact that there are conflicts between libzfs5 and libzfs4 may be a sign that some shared libraries have not had their versions increased when they should have.
Describe how to reproduce the problem
Install a Fedora system with RPMs built from ZFS git tip before this commit, pull, rebuild the RPMs, and attempt to update with `dnf update *.rpm'. For me, this produces:
The text was updated successfully, but these errors were encountered: