Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libxml2: add icu support #22649

Merged
merged 1 commit into from
Feb 11, 2017
Merged

libxml2: add icu support #22649

merged 1 commit into from
Feb 11, 2017

Conversation

peterhoeg
Copy link
Member

Motivation for this change

Fixes #22623

Causes a massive rebuild.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@peterhoeg, thanks for your PR! By analyzing the history of the files in this pull request, we identified @vcunat, @edolstra and @FRidh to be potential reviewers.

@FRidh
Copy link
Member

FRidh commented Feb 11, 2017

This seems to more than double the closure size of both the bin and out outputs. Maybe it should be build without icu by default?

@peterhoeg
Copy link
Member Author

Good point @FRidh. So what exactly is the policy about what dependencies should be included? Any sort of best practice?

@FRidh
Copy link
Member

FRidh commented Feb 11, 2017

Well, the Nixpkgs manual only mentions multiple outputs, but that won't help us here.
I think the best practice is here, put in only what you need, and everything else is optional.

If someone needs xmllint with ICU support they can build a version of libxml2 that has it. Therefore I suggest you make it an optional feature.

Please rebase your work to staging.

@FRidh FRidh changed the base branch from master to staging February 11, 2017 08:15
@peterhoeg
Copy link
Member Author

peterhoeg commented Feb 11, 2017 via email

@FRidh
Copy link
Member

FRidh commented Feb 11, 2017

Sure, why?

Shouldn't actually be necessary, but that was just to be sure we won't get a mass-rebuild (on master) even when ICU is off by default.

@peterhoeg
Copy link
Member Author

Nice catch @FRidh!

Indeed, the changed order of the buildinputs was enough to cause a massive rebuild.

I managed to massage it into submission (at least according to nox-review) so it should be OK now.

@vcunat
Copy link
Member

vcunat commented Feb 11, 2017

Do we have some idea about the use cases for ICU in there? /cc @fubarbaz.

@peterhoeg
Copy link
Member Author

@vcunat, as I understand it, some libraries will use icu while others use libiconv and to avoid ambiguity, you would want to ensure a uniform unicode conversion library all across.

But @FRidh is absolutely correct that it should be disabled by default (and now is).

@vcunat
Copy link
Member

vcunat commented Feb 11, 2017

Yes, at least default for use in nixpkgs, from what I know so far. The ICU data are rather large.

For installing the preference might be different. I wonder whether to provide at least an explicit attribute, to allow easier usage and provide binaries.

@FRidh
Copy link
Member

FRidh commented Feb 11, 2017

@vcunat we could add a libxml-icu in all-packages.nix, but, considering this is the first time it came up I think we shouldn't (yet).

vcunat added a commit that referenced this pull request Feb 11, 2017
This causes no rebuilds by default.
vcunat added a commit that referenced this pull request Feb 11, 2017
This causes no rebuilds by default.  Fixes #22623, kind of.

(cherry picked from commit db8ac61)
@vcunat vcunat merged commit 52d6927 into NixOS:staging Feb 11, 2017
@peterhoeg peterhoeg deleted the f/libxml branch February 12, 2017 03:59
@peterhoeg peterhoeg restored the f/libxml branch February 13, 2017 00:54
@peterhoeg peterhoeg deleted the f/libxml branch March 1, 2017 03:07
@peterhoeg peterhoeg restored the f/libxml branch March 1, 2017 16:33
@peterhoeg peterhoeg deleted the f/libxml branch March 2, 2017 09:18
adrianpk added a commit to adrianpk/nixpkgs that referenced this pull request May 31, 2024
This causes no rebuilds by default.  Fixes NixOS#22623, kind of.

(cherry picked from commit db8ac61)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants