Skip to content

imagemagick: add pkgconfig as a runtime dependency#9604

Closed
ericsagnes wants to merge 1 commit intoNixOS:masterfrom
ericsagnes:imagemagick-dep
Closed

imagemagick: add pkgconfig as a runtime dependency#9604
ericsagnes wants to merge 1 commit intoNixOS:masterfrom
ericsagnes:imagemagick-dep

Conversation

@ericsagnes
Copy link
Contributor

Fix the pkgconfig runtime dependency for ImageMagick config scripts:

Wand-config --libs 
/run/current-system/sw/bin/Wand-config: line 53: pkg-config: command not found

@lucabrunox
Copy link
Contributor

It's unusual that a package depends on pkg-config at runtime, but I guess that's ok. 👍

@ericsagnes
Copy link
Contributor Author

As I am quite new to NixOS, review and feedback are welcome.

@edolstra
Copy link
Member

edolstra commented Sep 2, 2015

Better to postpone this until imagemagick has a proper dev output, since then we can put want-config in the dev output without increasing the closure size of the regular package.

@lucabrunox
Copy link
Contributor

Or maybe put it in propagatedBuildInputs, given that Wand-config ecc. should be used only when building stuff.

@vcunat
Copy link
Member

vcunat commented Sep 2, 2015

I'm not sure whether ~1.2 MB is important enough, but the splitting might be in master in a month or so...

@ericsagnes
Copy link
Contributor Author

Or maybe put it in propagatedBuildInputs, given that Wand-config ecc. should be used only when building stuff.

I see, I encountered this problem when trying to build PHP ImageMagick extension so maybe propagatedBuildInputs is a better choice in such case?

@vcunat
Copy link
Member

vcunat commented Sep 2, 2015

Well, you likely want to have pkgconfig during the extension build anyway, so why not add it in there explicitly. It isn't perfect, but that approach doesn't add pkgconfig to runtime closure.

@ericsagnes
Copy link
Contributor Author

Well, you likely want to have pkgconfig during the extension build anyway, so why not add it in there explicitly. It isn't perfect, but that approach doesn't add pkgconfig to runtime closure.

That's what I did first, but as it seemed to be an ImageMagick problem, it felt more natural to fix it in ImageMagick.

I will add pkgconfig to the php extension buildInputs for now.

Thanks all for the feedback!

@vcunat
Copy link
Member

vcunat commented Sep 3, 2015

I agree it would be more natural, and after #7701 it won't cost us extra space in runtime closures.

@joachifm
Copy link
Contributor

joachifm commented Mar 3, 2016

Yay or nay on this. Seems like the splitting branch is yet to land, should this still be postponed?

@ericsagnes
Copy link
Contributor Author

@joachifm no problems with me to postpone this after multiple outputs get merged.

@vcunat
Copy link
Member

vcunat commented Mar 6, 2016

Probably better to either postpone or port atop that branch (which is possible immediately). I wouldn't be nice to have $out depend on pkgconfig...

@joachifm
Copy link
Contributor

Now that multiple-outputs has been merged, this could be integrated, right?

@ericsagnes
Copy link
Contributor Author

@joachifm Is there any change needed to make it work it multiple outputs?

vcunat added a commit that referenced this pull request May 22, 2016
Also fixup references to imagemagick.
@vcunat
Copy link
Member

vcunat commented May 22, 2016

  • The "dev" output wasn't split yet.
  • Finding pkg-config executable isn't enough... one also needs to find the *.pc files.

See 73f1f5e for details/implementation.

@vcunat vcunat closed this May 22, 2016
bjornfor added a commit that referenced this pull request Jun 2, 2016
Fixes this:

  $ shutter
  ERROR: imagemagick is missing --> aborting!

Due to 73f1f5e
("imagemagick: split dev output to fix #9604") which was committed in
the same period as shutter was added to nixpkgs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments