[MDEV-22552] mytop packaging Created: 2020-05-13 Updated: 2023-11-27 Resolved: 2021-10-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.5.3 |
| Fix Version/s: | 10.5.13, 10.6.5, 10.7.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Philippe Kueck | Assignee: | Anel Husakovic |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
CentOS 7.8 |
||
| Issue Links: |
|
||||||||||||
| Description |
|
The RPM of MariaDB-client 10.5.3 provides mytop's manpage but not the mytop script. Since the manpage is provided it's not possible to install mytop from epel.
|
| Comments |
| Comment by Anel Husakovic [ 2020-05-26 ] | ||||||||||||||||||||||||||
|
Based on | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-05-27 ] | ||||||||||||||||||||||||||
|
No, I used "Mytop" only to avoid it being packaged into RPMs. RPMs quite intentionally don't have mytop script and should not have mytop.1 manpage, because there's a separate mytop rpm package in epel. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-05-28 ] | ||||||||||||||||||||||||||
|
Why do we "build" the mytop script if we don't want to ship it? I only include in Debian packaging the stuff our CMake scripts build and make available in the install directories. If we don't want mytop, then I suggest it should be deleted from the sources completely and not used anywhere. The stuff that RPM and DEB includes should always be identical when possible. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-05-28 ] | ||||||||||||||||||||||||||
|
The website or the original author does not seem to work: http://www.mysqlfanboy.com/mytop-3/ What is the relation to innotop? Due to historical reasons we have packed along ` debian/additions/innotop`. Should we drop it as well and expect people get it directly from upstream (maintained by lefred at https://github.com/innotop/innotop)? | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-05-29 ] | ||||||||||||||||||||||||||
|
Unless we need a MariaDB-specific innotop and lefred refuses to accept patches, I would suggest not to package our own innotop. we used to include mytop only in bintars, rpm and deb based distros had packages with mytop, we didn't need to provide our own outdated fork. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-05-29 ] | ||||||||||||||||||||||||||
|
PR to remove mytop created in https://github.com/MariaDB/server/pull/1565 I could make a similar one about Innotop, should I? | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-06-01 ] | ||||||||||||||||||||||||||
|
Current version of mytop is MariaDB fork, there were already some contributions. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-06-01 ] | ||||||||||||||||||||||||||
|
This is a similar situation like TokuDB. In my opinion we should I think it is very problematic to have code in our sources that is at Also, if we really want to for mytop, it should use a different name | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-06-01 ] | ||||||||||||||||||||||||||
|
I agree with you, just for the sake of contributions I would like to have it still, but if there was already similar case, I don't have any problem to use your full patch PR #1565. | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-06-02 ] | ||||||||||||||||||||||||||
|
Okay. I stand corrected. Looking at https://repology.org/project/mytop/versions one can see that there are three versions of mytop in use:
so by any measure it doesn't look like an actively (or at all) maintained project.
both RPM and DEB packages should include it. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-06-02 ] | ||||||||||||||||||||||||||
|
serg Just to be explicit: you want mytop to be shipped as a separate package or continue to ship is as part of the mariadb-client-10.5 package? Currently in .deb is is part of mariadb-client-10.5, but I opened https://github.com/MariaDB/server/pull/1571 which separates into a package of its own. Innotop continues to be shipped in the mariadb-client-10.5 package, but I can easily split that out as well, or completely remove it. Please note that there are tens of patches in https://sources.debian.org/src/mytop/1.9.1-4/debian/ that further improve the 1.9.1 version. Maybe Anel should take those patches and apply them on our mytop fork? There is also a example config. | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-06-02 ] | ||||||||||||||||||||||||||
|
otto current version of mytop covers patches from debian (PR #215 and | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-06-02 ] | ||||||||||||||||||||||||||
|
otto, I think it'd be a larger change and, perhaps, not justified yet. For now I'd keep it in the client package, just set the client package metadata that it replaces and conflicts with mytop package. If users will be asking for a separate mytop package, so that they could use it without installing full mariadb-client, we could consider doing it. But for now I'd suggest the minimal change — update our mytop to include all all 1.7 and distro patches, package it, set package metadata correctly. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-06-04 ] | ||||||||||||||||||||||||||
|
The mariadb-client-10.5 package already has in debian/control the proper Conflicts/Replaces lines, so there is no need to make any changes in Debian packaging. To be sure, I also tested this on a Debian Sid system with mytop installed and then upgrading to MariaDB, it correctly removes the separate mytop package and replaces it with mytop from MariaDB:
So need to do any changes in debian/* for now. | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-06-06 ] | ||||||||||||||||||||||||||
|
Patches for mytop are in bb-10.5-anel-MDEV-22552 . | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-06-06 ] | ||||||||||||||||||||||||||
|
PR for moving my_print_defaults from mariadb-server-core-10.5 to mariadb-client-core-10.5 in deb packages at https://github.com/MariaDB/server/pull/1581 | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-06-06 ] | ||||||||||||||||||||||||||
|
1581 covered also with bb-10.5-anel- | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-06-16 ] | ||||||||||||||||||||||||||
also you didn't specify that our mytop obsoletes the other mytop. And you didn't merge all changes from other mytops, so it's not a superset yet. | ||||||||||||||||||||||||||
| Comment by Jean Weisbuch [ 2020-06-16 ] | ||||||||||||||||||||||||||
|
Sorry, i just saw this MDEV now ; i am the one that did the changes on the MariaDB mytop. Forking it to a new project and pushing for Debian and Redhat (and others that are providing a mytop package) official packaging to use it as as a replacement of the original that is not maintained anymore is a solution (but i am too lazy to do it myself) ; this way it could be removed of the MariaDB codebase and packaging would not have to be your "problem" anymore. | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-06-17 ] | ||||||||||||||||||||||||||
|
That would be ideal. But somebody has to maintain it. As long as nobody volunteers, we might have to do it. | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-08-02 ] | ||||||||||||||||||||||||||
|
Hi serg bb-10.5-anel-MDEV-22552 is updated per comments. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-09-21 ] | ||||||||||||||||||||||||||
|
Related Debian bug about the wish for somebody to maintain (again) mytop as a separate project/package: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863968 | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-07 ] | ||||||||||||||||||||||||||
|
anel, don't understand still:
| ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-10-07 ] | ||||||||||||||||||||||||||
|
Hi serg,
| ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-08 ] | ||||||||||||||||||||||||||
|
Let otto decide on that, but I think that if you don't obsolete/replace mytop from debian-upstream, a user won't be able to install mariadb-client if he has mytop installed. He'll have to uninstall mytop manually and then install mariadb-client. And it's more user-friendly to do it automatically, isn't it? There is no choice here, the user cannot have both. | ||||||||||||||||||||||||||
| Comment by Jean Weisbuch [ 2020-10-08 ] | ||||||||||||||||||||||||||
|
I did base it on the latest mytop at the time (1.9) and there only has been some distro patches since that i applied if it was still needed (some fixed things that i did already fix on my side) and some others so it should obsolete other mytops which have not had upstream updates for years. | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-10-16 ] | ||||||||||||||||||||||||||
|
Hi serg, new patch(will change indentation) based on mail review. | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-16 ] | ||||||||||||||||||||||||||
|
anel, that wasn't really a review, just a few comments based on the patch. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-10-16 ] | ||||||||||||||||||||||||||
|
The Mytop upstream is dead and the Debian package has not been updated Mytop needs a new upstream. Will MariaDB be the new upstream, that is | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-16 ] | ||||||||||||||||||||||||||
|
otto, I suspect that as long as nobody steps up we'll keep maintaining it. anel, if I understand correctly, both otto and jb-boin say that this new mytop should obsolete old ones. | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-10-17 ] | ||||||||||||||||||||||||||
|
Updated last patch (with socket prefix + revert change for RPM) ff75d7bbf2e for the branch bb-10.5-anel-MDEV-22552, it has 5 commits now. | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-18 ] | ||||||||||||||||||||||||||
|
so, will you commit a change that makes old versions obsolete? | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-10-18 ] | ||||||||||||||||||||||||||
|
I would like to, but don't have experience. I suppose it has to be done in /debian/control? Or there is some other way? | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-10-26 ] | ||||||||||||||||||||||||||
|
I asked faust to look a bit about suggested patch and test. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-10-26 ] | ||||||||||||||||||||||||||
|
What are you about to change in debian/control? We already discussed debian/* in https://jira.mariadb.org/browse/MDEV-22552?focusedCommentId=155143&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-155143 and https://jira.mariadb.org/browse/MDEV-22552?focusedCommentId=155509&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-155509 and I did not see any problems with current mytop packaging.
If you do end up changing debian/*, please file a PR and assign me as reviewer. | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2020-10-26 ] | ||||||||||||||||||||||||||
|
otto s
but per your comment seems like there is no need to do like above. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2021-03-12 ] | ||||||||||||||||||||||||||
|
julien.fritsch Status says "in review" but there are only two (closed) Pull Requests. I wonder what part is in review. The PR to split out mytop was already done in https://github.com/MariaDB/server/pull/1571 but closed as there was a decision by Serg previously to not do this change. So in case you intend to do that after all, you don't need to do double work but just update and merge the existing PR. And make sure it lands in 10.6. This change (if made) should really not go into a stable release. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2021-05-09 ] | ||||||||||||||||||||||||||
|
What is the status on this? I don't see any progress in 2021 so far, not responses to my previous comment. | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-06-05 ] | ||||||||||||||||||||||||||
|
I've looked at git diff 10.5...bb-10.5-anel-
| ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2021-06-06 ] | ||||||||||||||||||||||||||
|
I took a quick look at https://github.com/MariaDB/server/compare/10.5...bb-10.5-anel-MDEV-22552. Comments: 1) DO NOT DO THIS ON BRANCH 10.5. That is a stable release, you can't introduce new stuff there, let alone a whole new package. Put your work in 10.6. 2) The changes in debian/ don't include the actual mytop package. Just as a reminder I already did it in https://github.com/MariaDB/server/pull/1571/files, you just need to copy that code and make a new PR on 10.6... 3) I see my_print_defaults is moved from server package to client package. Why are you wasting time on that? It has already been done in https://github.com/MariaDB/server/pull/1581 4) As danblack already pointed out, mytop exists in Fedora already as a separate package: https://src.fedoraproject.org/rpms/mytop/blob/rawhide/f/mytop.spec (and in Debian too https://tracker.debian.org/pkg/mytop) so when you do the CPack for mytop now, you should make sure it is aligned with existing rpm package. 5)
The opposite change was done in https://github.com/MariaDB/server/commit/37c88445e30d52c965bcb19b19fa710c3eb4fad9 so this seems inconsistent. 6) You have now 5 very small commits on your branch that each actually are the same change, so it would probably be best to squash those changes to one. | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-06-06 ] | ||||||||||||||||||||||||||
|
1) there's no new package there, mytop is moved from server to client, that's all | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2021-06-06 ] | ||||||||||||||||||||||||||
|
Mytop is already in the client package:
| ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-06-09 ] | ||||||||||||||||||||||||||
|
otto serg thank you for your review. The state of mytop regarding debian in MariaDB server:
So mytop is already in mariadb-client package from 10.5+ and my_print_defaults in client-core package from 10.6+. serg commented your patch (PR #1581) for relations between mariadb-client-core and mariadb-server package that I had in my branch.
I think we should add Conflicts in addition which is a stronger constraint compared to breaks -> otto?! I will push soon patch for RPM only I guess 10.5 is ok to be target branch in this case. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2021-06-09 ] | ||||||||||||||||||||||||||
I did a thorough testing and cleanup of breaks/replaces/conflicts in | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-06-23 ] | ||||||||||||||||||||||||||
|
Hi serg can you please review 2 commits bb-10.5-anel-MDEV-22552. | ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-07-12 ] | ||||||||||||||||||||||||||
|
looks good | ||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-10-26 ] | ||||||||||||||||||||||||||
|
Pushed to 10.5 with commits 2011fcf87ddb0dc and 395a033237686f2 |