[MacPorts] #72200: git fails to build when the libuuid port is installed (was: git fails to build under macOS 14.7.4 23H420 x86_64)
MacPorts
noreply at macports.org
Sun Mar 16 09:01:16 UTC 2025
#72200: git fails to build when the libuuid port is installed
---------------------------+----------------------
Reporter: BjarneDMat | Owner: ci42
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: git, libuuid |
---------------------------+----------------------
Changes (by ryandesign):
* port: git => git, libuuid
Comment:
I see that on line 781 hfs_format.h does:
{{{
#include <uuid/uuid.h>
}}}
This is presumably intended to include Apple's uuid/uuid.h header.
If you have the libuuid port installed, it installs a header
/opt/local/include/uuid/uuid.h which will be used instead of Apple's
header, causing this build failure.
The workaround is:
{{{
sudo port clean git
sudo port -f deactivate libuuid
port -cuNsd upgrade git
sudo port activate libuuid
}}}
For years I have wished that the libuuid and ossp-uuid ports would be
installed in different paths so that they would not conflict with one
another and so that they would not shadow system uuid functionality.
--
Ticket URL: <https://trac.macports.org/ticket/72200#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list