-
Notifications
You must be signed in to change notification settings - Fork 155
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
[package] /usr/local/bin/leofs-adm should be removed #617
Comments
Current problem (here, version 1.3.0.1 was specially constructed with modified leofs-adm version):
From now on, 1.3.0 has /usr/local/bin/leofs-adm as a real file (like current package) and 1.3.1 and 1.3.2 package it as an alternative. This and some other fixes for RPM package are here: leo-project/leofs_package#3
Side by side installation during upgrade
Symlink isn't removed when uninstalling old version which packaged real file because of %ghost file in new package
All packages install alternative with same priority, so it isn't updated to new version just after installation. It is possible to make it work differently, for example by manually or automatically increasing priority each version. This change can be made in the future, if desired. I think current way is fine to avoid confusion, it's only a matter of preference.
However, after old version is uninstalled symlink is updated
Cleanup
I don't know much about debian packaging and how dpkg works when installing multiple versions of the same package. If exactly the same problem exists there, the same "alternatives" solution can be used. However, since apparently deb packages don't support anything similar to %ghost tag of RPM - which is used here so that RPM won't wipe /usr/local/bin/leofs-adm after uninstalling old package which contained it as a real file - some other solution is needed. For RPM, if ghost files weren't available this could be solved by post-uninstall trigger which works after uninstalling old version like this:
maybe someone with experience in debian packaging can do the similar fixes there. |
@vstax @yosukehara can you assign fixes for the deb to appropriate one ( @windkit or @firejun )? |
@yosukehara Got it. I'll PR later. |
@yosukehara @vstax |
in order to install multiple version on the same node. (there must be no overlap files between any version)
suggested on https://groups.google.com/d/msg/leoproject_leofs/QsxY2wNWhYg/cKczaySaBAAJ
instead
Replacing that file with symlink created after installation will solve this problem.
The text was updated successfully, but these errors were encountered: