!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1163 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org188 Servers

Load older messages


SenderMessageTime
24 Oct 2025
@emilazy:matrix.orgemilywhich has such annotations01:41:13
@reckenrode:matrix.orgRandy EckenrodeMost things that want to use private libpcap symbols re-declare the function definition. Only Apple bothers to use the private headers.01:41:26
@reckenrode:matrix.orgRandy EckenrodeIt’s a static library that isn’t installed.01:41:57
@reckenrode:matrix.orgRandy EckenrodeI did that to avoid having the same lists of files for multiple executables.01:42:45
@reckenrode:matrix.orgRandy Eckenrode I do export the libdsc_extractor dylib though. 01:43:14
@emilazy:matrix.orgemily fwiw, the repos that mention SPI_AVAILABLE are: libpthread, libmalloc, xnu, mDNSResponder, dyld, Security, WebKit, libdispatch, WebCore, configd, libplatform, libpcap, IOKitUser, Libinfo, eap8021x, libffi 01:44:33
@emilazy:matrix.orgemily I think that the only time we'll be using headers with SPI_* stuff and not just wanting them to be elided (because we're building stuff ourselves and so it's available invariant of runtime OS version) is really just the xnu headers 01:45:13
@emilazy:matrix.orgemily funny header name: SecProtocolRestrictedOptionsGoAwayIfNotApprovedForEPSKsPriv.h 01:45:28
@samasaur:matrix.orgsamasaurany idea why qt can't find Network.framework01:47:16
@emilazy:matrix.orgemilyuhh01:48:19
@emilazy:matrix.orgemily did it -framework it? 01:48:21
@samasaur:matrix.orgsamasaurhttps://github.com/qt/qtbase/blob/e902f8ad85a3a36b266f5e96bf3dc1ddad9fa18e/cmake/QtFrameworkHelpers.cmake#L4201:48:34
@samasaur:matrix.orgsamasaurcan't find it at configure time, not build time01:48:45
@emilazy:matrix.orgemilyhave you looked at our Qt patches01:49:31
@samasaur:matrix.orgsamasauroh dear01:49:42
@samasaur:matrix.orgsamasaurno01:49:43
@emilazy:matrix.orgemilythey're not as bad as they used to be01:49:58
@emilazy:matrix.orgemily
    find_library(${cache_var_name} "${framework_name}")

    if(${cache_var_name} AND ${cache_var_name} MATCHES ".framework$")
        set(${out_var} "-framework ${framework_name}" PARENT_SCOPE)
    else()
        set(${out_var} "${out_var}-NOTFOUND" PARENT_SCOPE)
    endif()
01:50:09
@emilazy:matrix.orgemilyhmm I hope I didn't break CMake's ability to find frameworks01:50:14
@samasaur:matrix.orgsamasaurso the thing that's odd is that it appears able to find CFNetwork but not Network01:51:07
@samasaur:matrix.orgsamasaurdespite everything appearing to be "found" the same way01:51:15
@reckenrode:matrix.orgRandy EckenrodeIt would probably be worth making the symbols always be available for libpcap and libffi, but most things that want to use them will redeclare them anyway.01:51:29
@emilazy:matrix.orgemily libpcap and libffi will already get them always available 01:51:43
@emilazy:matrix.orgemily because the public SDK causes SPI_AVAILABLE(…) to expand to nothing 01:51:51
@emilazy:matrix.orgemilycorrectly in this case01:51:56
@emilazy:matrix.orgemily the only time we ever don't want that behaviour is basically when we're hacking up xnu headers, I think 01:52:39
@reckenrode:matrix.orgRandy Eckenrode I don’t know that the private headers with those declarations are even included in the packages. We build both with their configure scripts. 01:52:42
@emilazy:matrix.orgemily which is why I suggested the best approach is probably to replace SPI_API_ in xnu headers and have an empty AvailabilityInternalPrivate.h (or drop their includes of it) 01:53:12
@emilazy:matrix.orgemily since that will ensure the right behaviour there without screwing up the more common uses of SPI_* in the source releases 01:53:28
@emilazy:matrix.orgemily(where we do want them to be elided)01:53:33

Show newer messages


Back to Room ListRoom Version: 6