tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: LOCALBASE searched before macOS framework with CMake on Darwin
On 4/29/24 03:06, nia wrote:
On Sun, Apr 28, 2024 at 09:51:56PM +0200, triaxx%NetBSD.org@localhost wrote:
The problem here is that success or failure of the build process of
games/openttd on Darwin depends on the installation of graphics/MesaLib
while games/openttd doesn't include graphics/MesaLib/buildlink3.mk.
I think there is a problem with the CMake logic which should not look at
LOCALBASE build in BUILDLINK_DIR to find dependency but (i) I am not sure
and (ii) I have no idea how it could be fixed.
It's a long standing problem with cmake that many scripts to find
libraries will bypass pkg-config. The best way is to build in a sandbox...
Sanboxing is not always an option, especially for less tech-savvy pkgsrc
users. We really should try to patch the cmake scripts so they respect
the pkgsrc environment, and send those patches upstream. Since upstream
caused the problem, they should be willing to help (in theory).
This is a very common problem with cmake, gnu configure, and pretty much
all build systems. Upstream developers try to help users by adding
hard-coded search paths, without realizing that they backfire in other
settings. Making them aware of such issues will help improve the
situation over time. Quietly working around it allows the situation to
deteriorate further. It's a chore, but it pays dividends...
Cheers,
J
Home |
Main Index |
Thread Index |
Old Index