FS#62589 - [git] Use "INSTALL_SYMLINKS=1" in "_make_options"
Attached to Project:
Arch Linux
Opened by Michel Koss (MichelKoss1) - Friday, 10 May 2019, 13:47 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 13 August 2019, 19:20 GMT
Opened by Michel Koss (MichelKoss1) - Friday, 10 May 2019, 13:47 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 13 August 2019, 19:20 GMT
|
Details
Description:
Using "INSTALL_SYMLINKS=1" in "_make_options" variable will switch all duplicate git binaries into symlinks which should save some additional space (currently they are hardlinks). At the same time "NO_CROSS_DIRECTORY_HARDLINKS=1" option could be removed. Other distros like Fredora already use that option[1] [1] https://src.fedoraproject.org/rpms/git/blob/e17874a9b14b10561d16cbb7ad1fa4311e8abafe/f/git.spec#_479 |
This task depends upon
Closed by Christian Hesse (eworm)
Tuesday, 13 August 2019, 19:20 GMT
Reason for closing: Implemented
Additional comments about closing: in SVN
Tuesday, 13 August 2019, 19:20 GMT
Reason for closing: Implemented
Additional comments about closing: in SVN
git-2.21.0-1-x86_64.pkg.tar.xz: 5.7M
unpacked (du -sh): 40M
After changing "NO_CROSS_DIRECTORY_HARDLINKS=1" to "INSTALL_SYMLINKS=1":
git-2.21.0-1-x86_64.pkg.tar.xz: 5.6M
unpacked (du -sh): 35M
12.5% improvement is still something.
So for example `libexec/git-core/git-add` and `bin/git` should be the same file, but since they are in different directories; they are not.
Just remove NO_CROSS_DIRECTORY_HARDLINKS=1.
Symlinks doesn't have such issues. That's why using symlinks is no-brainer.
Really, there is no excuse for using hardlinks over symlinks.