Bug #98565 | The big size of the package mysql-community-server | ||
---|---|---|---|
Submitted: | 12 Feb 2020 10:58 | Modified: | 13 Feb 2020 11:55 |
Reporter: | Viktor Vakhonin | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Packaging | Severity: | S3 (Non-critical) |
Version: | OS: | CentOS | |
Assigned to: | MySQL Verification Team | CPU Architecture: | x86 |
[12 Feb 2020 10:58]
Viktor Vakhonin
[13 Feb 2020 0:03]
MySQL Verification Team
Hi, Thank you for your report but we do not strip binaries intentionally. You are, of course, free to strip them. The rationale behind not stripping them is that benefit (having debug info) outweighs the disadvantage (larger size) in the time where disk capacity is cheap. kind regards
[13 Feb 2020 8:25]
Viktor Vakhonin
Why in Debian the binary stripped? root@seb7bfcd3:~# apt-cache policy mysql-community-server mysql-community-server: Installed: 8.0.19-1debian9 Candidate: 8.0.19-1debian9 Version table: *** 8.0.19-1debian9 500 500 http://repo.mysql.com/apt/debian stretch/mysql-8.0 amd64 Packages 100 /var/lib/dpkg/status root@seb7bfcd3:~# du -sh /usr/bin/mysql 7.2M /usr/bin/mysql root@seb7bfcd3:~# What difference?
[13 Feb 2020 8:31]
Viktor Vakhonin
Ssory, not right file: root@seb7bfcd3:~# du -sh /usr/sbin/mysqld* 60M /usr/sbin/mysqld
[13 Feb 2020 11:40]
MySQL Verification Team
Hi Viktor, Different distributions have different rules. Debian changed its policy from "can be stripped" to "should be stripped" IIRC one year ago (maybe earlier). There is no such policy for Oracle Linux packages you are using on CentOS. Also if you look at tar.gz / tar.xz they are also not stripped. We prefer to ship unstripped as you can always strip yourself and disk space is cheap, but this can change as it changed once already as back in the day we used to ship stripped binaries. kind regards
[13 Feb 2020 11:55]
Viktor Vakhonin
Unfortunately I am from wild country where disk space is not cheap. What about little VMs with disk size 5G or 10G? Are Administrators should run strip on the binary files after every update?
[13 Feb 2020 12:05]
MySQL Verification Team
Hi Viktor, I'm not the one making policies. As for the best practices on small installations, the best practice I noticed during my many years in the field is that companies usually have their own repo from where they update the system (create updates, strip/patch/recompile/whatever required, test on stage, move from stage to production repo, upgrade production) but everyone has their own idea of what's best practice. I already passed your "feature request" to our build team to reconsider the policy but I cannot classify this as a bug. kind regards Bogdan