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)

git-binaries.txt (23.5 KB) - added by oyasumi+macports@… 14 years ago.
shasum $(find /opt/local -type f -size 2419)
Portfile.patch (404 bytes) - added by maccheck@… 14 years ago.
patch-Makefile.diff (2.2 KB) - added by maccheck@… 14 years ago.

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by oyasumi+macports@…

Attachment: git-binaries.txt added

shasum $(find /opt/local -type f -size 2419)

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:2 Changed 14 years ago by blb@…

Probably a dup of #13601.

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: newclosed
Note: See TracTickets for help on using tickets.