Opened 14 years ago
Closed 13 years ago
#25551 closed defect (duplicate)
git-core installs 214 identical git binaries instead of hardlinking
Reported by: | oyasumi+macports@… | Owned by: | maccheck@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | git-core |
Description
In my installation, the shasum of the /opt/local/bin/git binary (1238372 bytes or 2419 512-byte blocks long) is df903d1522d3903a95dd12036fac82d9f6133e0a. That same file occurrs in no less than 214 places on disk after installation, only half of which are hardlinks (presumably the /opt/local/var/macports/software/git-core/1.7.1.1_0+doc+svn/opt/local mirror of the /opt/local tree), which seems like serious waste.
Attaching the output of "shasum $(find /opt/local -type f -size 2419)" on my system, that lists all the culprits.
Attachments (3)
Change History (7)
Changed 14 years ago by oyasumi+macports@…
Attachment: | git-binaries.txt added |
---|
comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to maccheck@… |
---|
As I recall, hardlinks do not survive MacPorts' destroot process; git-core should be revised to use symlinks instead.
Please remember to Cc the port maintainer.
comment:3 Changed 14 years ago by maccheck@…
Maybe I found a solution with replacing the hardlinks in $(prefix)/libexec/git-core with symlinks at least.
Find attached Portfile.patch and patch-Makefile.diff
Changed 14 years ago by maccheck@…
Attachment: | Portfile.patch added |
---|
Changed 14 years ago by maccheck@…
Attachment: | patch-Makefile.diff added |
---|
comment:4 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
shasum $(find /opt/local -type f -size 2419)