Repository navigation
fix(libs): build getifaddrs and two tests on macOS hosts - #8279
Conversation
Three recent changes use what only Linux has, so libc and two tests no longer compile on macOS: - The AF_LINK entries that getifaddrs lists on Linux use linux/if_link.h, netpacket/packet.h, sockaddr_ll and rtnl_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, and the interface test checks the AF_LINK entries on Linux only. - The NetCtlAp test loops over a braced list without including <initializer_list>, which libc++ does not pull in through the test's other headers. - The import block test backs its 16 KiB views with memfd_create. The views case is now built on Linux only; macOS runs the case without views, as Windows does.
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Windows run of 57e3e7c merged onto Built |
|
Code review: moving the AF_PACKET/sysfs code under |
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 (#1 (comment)).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
main3fd1cc3 with 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 base 9127ea3 with the same series, and none of them is in a test this PR touches.guest_path_name_lengthis new: since fix(libc): fail an oversized guest path name with ENAMETOOLONG #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)