libiconvReal: make default on Darwin#511070
libiconvReal: make default on Darwin#511070reckenrode wants to merge 5 commits intoNixOS:stagingfrom
Conversation
a9ca233 to
b5d8a9a
Compare
|
Oh, right. I forgot to split the stdenv changes out for this PR. I’ve added them to the last commit making GNU libiconv the default. |
b5d8a9a to
8b0de4e
Compare
3ff1260 to
9d7c94d
Compare
|
I fixed the eval error in |
9d7c94d to
76a4ec9
Compare
76a4ec9 to
2505977
Compare
|
I see that this was added to the Nixpkgs security review board. Another argument for using GNU libiconv over Apple’s libiconv is is that fixes for any vulnerabilities or issues found in the latter will only become available once Apple does a new code drop, which typically happens a few weeks to a month after the OS update is released. |
|
Linking Homebrew and MacPorts discussions here. There are more links in the discussions as well.
These issues don’t affect us for a few reasons:
|
|
In terms of testing, I’m using the following command. The only failure I have is nodejs-slim, which appears to be unrelated. It’s having issues with OpenSSL 3.6 and some other things. Previously known problematic builds like Git and libarchive, which failed due to requiring the UTF-8-MAC codec, build fine. $ nix build -f . darwin.{AvailabilityVersions,DarwinTools,ICU,IOKitTools,adv_cmds,basic_cmds,binutils,binutils-unwrapped,binutilsDualAs,binutilsDualAs-unwrapped,binutilsNoLibc,bootstrap_cmds,copyfile,developer_cmds,diskdev_cmds,doc_cmds,dyld,file_cmds,libcxx,libffi,libiconv,libpcap,libresolv,libsbuf,libunwind,libutil,locale,lsusb,mail_cmds,misc_cmds,network_cmds,patch_cmds,ps,remote_cmds,removefile,shell_cmds,signingUtils,sigtool,system_cmds,text_cmds,top,trash,xattr} libunistring man-db dotnet-sdk_10 vulkan-caps-viewer mpv |
6e99929 to
0fa3bce
Compare
This comment was marked as resolved.
This comment was marked as resolved.
0fa3bce to
ee99c61
Compare
Eveeifyeve
left a comment
There was a problem hiding this comment.
I see no issues with this from diff and homebrew/macports concerns mentioned to have this change be merged. The nodejs-slim issue is related to openssl which should be fixed in a completely different pr IMO.
ee99c61 to
4c8e168
Compare
|
My pushes have been rebasing the PR on current staging. |
c532be4 to
d620df1
Compare
I changed it to use |
d620df1 to
98b8ec2
Compare
I agree the "test-esm-import-meta-main-eval"
"test-worker-debug"
"test-worker-track-unmanaged-fds"After that, everything except for |
This mirrors the Darwin libiconv package, which does not provide a setup hook. It is expected that libiconv will be linked explicitly on Darwin.
The Darwin libiconv tries to be compatible with GNU libiconv, but it’s not. Recent versions of Autoconf and gnulib include checks for issues in Darwin’s libiconv implementation, which has effectively turned `autoreconfHook` into `autoBreakDarwinHook` due to failing to link libiconv. Instead of continuing to work around it, make GNU libiconv the default. With the UTF-8-MAC patch, it should be a drop-in replacement.
98b8ec2 to
d44e270
Compare
The Darwin libiconv tries to be compatible with GNU libiconv, but it’s not. Recent versions of Autoconf and gnulib include checks for issues in Darwin’s libiconv implementation, which has effectively turned
autoreconfHookintoautoBreakDarwinHookdue to failing to link libiconv. Instead of continuing to work around it, make GNU libiconv the default. With the UTF-8-MAC patch, it should be a drop-in replacement.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.