Repository navigation
libxml2: use libiconv on Darwin - #137870
Conversation
|
One alternative would be to continue to omit |
|
Trying to reproduce your When trying to build |
|
This is on macos 10.15. |
|
I think what's going on here is that the aarch64-darwin SDK (which is based on a newer macOS SDK than the x86_64-darwin one) has an I'm not sure what the correct resolution is; is |
There was a problem hiding this comment.
| inherit (darwin) libiconv; |
There was a problem hiding this comment.
This is fairly commonly used in all-packages.nix for cases where the dependency is only used on Darwin, I figured it's a little clearer this way rather than relying on the conditional/stubbed-out package (iconv is part of glibc). Maybe the other cases should be changed too though? I'm not aware of any particular standard one way or the other for this.
There was a problem hiding this comment.
I noticed a couple days ago, that we should maybe update the definition of libiconv: #138545 (comment)
Maybe something we can tackle in a separate PR
There was a problem hiding this comment.
Hm, I'm a little confused; shouldn't !stdenv.isLinux imply stdenv.hostPlatform.libc != "glibc" in almost all cases to begin with? What's incorrect about the current libiconv/libintl definitions?
198e536 to
d4a1816
Compare
|
Uses |
d4a1816 to
17f34d5
Compare
|
Might it be possible to get this in |
|
Going by ofborg, it seems like this would break Either the restriction needs loosening (and I'm not sure how), or we need a |
|
17f34d5 to
91130c5
Compare
|
Thanks. Strangely it was already present in most of those locations, but I added it to the remaining ones and hopefully that'll fix things. |
91130c5 to
9c49f49
Compare
This fixes e.g. python3Packages.beautifulsoup4, which has tests relying on the wider encoding support enabled by libiconv. Fixes NixOS#137678.
9c49f49 to
577cd74
Compare
|
I'm not sure why this is still failing. |
|
Afraid was only able to test through hackiness to avoid the bootstrap loop :( |
|
Would it be helpful if I prepared a PR aimed at Or might reliving the pressure in that way also relieve the pressure to get it fixed properly? |
|
It looks like the ofborg failure was with stage3 and it seems you added the file to the persistent list of stage 2. |
|
I tried building bash and pcre on that PR and it all went fine. I didn't see the failure before with stage3. |
|
Removing that from stage2 makes it fail. |
|
The latest ofborg failure https://github.com/NixOS/nixpkgs/pull/137870/checks?check_run_id=3748738841 just says time out. |
Until NixOS/nixpkgs#137870 fixing NixOS/nixpkgs#137678 lands in nixpkgs-unstable.
|
Hello, I'm pretty new with nix and this issue is currently preventing me from updating my packages because one of them depends on beautifulsoup. Is there any workaround I can use right now for this error? Package that breaks for me is neovim-nightly (from the unofficial community overlay) I don't want to switch nix channels if possible. Thank you! Edit:Never mind, this commit helped YorikSar/dotfiles@8a70172 Include this overlay and everything seems to work. |
|
Yeah sorry this is stuck in our staging branch and should make its way to master in #141684 |
- beautifulsoup's test case are failing and shit is stuck in staging hell so have to do a workaround. Workaround: Add beautifulsoup4 overlay until NixOS/nixpkgs#137870 fixing NixOS/nixpkgs#137678 lands in nixpkgs-unstable. - git_protocol config name was changed in programs.gh - Updated neovim plugins (still not in nixpkgs-unstable) - lsp_saga's CodeAction list view feature stopped working. Switched over to Telescope's CodeAction preview - NvimTree saw a few changes had to change that (Note: Not a fun day)
|
Unless I'm wrong, I think this update breaks asciidoctor on darwin. Nokogiri itself is including libiconv, however the flag passed to the compilation for nokogiri is not being taken in account when looking for the header in the libxml2 file. It took me a while to find the fix, so I'm just documenting here in case something similar happens to another dependent of libxml2 |
Motivation for this change
This fixes e.g.
python3Packages.beautifulsoup4, which has tests relying on the wider encoding support enabled bylibiconv. Not built locally because I don't have the resources to bootstrap stdenv, but I madepython3Packages.lxmluse this version oflibxml2and everything seemed to work fine. If it's not acceptable to includelibiconvin the Darwin stdenv bootstrap, let me know and I can see about conditionalizing it.Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)