-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Build failure: perlPackages.ImageMagick
- version/test mismatch with main imagemagick
package
#371857
Comments
We should probably build |
I just attempted this. The ImageMagick = buildPerlPackage rec {
pname = "Image-Magick";
inherit (pkgs.imagemagick) version src;
sourceRoot = "source/PerlMagick";
buildInputs = [ pkgs.imagemagick ];
preConfigure =
''
pushd ..
chmod -R +rwX .
./configure
popd
sed -i -e 's|my \$INC_magick = .*|my $INC_magick = "-I${pkgs.imagemagick.dev}/include/ImageMagick";|' Makefile.PL
'';
meta = {
description = "Objected-oriented Perl interface to ImageMagick. Use it to read, manipulate, or write an image or image sequence from within a Perl script";
license = with lib.licenses; [ imagemagick ];
};
}; But it just gets:
The |
It turns out, that ImageMagick = buildPerlPackage rec {
pname = "Image-Magick";
inherit (pkgs.imagemagick) version src;
sourceRoot = "${src.name}/PerlMagick";
buildInputs = [ pkgs.imagemagick ];
preConfigure =
''
pushd ..
chmod -R +rwX .
./configure --with-perl
make perl-quantum-sources
popd
'';
meta = {
description = "Objected-oriented Perl interface to ImageMagick. Use it to read, manipulate, or write an image or image sequence from within a Perl script";
license = with lib.licenses; [ imagemagick ];
};
}; @Rhys-T Do you want to prepare a PR with it? |
One thing I'm still working on figuring out is whether we need to pass any of the On a possibly related note: sed -i -e 's|my \$INC_magick = .*|my $INC_magick = "-I${pkgs.imagemagick.dev}/include/ImageMagick";|' Makefile.PL was from the current derivation. I guess it probably isn't strictly needed, since the headers in |
Steps To Reproduce
Steps to reproduce the behavior:
nix build nixpkgs\#perlPackages.ImageMagick
Build log
https://github.com/Rhys-T/nur-packages/actions/runs/12644772369/job/35232872439#step:9:1549
Build Log
Additional context
Happens on both macOS and Linux.
The main
imagemagick
package was recently updated to 7.1.1-43, which fixed a bug related to classic Macintosh PICT files, and updated the PerlMagick test filePerlMagick/t/input.pict
to match. Since Nixpkgs currently still tries to build PerlMagick 7.1.1-20, it tries to use the old test file with the new ImageMagick and gets anunable to uncompress image `input.pict'
error duringcheckPhase
. Unfortunately, it looks like PerlMagick in JCRISTY's CPAN directory is still only up to 7.1.1-28, so it's not as simple as just bumping the version.Metadata
Local system:
"x86_64-darwin"
Darwin 19.6.0, macOS 10.15.7
yes
no
nix-env (Nix) 2.24.10
"nixpkgs"
/nix/var/nix/profiles/per-user/root/channels/nixpkgs
Note that I was using the current Nixpkgs flake rather than the channel. I originally ran into the issue on GitHub Actions, on both Ubuntu and macOS runners. Let me know if you need me to get
nix-info -m
from them.Notify maintainers
perlPackages.ImageMagick
: None listed. Most recently edited by @dotlambda in 00d3481.imagemagick
: @dotlambda @rhendric @bloxx12Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: