fix(libs): build getifaddrs and two tests on macOS hosts #8279
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8279"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by mugurc on 2026-10-20T08:20:15Z.
What
Three recent changes on
mainuse what only Linux has, solibcand two tests no longer compile on macOS. Part of the macOS series announced on #1 (https://github.com/boykopovar/AnyPS5/issues/1#issuecomment-6124344298).AF_LINKentries thatgetifaddrslists on Linux uselinux/if_link.h,netpacket/packet.h,sockaddr_llandrtnl_link_stats, and were built on every host but Windows. They are now built on Linux only. macOS lists the IPv4 and IPv6 addresses as before, as Windows does, andguest_interfaceschecks theAF_LINKentries on Linux only. The debt entry names macOS next to Windows.GuestNetCtlAp.cpploops over a braced list without including<initializer_list>, which libc++ does not pull in through the test's other headers.memfd_create. The views case is now built on Linux only; macOS runs the case without views, as Windows does.Tested
macOS 26.5.1, Apple M5 Max, Apple clang 21, x86-64 build under Rosetta 2. The libraries do not link on macOS without the rest of the macOS series, so the run is on
main3fd1cc393with the series (ci/macos-series-2on my fork), the open macOS fixes #7524 and #7937, and three changes from #7332.Interfaces.cppfails onlinux/if_link.h,GuestInterfaces.cpponnetpacket/packet.h,GuestNetCtlAp.cppon the braced list andBdaResources.cpponMFD_CLOEXEC. With it,ninjaandninja libsfinish.guest_interfaces,guest_netctl_apandguest_netctl_ap_dialogpass.ctest -j4: 1648 tests, 1009 passed, 24 failed, the rest skipped (no Vulkan loader in the environment). 22 of the failures were already there in my run on yesterday's base9127ea36dwith the same series, and none of them is in a test this PR touches.guest_path_name_lengthis new: since #8164 it expects a guest path of exactly 1023 bytes to be accepted, and macOS fails it withENAMETOOLONG; I have not looked into it yet.patched_librariestimed out in the parallel run and passed when run alone.__linux__is defined, so the code that is built is the same as before; on Windows nothing changes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-21T07:04:48Z.
Windows run of
57e3e7c645merged ontomain7ce3b1df3e(a2d00c7db2, clean), one of the hosts the description lists as not run. Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 (ucrt-posix-seh r7), Release,BUILD_TESTING=ON.Built
libc,libSceAgcDriver,agc_driver_graphics_tests,guest_interface_testsandguest_netctl_ap_testswith no errors;ctest --repeat until-fail:2on the 29 tests those executables register (guest_netctl_ap,guest_interfaces,agc_driver_graphicsand theagc_*cases): all pass on both repeats. Not run: Linux.